Jump to content

lilyweitzman

Circle Member
  • Posts

    15
  • Joined

  • Last visited

Reputation Activity

  1. Like
    lilyweitzman got a reaction from Ziggy in Using CSS to display hamburger menu on desktop and LOGO is now off-center   
    Thank you to Ziggy for helping me to add the necessary padding to account for the hamburger menu.
     
    //display hamburger menu on desktop
    .header .header-burger{display:flex}
    .header-nav, .header-actions {display:none}
    .header--menu-open .header-menu { opacity: 1; visibility: visible;}
     
    //modify menu font size
    .header-menu-nav-item {
      line-height: 2em
    }
    @media screen and (min-width: 768px) {
      .header-menu-nav-item a {
        font-size: 2vmin;
      }
    }
    //padding to center logo
    @media screen and (min-width: 768px) {
    .header-title-logo img {
        padding-left: 47px;
    }}
     
  2. Like
    lilyweitzman reacted to Ziggy in Using CSS to display hamburger menu on desktop and LOGO is now off-center   
    Looking at the website, I don't see the same slight offset of the logo that you're demonstrating in the video, is it only happening when you're logged in?
  3. Like
    lilyweitzman reacted to EjD in Using CSS to display hamburger menu on desktop and LOGO is now off-center   
    Looks like the hamburger menu is taking up 47px of space pushing the logo that far to the left. If you add a -47 right margin to the logo it should center (see screenshot).

  4. Like
    lilyweitzman got a reaction from Ziggy in Using CSS to display hamburger menu on desktop and LOGO is now off-center   
    Thank you, Ziggy.
    This is a development site so we must be logged in to view. URL: https://blackbird-goose-w7ys.squarespace.com/projects
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.