June 22, 201115 yr Hey guys I have some trouble with a fixed header. I got it fixed and on the top. But if you visit http://revse.net/temp you will see that the content is going on top of the header. I want the content to go below the header. Any suggestion on how I can get this done?
June 22, 201115 yr I guess you want the head to always be at the top even when scrolling. The problem is by fixing it you take it out of the natural flow of the page so you will need to account for that by placing a margin-top the same size as the head on the #wrapper div. Also may want to give the header a z-index so it always sits on top of everything Cheers Ysuran
June 22, 201115 yr #head { ... ... z-index: 110; } The z-index sets the ordering of layers, since your image slider uses a z-index of 100 for the pictures, putting it somewhere above 100 will make it go below the header. The higher the z-index, the closer to the top it will become. If later on, some content starts to go over the header, it maybe because it has a higher z-index than 110, so just keep upping the z-index of the head until its at the top. Edited June 22, 201115 yr by markeh
June 22, 201115 yr Author OMG guys thank you so much z-index worked like a charm. Thank you markeh and ysuran.
Create an account or sign in to comment