that's the code for my list in xhtml. for css i've got this:Code:<div id="navigation"> <ul id="navlist"> <li id="active"></li> </ul> </div>
now that works great but because i have multiple lists using the same code my page doesn't validate because i'm using the same id more than once. i've been trying to create a class for all of this but nothing i do seems to work. if anybody can switch around my stuff into a class i'd be most grateful as i've almost given up on it. thanks for the help.Code:#navigation { width: 138px; } #navigation ul { margin-left: 0; padding-left: 0; list-style-type: none; font-family: Arial, Helvetica, sans-serif; font-size: x-small; } #navigation li { display: inline; /* for IE5 and IE6 */ } #navigation a { display: block; padding: 2px; width: 138px; background-color: #7896AE; border-bottom: 0px dotted #eee; } #navigation a:link, #navlist a:visited { color: #fff; text-decoration: none; } #navigation a:hover { background-color: #4A7292; color: #fff; }![]()










Bookmarks