css - Responsive Bootstrap Tiles (News Like Layout) -
i have been stuck trying obtain particular layout bootstrap finding little success.
.row .col-md-8 %h3 title %p description .col-md-4 .row .col-md-12 %p side item 1 .col-md-12 %p side item 2
some of key issues having getting spacing between squares while still having line in clean fashion.
i have no idea how 2 elements on right "unstack" when viewed on smaller screen.
any or advice appreciated.
you can use nested columns
layout. acheive equal height story , depends (somewhat) on going inside divs.
/**css display purposes only**/ body, html { padding-top: 50px; } .alert.alert-top { height: 300px; border-radius: 0; text-align: center; } .alert.alert-bottom { height: 140px; border-radius: 0; text-align: center; }
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> <hr> <div class="container"> <div class="row"> <div class="col-sm-6"> <div class="row"> <div class="col-sm-12"> <div class="alert alert-info alert-top">top</div> </div> </div> </div> <div class="col-xs-12 col-sm-6"> <div class="row"> <div class="col-sm-12 col-xs-6"> <div class="alert alert-success alert-bottom">bottom left</div> </div> <div class="col-sm-12 col-xs-6"> <div class="alert alert-warning alert-bottom">bottom right</div> </div> </div> </div> </div> </div> <hr>
Comments
Post a Comment