How to have multiple columns that consume 100% height using twitter bootstrap?

前端 未结 5 448
自闭症患者
自闭症患者 2020-12-09 20:44

I have seen a number of similar questions, but have not found an answer for what I am looking for. Further information is as follows:

  • I am using twitter bootst
5条回答
  •  星月不相逢
    2020-12-09 21:42

    Via css it may be possible but need some tricks.

    You need to make both divs/columns very very tall by adding a padding-bottom: 1000px and then "trick the browser" into thinking they aren't that tall using margin-bottom: -1000px. It is better explained via example below.

    http://jsfiddle.net/mediasoftpro/Ee7RS/

    Hope this will be ok.

提交回复
热议问题