css menu bar problem
Posted: Tue May 10, 2011 3:52 pm
hy guys, i have a css isue... cant make the <li> tags to fit the whole menubox div tag!
or the <a> tags, i basicly have a div (menubox) inside of it is a ul tag (menu) the wrapper is 100% width, as the menubox but a cant get the inside elments to fit that 100% width!
any help please.
the css
or the <a> tags, i basicly have a div (menubox) inside of it is a ul tag (menu) the wrapper is 100% width, as the menubox but a cant get the inside elments to fit that 100% width!
any help please.
the css
#menubox{ width:100%; margin:0 auto; padding:0; } #menu{ margin:0; padding:0; width:100%; height:42px; line-height:42px; } #menu li{ margin:0; padding:0; list-style-type:none; text-align:center; display:block; float:left; height:40px; line-height:40px; width:200px; background-color:#CCC; border:solid #000 1px; } #menu li:hover{ margin:0; padding:0; list-style-type:none; text-align:center; display:block; float:left; height:40px; line-height:40px; width:200px; background-color:#999; border:solid #000 1px; } #menu li a{ margin:0; padding:0; font-family:"Arial Rounded MT Bold"; font-size:18px; color:#FF0; text-align:center; text-decoration:none; width:200px; height:40px; line-height:40px; } #menu li a:hover{ margin:0; padding:0; font-family:"Arial Rounded MT Bold"; font-size:18px; color:#ff0; text-align:center; text-decoration:none; width:200px; height:40px; line-height:40px; }and the html
<ul id="menu"> <li><a href="#">HOME</a></li> <li><a href="#">ACCOUN</a></li> <li><a href="#">REGISTER</a></li> <li><a href="#">SPECIALS</a></li> <li><a href="#">CONTAC US</a></li> </ul>