Skip to content

Instantly share code, notes, and snippets.

@giuseppeg
Created February 8, 2013 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuseppeg/4740320 to your computer and use it in GitHub Desktop.
Save giuseppeg/4740320 to your computer and use it in GitHub Desktop.
Drop Shadows and round corners - Web Platform Docs Examples
/**
* Drop Shadows and round corners - Web Platform Docs Examples
*
* An example of drop shadow and round corners
* "If the box has a nonzero ‘border-radius’, the shadow shape is rounded in the same way."
*
* @css-for Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+
* @author Giuseppe Gurgone
* @see http://docs.webplatform.org/wiki/css/properties/box-shadow
*/
article {
/* box-shadow: left-offset top-offset blur color; */
box-shadow: 0 0 10px rgba(0, 0, 0, 1);
border-radius: 10px;
border: 1px solid #f00; /* 1px red border just to mark the edges of the article elem */
}
<article>
<h1>Drop Shadows and round corners - Web Platform Docs Examples</h1>
<p>An example of drop shadow and round corners</p>
<blockquote cite="http://www.w3.org/TR/css3-background/#box-shadow">If the box has a nonzero ‘border-radius’, the shadow shape is rounded in the same way.</blockquote>
<footer role="contentinfo">
<a href="http://docs.webplatform.org/wiki/css/properties/box-shadow">Learn more about Drop Shadows</a>
</footer>
</article>
// alert('Hello world!');
{"view":"separate","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment