Soldato
- Joined
- 17 Oct 2002
- Posts
- 3,941
- Location
- West Midlands
Hello there i have the following Css snipet and html code, at present it creates a vertical menu but im after a horizontal menu, if anyone could lend a hand it would be appreciated
As i understand it the best way is too use un-ordered lists?
Code:
<div id="buttonscontainer1">
<div class="buttons4">
<a href="#">Home Page</a>
<a href="#">About Us</a>
<a href="#">Contact Us</a>
</div>
</div>
Code:
.buttonscontainer {width: 150px;}
.buttons a {display: block;
width: 100%;
font: 10px Verdana, Arial, Helvetica, sans-serif;
padding: 2px;
padding-left: 3px;
background-color: #234A76;
color: #FFFFFF;
border-left: 12px solid #B8C8D8;
font-weight: bold;
text-decoration: none;
text-align: left;
margin-top: 1px;}
.buttons a:hover {border-left: 12px solid #E8ECF0;
text-decoration: none;
color: #FFFFFF;}
As i understand it the best way is too use un-ordered lists?