twitter bootstrap 3 - Container-Fluid Vertical divisions -
i have general question bootstraps container-fluid , vertical divisions. i've read many of posts out there can't seem find solution particular issue.
i have container-fluid divides 12 horizontally want divide 12 vertically to. because want keep aspect ratio same.
- basically there way can like... ''
- i control aspect ratio text containers images.
this how it
you must set 'height' property root element deeper, effect work.
css
html, body, .full-height { height: 100%; } .row-md-1 { height: 8.3%; max-height: 8.3%; } .row-md-1:last-child { height: 8.4%; } .cell { height: 100%; overflow: hidden; } html
<html> <body> <div class="container-fulid full-height"> <div class="row row-md-1"> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> <div class="col-md-1 col-xs-1 cell"></div> </div> ... 11 rows later </div> </body> </html> sample
http://www.bootply.com/0ojvoy28bd#
in above example, use height of 100%, can change have same height width little javascript. not know pure form using css.
complete example:
Comments
Post a Comment