I am creating a mobile menu and the image of the hamburger menu button I want to resize the image. I tried doing this:
Can I change the height of an image in CSS :before/:after pseudo-elements?
But it did not work for me. My code was like this:
.nav-btn:before {
        background-image: url('icons/mobile_menu_bttn.png');
        background-size: 16px 16px;
        width: 16px;
        height: 16px;
        content:"";
    }
It breaks the code.
I originally had the code like this:
.nav-btn:before {
        content: url('icons/mobile_menu_bttn.png');
 }
I tried adding just width and height and that didn't work either.
Does anyone know how I can accomplish this?
 
     
    