开发者

how to fix height for two div's inside a mail div

开发者 https://www.devze.com 2023-01-19 03:49 出处:网络
page: http://jsbin.com/eniva4/edit I have one main div: #main-content which contains two div\'s : #announcement and .tabbed_content

page: http://jsbin.com/eniva4/edit

I have one main div: #main-content which contains two div's : #announcement and .tabbed_content

I want both the two divs to have same height, meaning their background color should end at the same height.

Right now notice that #announcement seems to have more height than .tabbed_content

开发者_开发问答

I can hardcode the height pixels value but I want to know if there is a better approach?


Equal height columns are a common problem in site layout. Here's an article that mentions a few solutions:

http://www.ejeliot.com/blog/61

And one more:

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


html,body{height:100%;} an browser height wrapping issue http://jsbin.com/eniva4/2/edit

0

精彩评论

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