Topic: DIV heights in CSS (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: Aylesbury, Bucks, UK |
posted 05-24-2003 16:59
I am using CSS. I have two left-floated divs. The first has its own background color and contains images and links but the contents occupy relatively little height. The second div contains more extensive and very variable copy . How do I make the height of the first div always equal the variable height of the second div so that the colored panel is visible for the entire page height ? |
Maniac (V) Inmate From: Charles River |
posted 05-24-2003 19:03
Both are left-floated div's? Isn't one to one side and the other to the other side? |
Obsessive-Compulsive (I) Inmate From: Aylesbury, Bucks, UK |
posted 05-25-2003 00:01
Both float to the left, effectively as two columns side by side. The problem is that I want the first column to be the same height as the column to the right of it but I cannot know for an individual page what the height of the second column will be as it varies from page to page. |
Maniac (V) Inmate From: Charles River |
posted 05-25-2003 00:44
Interesting. I wanted to know how to do this, two colums with div elements, without one wrapping around the other, and now you have just taught me. |
Maniac (V) Inmate From: Charles River |
posted 05-25-2003 01:08
I was playing with the code and I found a way to do it, with some hacks, and not working in Opera (but working fine in IE, and almost fine in Mozilla/Netscape) code: <html>
|