Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

fixed navigation bar

Posted 01 Nov 2005 14:54:17
1
has voted
01 Nov 2005 14:54:17 simon winn posted:
i am creating a site and i want the header image and the navigation bar underneath to remain fixed while the text and images below can be scrolled. is this possible and if so how?

Replies

Replied 01 Nov 2005 19:08:05
01 Nov 2005 19:08:05 Dave Thomas replied:
some css can accomplish that.

position:fixed; will keep it in place.

you may need to alter the z-index of some layers to keep them on top.

z-index: 10; < should sort that.

you will notice when you 'fix' the position, the text will flow behind the header, so you will have to compensate for it by "padding-top: [some value];" the layer that holds the content

regards

Dave Thomas
<b>DMX Zone Manager</b>

Reply to this topic