2 columns of equal height - Twitter's Bootstrap 2.0

后端 未结 2 819
终归单人心
终归单人心 2021-02-07 09:40

Well, everybody knows that Twitter\'s Bootstrap is a great tool and makes a lot of things easier for those who, like me, doesn\'t know much about CSS yet. But, sometimes, it can

2条回答
  •  伪装坚强ぢ
    2021-02-07 09:56

    The one that has always worked for me is:

    #myPWrap,#otherPWrap {
      overflow:hidden;
    }
    
    #myP,#otherP {
      margin-bottom: -99999px;
      padding-bottom: 99999px;
    }
    

    You can also try to turn the wrap into a table and the #myP into a table col.

    #myPWrap,#otherPWrap {
     display: table;
    }
    
    #myP,#otherP {
     display: table-cell;
    }
    

提交回复
热议问题