Currently setting up a basic layout for my homepage.
Here's how I envision it:
Having trouble defining the size of the main
div. I want it to dynamically expand in both height and width, filling the remaining space not taken by menu
and footer
.
HTML:
<body>
<div class="container">
<div class="nav">
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul>
</div>
<div class="main">
Text...
</div>
<div class="footer">
Footer
</div>
</div>
</body>
CSS:
.nav, .content{
display: inline-block;
vertical-align: top;
}
.nav{
width: 200px;
background-color: #ccc;
}
.main{
height: 100%;
width: 100%;
overflow: hidden;
background-color: #aabbcc;
}
.footer{
background-color: #ff9999
}
Example can be viewed here: http://jsfiddle.net/48q5f4u9/3/