Forum Moderators: not2easy
Here's the sample code:
Doctype = HTML 4.01 Transitional
css
ul#newlist { margin-left: 0px; padding-left: 0; }#active a:link, #active a:visited, #active a:hover {
color: #fff;
background-color: #369;
text-decoration: none;
}
#newlist a { padding: 3px 10px; white-space: nowrap; }
#newlist a:link, #newlist a:visited {
color: #fff;
background-color: #036;
text-decoration: none;
}
#newlist a:hover {
color: #fff;
background-color: #369;
text-decoration: none;
}
#newlist li { display: inline; list-style-type: none; }
html
<div id="newlistcontainer">
<ul id="newlist">
<li id="active"><a href="#">Red Steel & Plastic Widgets</a></li>
<li><a href="#">Blue Round Steel Widgets</a></li>
<li><a href="#">Square Yellow Widgets</a></li>
<li><a href="#">Bags Paper Shopping Bags</a></li>
<li><a href="#">Red Plastic Widgets</a></li>
<li><a href="#">Widgets in Red Plastic</a></li>
<li><a href="#">Plastic Blue Widgets</a></li>
<li><a href="#">Steel Widget Closeouts</a></li>
<li><a href="#">Widgets Blue & Plastic</a></li>
<li><a href="#">Blue Yellow - Red Widgets</a></li>
<li><a href="#">Widgets Factory Direct</a></li>
<li><a href="#">Plastic Widgets</a></li>
<li><a href="#">Red & Steel Widgets</a></li>
<li><a href="#">Steel & Yellow Widgets</a></li>
</ul>
</div>
TIA for any help
try it like this...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title><style type="text/css">
#newlist {
width:360px; [blue] /* you can try widths of 540px, 720px, 900px, 1080px or 1260px */[/blue]
margin:0 auto;
padding:0;
list-style-type:none;
font-family:verdana,arial,helvetica,sans-serif;
font-size:12px;
}#newlist li {
float:left;
width:180px;
}#newlist #active a,#newlist #active a:visited,#newlist #active a:hover {
color:#fff;
background-color:#369;
text-decoration:none;
}#newlist a {
display:block;
line-height:22px;
text-align:center;
}#newlist a,#newlist a:visited {
color:#fff;
background-color:#036;
text-decoration:none;
}#newlist a:hover {
background-color:#369;
}
</style></head>
<body><ul id="newlist">
<li id="active"><a href="#">Red Steel & Plastic Widgets</a></li>
<li><a href="#">Blue Round Steel Widgets</a></li>
<li><a href="#">Square Yellow Widgets</a></li>
<li><a href="#">Bags Paper Shopping Bags</a></li>
<li><a href="#">Red Plastic Widgets</a></li>
<li><a href="#">Widgets in Red Plastic</a></li>
<li><a href="#">Plastic Blue Widgets</a></li>
<li><a href="#">Steel Widget Closeouts</a></li>
<li><a href="#">Widgets Blue & Plastic</a></li>
<li><a href="#">Blue Yellow - Red Widgets</a></li>
<li><a href="#">Widgets Factory Direct</a></li>
<li><a href="#">Plastic Widgets</a></li>
<li><a href="#">Red & Steel Widgets</a></li>
<li><a href="#">Steel & Yellow Widgets</a></li>
</ul></body>
</html>
Maybe add some background on #newlist to fill the open space to the right.
And as an alternative you could set the <li> to be display:inline-block and then you could even center it by setting text-align: center on the <ul>.