On Friday, September 17, 2010 5:24:29 am Olli Salmu wrote:
> How can i make two divs, that are next to each other, equally high. When
> they have different content?
> So I want the other div to match the height of the other one, even when the
> other div had 100 lines of content, and the other had 0.
> 
> I've unsuccesfully tried including both divs inside one main div and giving
> the divs a height of 100%.
> 
> ideas?

How are you putting your divs next to each other?  If it's with floats or 
absolute position, that takes them "out of the flow", which means they no 
longer affect the main div.  Unless you're specifying otherwise, some how, my 
guess is that your main div has a height of 0 as a result (Firebug, the IE 
developer toolbar, or the Webkit Developer Console are your friends here).

Try putting overflow: hidden on the main div, and see what happens.  Also, send 
us a URL, so we can take a closer look.

---Tim
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to