02-20-2011, 04:03 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: May 2009
Posts: 178
Thanks: 9
|
Div height
Anybody got any ideas to control the height of a css div area? I dont want to set a specific height but for example the display something like this:
PHP Code:
----------------------- -----------------------
| This is the heading | | This is a short |
| but sometimes it | | heading |
| will be this long | | |
| | | |
| Other stuff | | |
| | | |
| | -----------------------
-----------------------
So the header in the div is input from a user and can end up being anything up to about 50 characters but sometimes will only be 10 for example so if each line of detail text underneath is guaranteed to be only one line (which it is) I am left with an annoying difference in div heights. What is the best way to handle this? I want these divs to be of equal height for aethetic reasons.
|
|
|
|