Hi,
I want to create a fancy frame around my text. I ended up with wrapping it in the following DIVs:
____________________
|__________________|
| | Here will | |
| | be some | |
| | text | |
| | ... | |
|_|______________|_|
|__________________|
So it consists of the following blocks: the upper block (topDiv) that takes the whole width of a column. The text itself (textDiv). Left (leftDiv) and right (rightDiv) parts of the frame. And the bottom block (bottomDiv) that has the same dimensions as topDiv.
Here's what I mean:
<div class="topDiv">
</div>
<div class="mainDiv">
<div class="leftDiv">
</div>
<div class="textDiv">
<? echo $myrow['maintext']; ?>
</div>
<div class="rightDiv">
</div>
</div>
<div class="bottomDiv">
</div>
The problem is that when I set the following parameter for textDiv:
height: auto;
, it acknowledges the size of text, but when I set the same parameter for leftDiv and rightDiv, it ignores it - because there is no text in it.
Is there a way to make height of leftDiv and rightDiv the same as height of textDiv?
Thanks.