Forum Moderators: not2easy
------------------------
Sorry for my bad english, I am Austrian
(I hope you'll understand what I mean)
[edited by: encyclo at 6:54 pm (utc) on Dec. 26, 2006]
[edit reason] no URLs please, see TOS [webmasterworld.com] [/edit]
I chopped it together from something I found on the net ..it doesnt give the most elegant nav ..but it is a starting place for you ..maybe..and others can now come in and tell you what you really need :)
but for now ..
so you made your #menu div
and in your CSS you do ..
#menu {position:absolute; /to make it start from hard left /
top:110; / depends on your header ..this puts it where you want vertically on page /
left:0;
width: 100%;
display: table;
}
#menu ul {
margin: 0; padding: 0;
width: 100%;
display: table-row; /* IE hack */
background: #whatever;
vertical-align: middle;
}
#menu li {
margin: 0; padding: 0;
display: table-cell; /* Another IE hack */
text-align: center;
font-family: whatever
font-weight: ditto;
vertical-align: middle;
background: #whatever;
border: whatever, or not ;
}
* html #menu li { /* MacIE */
display: inline-block;
width: 14%; /* without a percentage here MacIE wont co-operate */
}
/* The IE thing (hidden from MacIE) \*/
* html #menu li {
display: inline;
width: 14.2%;
}
/* */
it isnt pixel precise ( that doesnt bother me none ;-)..but it works in all ..and it's much easier to use tables for full width nav..but if you want CSS :)
BTW the no self URL rule is strictly enforced here ..even for showing what one means ..you get used to it ..not a bad thing ..
and Welcome to WebmasterWorld :)
Originally I wanted to avoid using a table layout, but it seems that this is the only way to do it, so I have applied it.
Actually, the only things I had to use was
.navigation {display: table;}
.navigation ul.horizontal {display: table-row;}
.navigation .horizontal li {display: table-cell;}
I don't need a stylesheet for a drop-down-menu because this is something I have managed to code.