I need a three column block such that, if more content in the center (middle column) – side blocks increased.
Now i have this http://s2.ipicture.ru/uploads/20110714/NQ6ZNRsB.png
HTML:
<div id="spoiler">
<div class="left">1</div>
<div class="middle">
2<br />
aaaaaaaaaaaaaaaaaaaaaaaaaa<br />
hhhhhhhhhhhhhhhhhhhhhhhhh<br />
aaaaaaaaaaaaaaaaaaaaaaaaaa<br />
aaaaaaaaaaaaaaaaaaaaaaaaaa<br />
</div>
<div class="right">3</div>
</div>
CSS:
#spoiler {
width:500px;
}
.left, .middle, .right {
background:#ffdac0;
height: auto !important;
height: 100%; /* for IE6 */
}
.left {
float:left;
width:100px;
}
.middle {
float:left;
width:300px;
}
.right {
float:right;
width:100px;
}
Help please!
I only changed the css.
http://jsfiddle.net/QvfwN/