"mobile"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/coreybruyere/pen/QNmLOj?depth=everything&order=popularity&page=58&q=mobile&show_forks=false" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'> <style class="cp-pen-styles">/** @displays -------------------------------------------------------- modules/_displays.scss -------------------------------------------------------- Styling for fake displays to hold images ----------------------------------------------------- */ .display { display: table; width: 100%; margin: 0 auto; } .display__item { display: table-cell; vertical-align: bottom; } .display__item--sm { display: none; } @media screen and (min-width: 34.375em) { .display__item--sm { display: table-cell; width: 13%; } } .display__item--md { display: none; } @media screen and (min-width: 34.375em) { .display__item--md { display: table-cell; width: 23%; } } .display__item--lg { width: 100%; } @media screen and (min-width: 34.375em) { .display__item--lg { width: 64%; } } .display__view { position: relative; box-shadow: 0 0 0.563em 0.125em rgba(128, 128, 128, 0.35); } .display__view > img { width: 100%; max-width: 100%; border: 1px solid #cfd2d2; border-bottom: 0; box-sizing: border-box; } .display__item--sm .display__view { padding: 1.500em 0.625em; border-radius: 0.625em; background-color: #ffffff; } .display__item--sm .display__view:before { display: block; position: absolute; top: 0.625em; left: 50%; width: 0.750em; height: 0.125em; -webkit-transform: translateX(-50%); transform: translateX(-50%); border-radius: 0.125em; background-color: #cfd2d2; content: ''; } .display__item--md .display__view { padding: 1.500em; border-radius: 0.625em; background-color: #ffffff; } .display__item--md .display__view:before { display: block; position: absolute; top: 0.625em; left: 50%; width: 0.250em; height: 0.250em; -webkit-transform: translateX(-50%); transform: translateX(-50%); border-radius: 0.125em; background-color: #cfd2d2; content: ''; } .display__item--lg .display__view { padding: 1.375em 0 0; border-radius: 0.188em; background-color: #ffffff; } .display__item--lg .display__view:before { display: block; position: absolute; top: 0.375em; left: 0.500em; width: 0.625em; height: 0.625em; border-radius: 0.313em; background-color: #cfd2d2; box-shadow: 0 0 0 0 #cfd2d2, 0.938em 0 0 0 #cfd2d2, 1.875em 0 0 0 #cfd2d2; content: ''; } .display__view--pull { margin-left: -1.563em; } *, *:before, *:after { box-sizing: inherit; -webkit-box-sizing: inherit; } html { height: 100%; background: -webkit-linear-gradient(#ccc, rgba(204, 204, 204, 0.75)); background: linear-gradient(#ccc, rgba(204, 204, 204, 0.75)); background-repeat: no-repeat; } body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; max-width: 960px; height: 100%; margin: auto; } </style></head><body> <!-- TODO: use width(w) descriptors on srcset instead of density(x) descriptors. Point srcset to 2 different width src images --> <div class="display"> <div class="display__item display__item--lg"> <div class="display__view"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/21704/tkp-desk-1200x670.jpg" srcset="https://s3-us-west-2.amazonaws.com/s.cdpn.io/21704/tkp-desk-1200x670.jpg 3x" sizes="13vw" alt="Alt Text"> </div> </div> <div class="display__item display__item--md"> <div class="display__view display__view--pull"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/21704/tkp-tablet-540x675.jpg" srcset="https://s3-us-west-2.amazonaws.com/s.cdpn.io/21704/tkp-tablet-540x675.jpg 3x" sizes="23vw" alt="Alt Text"> </div> </div> <div class="display__item display__item--sm"> <div class="display__view display__view--pull"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/21704/tkp-mobile-382x675.jpg" srcset="https://s3-us-west-2.amazonaws.com/s.cdpn.io/21704/tkp-mobile-382x675.jpg 3x" sizes="(min-width: 34.375em) 64vw, 100vw" alt="Alt Text"> </div> </div> </div> </body></html>

Related: See More


Questions / Comments: