Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Bootstrap panel body 100% height of parent div Reply To: Bootstrap panel body 100% height of parent div

#236247
Atelierbram
Participant

If using the latest browsers, I guess one could use the viewport-unit vh in combination with calc, and maybe give that page-header and page-footer a fixed height.

.panel-body {
  /* height: 480px; */
  height: calc(100vh - 200px);
  overflow-y: auto; 
}

http://codepen.io/atelierbram/pen/RroyxW