- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello guys i am making one of my first Websites, i made the navigation and just added a paragraph tag but the content of the paragraph tag colides with the navigation.See the codepen link for what i mean
http://codepen.io/anon/pen/eAsHn
Please help, All help Appreciated
You have `position: fixed;` (along with `position: absolute;`) in your #mainNav.
Thanks you for your quick reply, but it still doesn’t seems to work.Once again thanks for your help.:)
Removed
position: absolute;
that @chrisburton was referring to which was taking the nav out of the document flow: http://codepen.io/Boogiesox/pen/AJHcl
Is this what you’re looking for?
Thank You @chrisburton and @boogiesox You guys just saved me tons of time thinking about the problem.
Just one more thing i would like to ask, how should i make the navigation stick to the top.
Once again all help appreciated :)
Working with what you have, you’ll have to apply fixed position to your nav, but that’ll break it again. You could wrap the paragraph in a div and give that a top padding greater than the nav height to fix it.
Ok thanks for your help :)