Skip to content

Instantly share code, notes, and snippets.

@alchemycs
Created June 20, 2011 23:24
Show Gist options
  • Save alchemycs/1036856 to your computer and use it in GitHub Desktop.
Save alchemycs/1036856 to your computer and use it in GitHub Desktop.
CSS To Simulate a Paper Page
/*
This code is taken from the forrst post: http://forrst.com/posts/CSS_to_simulate_a_paper_page-zwj
*/
section.page {
overflow: hidden;
margin: 50px auto;
width: 600px;
padding: 20px;
border-width: 1px;
border-style: solid;
border-color: #959595;
background-color: #FFFFFF;
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.03);
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.03);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.03);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment