Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Sign in to follow this  
mrgnhghs

Site Title and Navigation bar overlap when window size reduced

Question

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

 

Share this post


Link to post

8 answers to this question

Recommended Posts

  • 1

@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%;
}

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in to follow this  

×
×
  • Create New...