Skip to content

Instantly share code, notes, and snippets.

@aurelkurtula
Created March 5, 2013 13:24
Show Gist options
  • Save aurelkurtula/5090275 to your computer and use it in GitHub Desktop.
Save aurelkurtula/5090275 to your computer and use it in GitHub Desktop.
box with fine border shadow
/**
* box with fine border shadow
*/
/* got it from @LeaVerou via http://www.youtube.com/watch?v=3ikye7Qc7Ak&list=WL32E91C6871EAFE00 */
div{
overflow: scroll;
width: 200px;
height: 300px;
margin-top: 100px;
background:radial-gradient(50% 0, rgba(0,0,0,.2), transparent 70%),
radial-gradient(50% 100%, rgba(0,0,0,.2), transparent 70%) bottom;
background-size: 100% 7px;
background-repeat: no-repeat;
<!-- box with fine border shadow -->
<div>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
<p>this is it</p>
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment