]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix image order in carousel example
authorNikita Rushmanov <Nikita240@users.noreply.github.com>
Fri, 23 Jan 2015 10:14:12 +0000 (02:14 -0800)
committerNikita Rushmanov <Nikita240@users.noreply.github.com>
Fri, 23 Jan 2015 10:14:12 +0000 (02:14 -0800)
When the screen is shrunk below the md threshold, all the featurette columns stack.
However, since the second featurette is "backwards", when stacked the second featurette
looked awkward as the image came before the heading.

docs/examples/carousel/index.html

index 71fdb3ec7502ca1ae024201a23f2f48df02e698b..eaa5ff89a3cdfbf5ba10f6e687af90663b378d40 100644 (file)
       <hr class="featurette-divider">
 
       <div class="row featurette">
-        <div class="col-md-5">
-          <img class="featurette-image img-responsive center-block" data-src="holder.js/500x500/auto" alt="Generic placeholder image">
-        </div>
-        <div class="col-md-7">
+        <div class="col-md-7 col-md-push-5">
           <h2 class="featurette-heading">Oh yeah, it's that good. <span class="text-muted">See for yourself.</span></h2>
           <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
         </div>
+        <div class="col-md-5 col-md-pull-7">
+          <img class="featurette-image img-responsive center-block" data-src="holder.js/500x500/auto" alt="Generic placeholder image">
+        </div>
       </div>
 
       <hr class="featurette-divider">