I am having trouble with my nav bar being over my content
http://jsbin.com/jusejozene/1/edit?output
I am not sure what I could do so please help
When the nav bar is in responsive/mobile mode it works but when its in desktop mode it doesn't :(
I am having trouble with my nav bar being over my content
http://jsbin.com/jusejozene/1/edit?output
I am not sure what I could do so please help
When the nav bar is in responsive/mobile mode it works but when its in desktop mode it doesn't :(
All you have to do is change the position of your unordered list to static like this:
/*Strip the ul of padding and list styling*/
ul {
list-style-type:none;
margin: auto auto;
padding: 0;
margin-bottom: 10px;
position: static;
}
And put your paragraph text inside of a
<p>
tag
OR wrap your ul inside a div tag
By absolutely positioning your nav bar, you are removing it from the normal flow of the document.
It no longer reserves the necessary space on the page that it would as a block level element, which causes the overlap of content.
A few options -
You can change it to static positioning as outlined above.
Alternatively, keep the positioning as absolute - or even as fixed if you'd like the nav to remain affixed to the top of the window, and factor in the necessary margin at the top of your content to ensure the nav bar does not overlap.