the problem relies on the border of the #side-nav element
elastic does the elastic height by design after processing widths and after some other helpers.
the thing with the border on the columns is that the computations are a lil faster because you have less data to process
so the basic change is remove the border from the #side-nav and put it on the #side-nav > .container element
here the code:
<!DOCTYPE html>
<html>
<head>
<title>Elastic height</title>
<link rel="stylesheet" type="text/css" media="all" href="elastic.css" />
<script src="jquery.js" type="text/javascript"></script>
<script src="elastic.js"></script>
<style type="text/css">
* {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
}
html, body {
width: 960px;
margin: 0 auto;
height: 100%;
}
#top-nav {
height: 100px;
background-color: #00008b;
color: white;
}
#container {
border: thin solid black;
}
#side-nav {
width: 250px;
height: 100%;
}
#side-nav > .container{
border-right: thin solid black;
height: 100%;
}
</style>
</head>
<body>
<nav id="top-nav">
</nav>
<div class="unit elastic-height on-2 columns" id="container">
<div class="fixed column" style="width:150px" id="side-nav">
<div class="container">
Side Nav
</div>
</div>
<div class="elastic column" id="content">
<span>lorem epsum</span>
</div>
</div>
</body>
</html>
On Apr 28, 2011, at 10:33 AM, beekay wrote:
> <!DOCTYPE html>