html - Twitter Bootstrap 3: Aligning columns to container content -
i know how solve issue using css overrides bootstrap's compiled css, seems me alignment issue such common use case must have misunderstood how use bootstrap framework. (first time bootstrap.)
case: columns in container b (jsfiddle) not align content in container a, because bootstrap generates 15px left/right padding each column.
<section class="container a"> <h1>about us</h1> <p>lorem</p> </section> <section class="container b"> <div class="col-md-3"> <h2>hiya!</h2> <p>lorem ipsum</p> </div> <div class="col-md-3"> <h2>hiya!</h2> <p>lorem ipsum</p> </div> <div class="col-md-3"> <h2>hiya!</h2> <p>lorem ipsum</p> </div> <div class="col-md-3"> <h2>hiya!</h2> <p>lorem ipsum</p> </div> </section>
question: there way can make column content align container content, changing html only, without using css?
setup: i'm required use twitter bootstrap 3.0.0 above.
ot: see first post on so, i'm grateful advice on how improve question , markup.
thanks!
yes, used 2 containers, updated fiddle 2 rows instead , div class col-md-12 take whole width of screen in first row, check here : http://jsfiddle.net/3eljh/3/
Comments
Post a Comment