Forum Moderators: not2easy
I have:
<div id="nav">
<ul id="nav_ul">
<li><a href="/"><img src="aaa.gif"></a></li>
<li><a href="/"><img src="bbb.gif"></a></li>
<li><a href="/"><img src="ccc.gif"></a></li>
<li><a href="/"><img src="ddd.gif"></a></li>
<li><a href="/"><img src="eee.gif"></a></li>
</ul>
</div>
#nav
{
float: left;
width: 891;
background-color: #CCCCCC;
border: 1px solid #FFFFFF;
padding: 8px 0 8px 0;
}
#nav_ul
{
float: left;
margin: 0;
padding: 0;
list-style: none;
}
#nav_ul li
{
float:left;
margin:0;
padding:0 5px 0 0;
}
#nav a
{
display:block;
}
#nav
{
float: left;
width: 891;
background-color: #CCCCCC;
border: 1px solid #FFFFFF;
padding: 8px 0 8px 0;}
width: 891; You have to define what unit type values are - px, em, etc - so it would have to be
width: 891px; That will set your div's width to a set size, and when the browser resizes smaller than 891px of the viewport + whatever other things you have to the side of it, it will put a horizontal scrollbar in place.