Hello Everyone,
I'm currently using this html code
and this css codeHTML Code:<ul id="list-nav"> <li><a href="#">Home</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Downloads</a></li> <li><a href="#">Contact</a></li> </ul>
to make a navigation bar.HTML Code:ul#list-nav { list-style:none; margin:20px; padding:0; width:525px } ul#list-nav li { display:inline } ul#list-nav li a { text-decoration:none; padding:5px 0; width:100px; background:#828282; color:#eee; float:left; text-align:center; border-left:1px solid Black; border-top:2px solid Black; border-right:1px solid Black; } ul#list-nav li a:hover { background:#8B8989; color:#eee }
My problem is the border on either end of the bar is thinner than the border inbetween the boxes and on top of the boxes. I know why this is, - this bit of code
HTML Code:border-left:1px solid Black; border-top:2px solid Black; border-right:1px solid Black;
(EDIT) - By the way. I want the border to be 2px wide.
But how can I still have the border running all the way around (excluding the bottom of the bar) and inbetween each button and still have it the same thickness.
Any help would be ... helpfull
Keyboard1333



Reply With Quote



Bookmarks