html - Bootstrap 3 - Column Wrapping - Taking up the available space in a column -
i struggling bit how things lined bootstrap 3. when column wraps, scroll bottom of last div.
often times, have sidebar exceeds length of main body. information goes in side bar less important main box, more important information on bottom.
how can 2 green sections in following example line on larger screen?
view example code - http://www.bootply.com/42xm6pgods
.example{ background-color: green; min-height:200px } .example2{ background-color: red; min-height:500px; } <div class="container"> <div class="row"> <div class="col-lg-8"> <div class="example"> main body of information </div> </div> <div class="col-lg-4"> <div class="example2"> important information on sidebar when on large screen </div> </div> <div class="col-lg-8"> <div class="example"> less important information </div> </div> </div> </div>
one way use pull-right on sidebar..
<div class="container"> <div class="row"> <div class="col-lg-8"> <div class="example"> main body of information </div> </div> <div class="col-lg-4 pull-right"> <div class="example2"> important information on sidebar when on large screen </div> </div> <div class="col-lg-8"> <div class="example"> less important information </div> </div> </div> </div>
Comments
Post a Comment