Skip to content Skip to sidebar Skip to footer

Bootstrap Center Scafolding

I'd have two 'sections' in which I am using the bootstrap 3 scaffolding to style. I am having a hard time figuring out how I might have these maintain their column spacing while s

Solution 1:

<divclass="container"><divclass="row"><divclass="col-md-6 col-md-offset-3"></div></div></div>

Offsets can be used to center a div but remember that it'll work only for even columns

<div class="col-md-8 col-md-offset-2"></div>

You can even change the break-point by replacing

<div class="col-md-6 col-md-offset-3"></div>

with

<div class="col-sm-6 col-sm-offset-3"></div>

Post a Comment for "Bootstrap Center Scafolding"