The tuck-under occurs when the combined width of #aside and #content is greater than 100%, and they can no longer be displayed on the same line. The set width of #content plus all padding on #content and #aside totals 84%. You also have a left-border on #content, so let's say we're at 85% capacity. Then #aside has a min-width of 170px: if you resize the window and 170px > 15%, the tuck-under occurs.
So that's the problem. The simplest solution is to make a few changes to #content:
Code:
#content{
float: left;
padding: 1%;
border-left: solid #3598fe;
min-height:473px;
}
Width and display are removed, and float is "left" instead of "right." These changes allow #content to fill up the space regardless of its calculated size.
In general, you've got a lot more divs in your markup than you need. Here's a sample rewrite that may not be perfect, but might give an idea of where they're unnecessary:
Code:
<body>
<div id="container">
<div id="header">
<a href="home.php"><img src="img/logo.jpg" style="height: 100px; border: none;"/></a>
<a href="home.php"><img src="img/badger_flipped.png" style="height: 100px; float: right; border: none;"/></a>
<!--<h1>Site Name</h1>-->
</div>
<ul id="navigation">
<li><a href="home.php">Home</a></li>
<li><a href="index.php?l=1">Sign Off</a></li>
<!--<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact us</a></li>-->
</ul>
<div id="aside">
<span class="link-header">Client Links</span>
<ul>
<li><a href="#">Client Directory</a></li>
<li><a href="#">Search Clients</a></li>
<li><a href="#">Add Client</a></li>
</ul>
<span class="link-header">Employee Links</span>
<ul>
<li><a href="#">Employee Directory</a></li>
<li><a href="#">Add Employee</a></li>
</ul>
</div>
<div id="content">
<h2><u>Welcome</u></h2>
<p>Welcome Page</p>
</div>
<div id="footer">
Copyright © Site Name, 2012
</div>
</div>
</body>
Code:
*{margin:0;padding:0;}
#header{background: #fff;}
#navigation{
color: #333;
background: #3598fe;
list-style-type: none;
overflow:auto;
}
#navigation li{
float:left;
}
#navigation a{
display: block;
padding: 5px 10px;
color: #fff;
text-decoration: none;
border-right: 1px solid #fff;
font-weight: bold;
}
#navigation a:hover { background: #fc6503; }
#container{
min-width:900px;
}
#aside{
clear: left;
float: left;
padding: 1%;
display: block;
min-width:170px;
}
#aside ul{
margin-bottom:30px;
display: block;
}
#aside li{
list-style-type: none;
display: block;
}
#aside li a{
display: block;
padding: 5px 10px;
color: #fc6503;
text-decoration: none;
font-weight: bold; /*border-right: 1px solid #000;*/
font-size: 10pt;
}
#aside li a:hover {
text-decoration: underline;
}
.link-header {
color: blue;
font-weight: bold;
text-decoration: underline;
font-size: 11pt;
}
#content{
float: left;
padding: 1%;
border-left: solid #3598fe;
min-height:473px;
}
#footer{
clear:both;
color: #fff;
background: #3598fe;
text-align: right;
padding: 20px;
}
.menu-link{
text-decoration: none;
}