Bs Stacked/Horizontzl
Bootstrap Grid - Stacked-to-horizontal
Bootstrap Grid Example: Stacked-to-horizontal
We volition practise a basic grid organization that starts out stacked on extra pocket-size devices, earlier becoming horizontal on larger devices.The next event shows a uncomplicated "stacked-to-horizontal" two-column layout, pregnant it volition final result inwards a 50%/50% dissever on all screens, except for extra pocket-size screens, which it volition automatically stack (100%):
col-sm-6
col-sm-6
Example: Stacked-to-horizontal
<div class="container">
<h1>Hello World!</h1>
<div class="row">
<div class="col-sm-6" style="background-color:yellow;">
<p>Lorem ipsum...</p>
</div>
<div class="col-sm-6" style="background-color:pink;">
<p>Sed ut perspiciatis...</p>
</div>
</div>
</div>
Tip: The numbers inwards the
Note: Make certain that the amount ever adds upwards to 12!
Tip: You tin plough whatever fixed-width layout into a full-width layout past times changing the .col-sm-*
classes indicates how many columns the div should bridge (out of 12). So, .col-sm-1
spans one column, .col-sm-4
spans four columns, .col-sm-6
spans half dozen columns, etc.Note: Make certain that the amount ever adds upwards to 12!
.container
shape to .container-fluid
:Example: Fluid container
<div class="container-fluid">
<h1>Hello World!</h1>
<div class="row">
<div class="col-sm-6" style="background-color:yellow;">
<p>Lorem ipsum...</p>
</div>
<div class="col-sm-6" style="background-color:pink;">
<p>Sed ut perspiciatis...</p>
</div>
</div>
</div>
HOW TO
TabsDropdowns
Accordions
Convert Weights
Animated Buttons
Side Navigation
Top Navigation
Modal Boxes
Progress Bars
Parallax
Login Form
HTML Includes
Google Maps
Range Sliders
Tooltips
Slideshow
Filter List
Sort List
Comments
Post a Comment