"Understanding Responsive Utilities"
Bootstrap 3.1.0 Snippet by couchcrumb

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h4> Mr. M.'s Understanding TB's Responsive Utilities</h4> <p> Example of using Twitter Bootstrap 3's "responsive utilities" </p> <!-- see JS file for writing out size of window in class testp --> <p class="testp btn btn-success pull-right"></p> <p> <a href="http://bootsnipp.com/iframe/mMxoZ" target="_blank">View Full Screen</a> </p> <div class="visible-lg"> <img src="https://morningmohring.com/CatImages/cat-2273598_1920%202.jpg" alt="" class="img-responsive img-rounded center-block"> </div> <div class="visible-md"> <img src="https://morningmohring.com/CatImages/cat-2273598_1920%202.jpg" alt="" class="img-responsive img-rounded center-block"> </div> <div class="visible-sm"> <img src="https://morningmohring.com/CatImages2/part%201.jpg" alt="" class="img-responsive img-rounded center-block"> </div> <div class="visible-xs"> <img src="https://morningmohring.com/CatImages2/part%202.jpg" alt="" class="img-responsive img-rounded center-block"> </div> <br><br> <blockquote> For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. </blockquote> <p> <span class="label label-success">Try it out</span> </p> <p> <br> See Twitter Bootstrap docs at: <a href="http://getbootstrap.com/css/#responsive-utilities" target="_blank">http://getbootstrap.com/css/#responsive-utilities</a> </p> <p> <small>Image: <a href="http://www.flickr.com/photos/arselectronica/8613554284/sizes/k/" target="_blank">Ars Electronica</a><br> <a href="http://tinyurl.com/tbvalid9" target="_blank">HTML 5 Valid</a></small> </p> </div> <!-- /.row --> </div> <!-- /.container -->
body{ background-color:black; color:#ccc; } img{ padding:30px }

Related: See More


Questions / Comments: