I'm trying to setup a sticky navbar on a site for a school project. Here: http://www.divisionforty.com/aloevera/
I don't want the content to go underneath it, what I mean is that when it scrolls content sits underneath it like if it was positioned absolute.
Hope someone can help,
Denver
Give
padding-top
to.wrapper
class. You can givepadding-top:100px
if you don't want to hide the content undernavbar
. See this example.Update:
Please give
.offset().top -100
100 is the height of the navbar in your javascript as below:and