CSS 2 Column layout: Column height

前端 未结 3 2007
我在风中等你
我在风中等你 2020-12-18 10:51

I\'m working on building a simple 2 column layout in html using div\'s

The problem is that I can\'t get the right column to have the same h

相关标签:
3条回答
  • 2020-12-18 11:34

    If you just want them the same height then declare it explicitly. If you want them to be able to both expand and the tallest one determines the height of both then please reword the question.

    Just add the following to both of your style tags

    style="height: 500px;"
    
    0 讨论(0)
  • 2020-12-18 11:37

    I'd advocate using a table for this exercise but that's a different debate.

    Have you tried setting the height of your div's?

    0 讨论(0)
  • 2020-12-18 11:44

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

    this website has a very good explanation which I'd find hard to equal or top.

    Good luck!

    0 讨论(0)
提交回复
热议问题