Hmm, not sure I understand. All CSS you need is:
Code:
#menu a{
display: block;
width: 150px;
\width: 190px; /* IE5 Hack */
w\idth: 150px;
height: 27px;
\height: 35px; /* IE5 Hack */
he\ight: 27px;
background-color: #FFF;
padding: 8px 0px 0px 40px;
background-position: center left;
background-repeat: no-repeat;
font-family: verdana;
color: #000066;
font-size: 1em;
font-weight: bold;
margin-top: 1px; /* margin-bottom: 1px will glitch in IE5 & 6 */
}
#menu a:hover{
background-color: #CCCCDE;
}
If you add a new item the css does not need to be changed.
The HTML can be generated by some script
Code:
<div id="menu">
<a href="#" style="background-image: url('Home.gif');">Home</a>
<a href="#" style="background-image: url('News.gif');">News</a>
<a href="#" style="background-image: url('The_Web_Links.gif');">The Web Links</a>
<a href="#" style="background-image: url('Contact_Us.gif');">Contact Us</a>
</div>
Bookmarks