Jump to content

Announcement bar overlapping nav

Recommended Posts

  • Replies 2
  • Views 2k
  • Created
  • Last Reply

@verobranding You used position: fixed; for header, so we will overlap.

Solution 1.

Set top: 38px; for header (38px is announcement bar height). 

However, when you click "X" the announcement, it will leave a 38px space above. The next solution is to disable "X" with CSS

span.sqs-announcement-bar-close {
    display: none;
}

Solution 2.

Remove position: fixed; at header, and use position: sticky

You code should be

#header {
    background-color: #3b4f40 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
}

 

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
  • 2 months later...

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.