Can anyone suggest a navigation element or method for a long text based document. Our only stipulation is that the navigation stay visible even when users scroll to the bottom of the document...basically it should be constant. Thanks in advance.
Using CSS, you'd be able to declare the navigation a fixed position. Heres an example: CSS (Can be converted to inline (Declared with the element), placed in the head section, or an external stylesheet) #navigation { position: fixed; width: 200px; //Make the navigation box 200px wide, we'll need to know this so we can position the content to the right "x" pixels } #document { margin-left: 200px; //How far we want to set the margin, relative to the navigation width } Code (markup): HTML (Placed in Body Section): <div id="navigation"> Navigation Block </div> <div id="document"> Document block </div> Code (markup):
Absolutely perfect solution. Though I will also like to say that if you have more than 2-3 menu items then don't show it constantly cause it may be annoying to the user. Rather duplicate the same menu in the similar position in the footer. Regards, Acmeous.
hello all, I actually encountered a bug. i.e. that this CSS navigation doesn't work in IE. I tested on multiple PCs and through multiple HTML pages ( to make sure that it's not my code) Any ideas? Thanks, Matt