Hey there, I'm currently working on a dynamic layout design. Here's my HTML structure:
<div id="container">
<div class="box" id="left">Left</div>
<div class="box" id="center">This is a long text that might get longer</div>
<div class="box" id="right">Right</div>
<div class="clear"></div>
</div>
Below is the corresponding CSS code:
#container{
width: 100%;
}
.box{
float: left;
}
#left, #right{
width: 100px;
}
#center{
width: auto; /* ? */
overflow: hidden;
}
.clear{
clear:both;
}
I'm trying to figure out how to make the #center
element resize along with the #container
without causing the elements to stack below each other. Any suggestions?