A Pen by Chase Harrison on CodePen.
Created
February 28, 2019 12:01
-
-
Save ChaseH88/5526625600ac6c26af09367066e0e2be to your computer and use it in GitHub Desktop.
Mobile Site Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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