Created
February 8, 2013 15:46
-
-
Save giuseppeg/4739845 to your computer and use it in GitHub Desktop.
0 Blur! - Drop Shadows - Web Platform Docs Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 0 Blur! - Drop Shadows - Web Platform Docs Examples | |
* | |
* An example of drop shadow with a blur value of 0 | |
* "If the blur value is zero, the shadow's edge is sharp." | |
* | |
* @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 spread color; */ | |
box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.5); | |
border: 1px solid #f00; /* 1px red border just to mark the edges of the article elem */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article> | |
<h1>The spread value - Drop Shadows - Web Platform Docs Examples</h1> | |
<p>An example of drop shadow with a blur value of 0</p> | |
<blockquote cite="http://www.w3.org/TR/css3-background/#box-shadow">If the blur value is zero, the shadow's edge is sharp.</blockquote> | |
<footer role="contentinfo"> | |
<a href="http://docs.webplatform.org/wiki/css/properties/box-shadow">Learn more about Drop Shadows</a> | |
</footer> | |
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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