Bootstrap 4, how to make a col have a height of 100%?

后端 未结 7 741
难免孤独
难免孤独 2020-12-13 04:00

how can I make a column take up 100% height of the browser w bootstrap 4?

See the following: https://codepen.io/johnpickly/pen/dRqxjV

Note the yellow div, I

7条回答
  •  感动是毒
    2020-12-13 04:53

    Use the Bootstrap 4 h-100 class for height:100%;

    XXXX
    Form Goes Here

    https://www.codeply.com/go/zxd6oN1yWp

    You'll also need ensure any parent(s) are also 100% height (or have a defined height)...

    html,body {
      height: 100%;
    }
    

    Note: 100% height is not the same as "remaining" height.


    Related: Bootstrap 4: How to make the row stretch remaining height?

提交回复
热议问题