html - Bootstrap 3.0 Height 100% not working -


i've set need 100% to 100% height sidebar still refuses got bottom of page when using bootstrap 3.0. i've used -9999px trick knocks out dropdown have in navigation above can't use fix.

what i've tried instead is:

<div class="row-fluid fill">     <nav class="col-lg-2 fill">        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-piggy-bank navicon" aria-hidden="true"></span> animal care</a><br />        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-user navicon" aria-hidden="true"></span> customers</a><br />        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-gift navicon" aria-hidden="true"></span> donations</a><br />        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-calendar navicon" aria-hidden="true"></span> events</a><br />        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-screenshot navicon" aria-hidden="true"></span> marketing</a><br />        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-briefcase navicon" aria-hidden="true"></span> staff mangement</a><br />        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-globe navicon" aria-hidden="true"></span> web maintenance</a><br />        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-shopping-cart navicon" aria-hidden="true"></span> products & stock</a><br />     </nav>     <div class="col-lg-10 content fill">        <h1>dashboard</h1>        <ul class="breadcrumb">           <li class="active">home</li>        </ul>        <div class="row-fluid">           <div class="col-lg-4 zookeeper excount">              10           </div>           <div class="col-lg-4 birdofprey excount">              10           </div>           <div class="col-lg-4 otherex excount">              1           </div>        </div>        <div class="row-fluid">           <div class="col-lg-4 exlabel">              zoo keeper experiences           </div>           <div class="col-lg-4 exlabel">              bird of prey experiences           </div>           <div class="col-lg-4 exlabel">              other events           </div>        </div>        <div class="row-fluid">           <div class="col-lg-12 dashtoday">              <h2>today - 17th march 2015</h2>                 <div role="tabpanel">                    <ul class="nav nav-tabs" role="tablist" id="dashtabs">                       <li role="presentation" class="active"><a href="#todo" aria-controls="todo" role="tab" data-toggle="tab">to-do</a></li>                       <li role="presentation"><a href="#keeperlog" aria-controls="keeperlog" role="tab" data-toggle="tab">keeper log</a></li>                    </ul>                    <div class="tab-content">                       <div role="tabpanel" class="tab-pane fade in active" id="todo">                          <ul class="nav nav-pills nav-stacked dashtodo">                             <li class="active todoitem">                                <a href="#">to-do item outstanding</a>                             </li>                             <li class="active todoitem">                                <a href="#">to-do item outstanding</a>                             </li>                             <li class="disabled">                                <a href="#">to-do item complete</a>                             </li>                             <li class="active todoitem">                                <a href="#">to-do item outstanding</a>                             </li>                             <li class="active todoitem">                                <a href="#">to-do item outstanding</a>                             </li>                             <li class="active todoitem">                                <a href="#">to-do item outstanding</a>                             </li>                          </ul>                       </div>                       <div role="tabpanel" class="tab-pane fade" id="keeperlog">                          <ul class="nav nav-pills nav-stacked dashtodo">                             <li class="active todoitem">                                <a href="#">to-do item outstanding</a>                             </li>                             <li class="disabled">                                <a href="#">to-do item complete</a>                             </li>                             <li class="disabled">                                <a href="#">to-do item complete</a>                             </li>                          </ul>                       </div>                    </div>                 </div>              </div>           </div>        </div>     </div> 

and css i've added boostrap height is:

html, body {     height: 100%; }  .fill {      min-height: 100%;     height: 100%; } 

the culprit form tag has been inserted automatically asp.net render controls. simple fix change css to:

html, body, form {     height: 100%; }  .fill {      min-height: 100%;     height: 100%; } 

the height works expected


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -