html - How to resize an element to full viewable height -


i'm attempting make div resizes full page height, between header , footer. don't want there scrolling on page, i've looked around , can't find solution has worked me.

here picture of webpage.

enter image description here

i want black bordered box expand way down drawn red line, no matter zoom ratio on browser. width works, cannot life of me height.

here code:

<div class="row" style="height:100%;">     <div class="col-md-2" style="border:1px solid black;">         <div class="panel panel-success">             <div class="panel-heading">                 <h3 class="panel-title">links</h3>             </div>             <div class="panel-body">                 panel content             </div>         </div>     </div>     <div class="col-md-10" style="border:1px solid black">         <div class="panel panel-primary">             <div class="panel-heading">                 <h3 class="panel-title">viewer</h3>             </div>             <div class="panel-body">                 panel content             </div>         </div>     </div> </div> 

you have set height on html , body 100%, can set height on children. i'd advise against setting 100% on .row class since bootstrap, maybe make own class. you'd need columns 100% height.

html, body { height:100% } .row-wrapper { height:100% } .row-wrapper .col-md-2, .row-wrapper .col-md-10 {height:100%}      ...  <div class="row row-wrapper"> 

just keep in mind css rule .row-wrapper .col-md-2, .row-wrapper .col-md-10 {height:100%} isn't flexible, i'd recommend creating class target both.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -