I need to make the header logo smaller on mobile only because it overlaps the search icon. I tried the following and a few other variations but they didn’t work. How is it accomplished?
/*to make header logo smaller on mobile*/
@media only screen and (max-width:769px) {
#header .logo {
transform: scale(0.8)
}
}
inside this container you selected there is the anchor (a-tag) and inside this the logo file itself ( depends on your logo format: img or an inline svg)
so try the selector: #header .logo img
or if you are using svg files : #header .logo svg
next you do not need to use the switch point to hamburger for that rule.
you can use the media query – when you need it f.e.:
@media only screen and (max-width:479px) {
#header .logo img {
transform: scale(0.8);
transform-origin: center left;
}
}
Thank you! This works!