Skip to content

Instantly share code, notes, and snippets.

@ChaseH88
Created February 28, 2019 12:01
Show Gist options
  • Save ChaseH88/5526625600ac6c26af09367066e0e2be to your computer and use it in GitHub Desktop.
Save ChaseH88/5526625600ac6c26af09367066e0e2be to your computer and use it in GitHub Desktop.
Mobile Site Demo
<figure id="mobilePreview">
<div class="phone">
<img class="phone" src="http://webplus.televoxsites.com/chase/goldfinger3/includes/images/phoneCutout.png" alt="iPhone" />
</div>
<div class="site">
<img class="site" src="http://webplus.televoxsites.com/chase/goldfinger3/includes/images/admiralMobile.jpg" alt="Admiral Starter Mobile Version" />
</div>
</figure>
figure#mobilePreview {position: relative; margin: 0; padding: 0; display: inline-block; width: 230px; overflow: hidden;}
figure#mobilePreview div.phone {position: relative; z-index: 101;}
figure#mobilePreview div.site {position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: 30px 10px 30px 10px; height: 361px; overflow-y: scroll; z-index: 102}
figure#mobilePreview div.site::-webkit-scrollbar {width: 0px; background: transparent;}
figure#mobilePreview div.site img {max-width: 100%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment