"Show carousel or just images depending on screen size."
Bootstrap 3.3.0 Snippet by azupan

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ----------> <section class="section-white visible-md visible-lg "> <div class="container "> <div class="alert alert-warning alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <p>This is an example of my Portfolio for class.</p> <p class="text-right"> <a href="http://bootsnipp.com/iframe/yM3qe" target="_blank">Best viewed full screen</a><br> <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fbootsnipp.com%2Fiframe%2FyM3qe" target="_blank"><small>HTML</small><sup>5</sup></a> </p> </div> <h2>Adam Zupan's Mini Portfolio</h2> <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li data-target="#carousel-example-generic" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="/Images/johnWickposter.jpg" alt="..."> <div class="carousel-caption"> <h2>Item 1</h2> </div> </div> <div class="item"> <img src="http://flexslider.woothemes.com/images/kitchen_adventurer_donut.jpg" alt="..."> <div class="carousel-caption"> <h2>Item 2</h2> </div> </div> <div class="item"> <img src="http://flexslider.woothemes.com/images/kitchen_adventurer_cheesecake_brownie.jpg" alt="..."> <div class="carousel-caption"> <h2>Item 3</h2> </div> </div> </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> </a> <a class="right carousel-control" href="#carousel-example-generic" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> </a> </div> </div> </section> <hr> <div class="container visible-sm visible-xs"> <div class="row"> <h2>Only images (responsive) are visible on small and x-small screens.</h2> <p>Carousel is hidden from small screens.</p> <div class="col-md-4"> <h4>Item 1 </h4><img src="/Images/johnWickposter.jpg" class="img-responsive" alt=""> </div> <div class="col-md-4"> <h4>Item 2 </h4><img src="http://flexslider.woothemes.com/images/kitchen_adventurer_donut.jpg" class="img-responsive" alt=""> </div> <div class="col-md-4"> <h4>Item 3</h4><img src="http://flexslider.woothemes.com/images/kitchen_adventurer_cheesecake_brownie.jpg" class="img-responsive" alt=""> </div> </div> </div>
/* Forked from: http://bootsnipp.com/snippets/featured/simple-responsive-carousel Makes images fully responsive */ .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; width: 100%; height: auto; } /* ------------------- Carousel Styling ------------------- */ .carousel-inner { border-radius: 15px; } .carousel-caption { background-color: rgba(0,0,0,.5); position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0 0 10px 25px; color: #fff; text-align: left; } .carousel-indicators { position: absolute; bottom: 0; right: 0; left: 0; width: 100%; z-index: 15; margin: 0; padding: 0 25px 25px 0; text-align: right; } .carousel-control.left, .carousel-control.right { background-image: none; } /* ------------------- Section Styling - Not needed for carousel styling ------------------- */ .section-white { padding: 10px 0; } .section-white { background-color: #fff; color: #555; } @media screen and (min-width: 768px) { .section-white { padding: 1.5em 0; } } @media screen and (min-width: 992px) { .container { max-width: 930px; } }

Related: See More


Questions / Comments: