On Sat, 2005-11-05 at 10:59 -0800, Kenoli Oleari wrote:
> I think the answer to this is "No" but is there any way to set any
> relative measures in CSS like telling a div to set its bottom edge or
> height to the value of another element like another div who's bottom
> edge adjusts to the amount of content.
> For instance, suppose I was creating content to go into a div by
> retrieving it from a database using some server side code like php.
> This would cause the div to expand to accommodate the data. Then
> suppose I had another div next to it that I wanted to have the same
> height. I can't tell it how high I want it to be because this will
> be variable depending on the size of the first div. I'd like to say
> "set the height the same as the first div" or "make the bottom of
> this div the same as the first div."
> I find myself quite often wanting to make logical statements like
> this and not being able to figure out a work-around.
> Kenoli Oleari
> Neighborhood Assemblies Network
I haven't tested this, but wouldn't it be possible to use a div that
spans the other two, and then give the one without the generated content
a height of 100%?
Theoretically the div containing the data should stretch the surrounding
div to accommodate it while the other one adjusts itself to the
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/