Hi all, pls help
im making a horizontal menu using CSS.
My HTML code is:
and CSS i used is :
.menu { margin:auto; width:980px; border:1px solid #DDDDDD; padding:0 }
.menu ul { list-style:none;}
.menu li { display:inline; padding:0 7px; text-transform:uppercase }
.menu ul li:hover { background-color:#CCC; }
.menu a { text-decoration:none}
Its working fine but why am i getting a space between border of “menu” and each “li” elements(i didnt give any top-bottom padding) which is very clear when on the hover state?