Best way to create menus?

Caporegime
Joined
12 Mar 2004
Posts
29,962
Location
England
What technique is generally considered the best when creating menus? I've seen unordered lists used, as well as definition lists and tables.
 
Ok, unordered lists looks like the to go then, thanks guys.

What's a good way to test out how a website looks in different screen resolutions? I'm assuming there's a better way than constantly adjusting my screen resolution?
 
Design at 960px wide and forget the people with tiny monitors. They are holding back humanity ;)

Oh I agree with you there. :D

And if I want the images in the content div to have padding but not the ones in the header, do I create two css classes for header and content images?
 
Last edited:
Thanks.

Say for example if I wanted every header to be the same, i.e. the same text and images how could I do this without having to copy and paste that html onto every page?
 
If you have a PHP server you could store the HTML within a header.php file and within each HTML page you'd just write <?php require("header.php") ?>. Whatever is displayed within header.php will be displayed in that respective page :)

Mmm, Server Side includes. Ever used PHP?

Or CSS pseudo elements using :before and :after, never tried it myself but its possible..


Ok. Thought it would easily be possible using front end stuff. I will leave that to later then when I put it on a server. I've used JSP before, very shallow learning curve already knowing java.

When using the include statement, do you typically put that in the header div like this,

Code:
<div class="header">
<%@ include file="header.jsp" %>
</div>

or put the div in the header file?

Actually wouldn't it be more convenient to have one template page which includes content of a certain page when that url is requested?
 
Last edited:
Back
Top Bottom