View Full Version : Same height of divs

Mar 1st, 2012, 02:28 PM
Please have a look at this site: http://www.hem.skyrev.se/kontakt/kontaktuppgifter.

I want the left sidebar to have the same height as the content. Or if the content is shorter than the sidebar I just want the height of the contentContainer to be set by the sidebar instead. As you can see I have added min-height: 100% to the sidebar and I thought this would work. Isn't the percentage value supposed to be relative to the containing div? This is not working as I would have expected from reading about the height property.

Mar 1st, 2012, 04:29 PM

height: 100%

for the sidebar.

Mar 1st, 2012, 05:06 PM
Because you are using a grid lay-out system, I think you are committed to using faux-columns. See this article http://www.alistapart.com/articles/fauxcolumns/