HTML Banner/Header

+2 Angelo De Rivera · July 8, 2015
Hello! I have a horizontal fixed header on top of my site and when I use page navigation to scroll to an ID, it puts the content I'm trying to scroll to underneath the header. Is there a way I can offset where the page navigation shows up by exactly where the navigation will display? Thanks a lot :)

Post a Reply


Oldest  Newest  Rating
0 Kaveh Greenwood · July 8, 2015
Could you share your code?
+2 Payton Juneau · July 8, 2015
Maybe try adding a margin-bottom for for putter most layer of the navigation.

Example: if the div that holds all the header content has a class of "header"

In your CSS, try to write 
    margin-bottom: 5px;
0 Angelo De Rivera · July 9, 2015
This is my CSS code for my banner container:

height: 30%;
display: block;
position: fixed;
z-index: 100;
margin-bottom: 5px;
0 Angelo De Rivera · July 9, 2015
Sir Payton, I tried it before, but still, it doesn't work :(
  • 1

HTML / CSS / Web Design


Discuss, share, ask, learn and teach HTML5 and CSS3.