开发者

html and css - different height of div-containers

开发者 https://www.devze.com 2023-03-21 15:49 出处:网络
In my template I have one big div container an two smaller in it. They have different contents in it, so if I don´t specify the pixel, the containers get conform to the different contents.

In my template I have one big div container an two smaller in it. They have different contents in it, so if I don´t specify the pixel, the containers get conform to the different contents.

I like them to be dynamic, but my wish would be, that the container with less content gets as big as the one with more content.

How can I wri开发者_JAVA技巧te this in the stylesheet?


It's definitely possible and there are multiple approaches. Take a look at this website for a detailed explanation:

http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks

0

精彩评论

暂无评论...
验证码 换一张
取 消