Skip to content

Instantly share code, notes, and snippets.

@ianlintner-wf
Last active January 2, 2016 20:29
Show Gist options
  • Save ianlintner-wf/8357080 to your computer and use it in GitHub Desktop.
Save ianlintner-wf/8357080 to your computer and use it in GitHub Desktop.
HTML/CSS3 IPad
<body>
<div class="ipad">
<div class="screen">
</div>
</div>
</body>
body{
background:#FFF;
}
div.ipad{
width: 400px;
height: 300px;
background-color: #000;
margin: auto;
margin-top: 10px;
border-radius: 20px;
box-shadow:1px 1px 1px 1px rgba(255,255,255,.5);
padding-left:2%;
padding-top:2%;
padding-bottom: 2%;
padding-right:2%;
}
.screen{
width: 100%;
height: 100%;
float: left;
margin-top: auto;
background-color: #FFF;
border-radius: 1%;
box-shadow:1px 1px 2px rgba(0,0,0,.6);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment