Skip to content

Instantly share code, notes, and snippets.

@ilyabrin
Created December 17, 2011 10:04
Show Gist options
  • Save ilyabrin/1489850 to your computer and use it in GitHub Desktop.
Save ilyabrin/1489850 to your computer and use it in GitHub Desktop.
CSS
/**
* CSS
*/
div {
box-shadow: 1px -1px 10px rgba(0,0,0,.8) inset;
margin: auto;
width: 100px;
height: 120px;
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
div:hover {
box-shadow: 1px -1px 10px rgba(1,1,56,.7) inset;
margin: auto;
width: 105px;
height: 125px;
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
<!-- content to be placed inside <body>…</body> -->
<div>
</div>
{"page":"css","view":"split-vertical"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment