Reputation: 173
I came across this awesome effect on a site where the content slides over the banner image but the nav stays put? and I was wondering how would I go about achieving this?
Thanks George
Upvotes: 0
Views: 398
Reputation: 3431
as i said in the comments you need to set the z-index
properly.
one positive, one negative and one zero should work.
here is the fiddle.
http://jsfiddle.net/btevfik/KVVfj/
Upvotes: 1
Reputation: 1806
You can use poistion:fixed
You can also keep one element above others by specifying z-Index which should be greater than other elements.
z-Index:1000
Upvotes: 0