"Test: Media queries"
Bootstrap 3.3.0 Snippet by mrmccormack

<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 ----------> <div class="container"> <div class="row"> <div class="element"></div> </div> </div>
.element { display: inline-block; width: 1000px; height: 421px; background: #f44336; } @media (min-width: 400px) { .element { background: #cccccc; background-image: url("http://i.imgur.com/pNkul5j.jpg"); } } @media (min-width: 500px) { .element { background: #888888; } } @media (min-width: 600px) { .element { background: #222222; background-image: url("http://i.imgur.com/ltiCdvQ.jpg"); } }

Related: See More


Questions / Comments: