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 .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!
Tip: You tin plough whatever fixed-width layout into a full-width layout past times changing the .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>


Comments

Popular posts from this blog

What Are The Main Components of a Computer System

Top Qualities To Look For In An IT Support Team

How To Integrate Google Adwords Api Into Codeigniter?