Created
June 21, 2012 03:16
-
-
Save vasc/2963601 to your computer and use it in GitHub Desktop.
iphone mockup boilerplate
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
/** | |
* iphone mockup boilerplate | |
*/ | |
html{ | |
min-height: 100% | |
} | |
body{ | |
background: #f06; | |
background: linear-gradient(90deg, #eef, #ccc); | |
background-repeat: no-repeat; | |
min-height: 100%; | |
} | |
#device{ | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
margin: -240px 0 0 -180px; | |
} | |
#screen{ | |
height: 480px; | |
width: 360px; | |
background-color: white; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div id="device"> | |
<div id="screen"> | |
</div> | |
</div> |
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
{"view":"split-vertical","fontsize":"90","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment