Jump to content

Site Title and Navigation bar overlap when window size reduced

Recommended Posts

I am working in Avenue and have made my site-title and navigation bar fixed. As the template is set, the site-title is left justified, and the navigation bar is right justified. I would like to move the navigation bar closer to the title, so that there is not a large gap. I have added the following in order to do this, however, now when the window size is reduced, the navigation bar overlaps the site-title. Any ideas on how to fix this? 
 

#topNav nav {
 float: left !important;
 margin-top:0px}

#header nav {position: relative; bottom:0px;
left: -150px;}

#header { 
   position:fixed; 
   z-index: 1;
   background-color: white;
   padding-top: 30px;
   width: 90%;
   padding-bottom: 0px; }

 

Link to comment
  • Replies 8
  • Views 1.8k
  • Created
  • Last Reply

@mrgnhghs remove left: -150px in 

#header nav {position: relative; bottom:0px;
left: -150px;}

then edit #header {...} to

#header {
    position: fixed;
    z-index: 1;
    background-color: #fff;
    padding-top: 30px;
    width: 75%;
    padding-bottom: 0px;
    transform: translateX(-50%);
    left: 50%;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.