Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1454472

    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)
    }
    }

    #1454782

    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;
      }
    }
    
    #1455088

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1457217

    Thank you! This works!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Smaller header logo on mobile only’ is closed to new replies.