<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dana Woodman &#187; CSS3</title>
	<atom:link href="http://www.danawoodman.com/tag/css3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danawoodman.com</link>
	<description>The online home of Dana Woodman.</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:05:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS3 box-shadow property</title>
		<link>http://www.danawoodman.com/2009/11/css3-box-shadow-property/</link>
		<comments>http://www.danawoodman.com/2009/11/css3-box-shadow-property/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 00:28:48 +0000</pubDate>
		<dc:creator>Dana Woodman</dc:creator>
				<category><![CDATA[Reference]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.danawoodman.com/?p=11</guid>
		<description><![CDATA[This post outlines the new CSS3 box-shadow property and what you can do with it in your designs.



Table Of Contents


    Description
    Examples
    Possible Values
    Browser Support
    Conclusions


Description

The box-shadow property allows drop shadows (as well as inner shadows) on block elements.

It [...]]]></description>
			<content:encoded><![CDATA[<p>This post outlines the new CSS3 box-shadow property and what you can do with it in your designs.</p>

<p><span id="more-11"></span></p>

<h3>Table Of Contents</h3>

<ul>
    <li><a href="#description">Description</a></li>
    <li><a href="#examples">Examples</a></li>
    <li><a href="#possible-values">Possible Values</a></li>
    <li><a href="#browser-support">Browser Support</a></li>
    <li><a href="#conclusion">Conclusions</a></li>
</ul>

<h3 id="description">Description</h3>

<p>The <code>box-shadow</code> property allows drop shadows (as well as inner shadows) on block elements.</p>

<p class="note">It is important to note that using <code>box-shadow</code> <span style="text-decoration: line-through;">alone is not supported in any browser yet because CSS3 is not finalized</span> is <a href="http://www.w3.org/TR/css3-background/#the-box-shadow">not even in the CSS3 specification anymore</a>. Currently to get it working in WebKit browsers (Safari, Chrome) you need to use <code>-webkit-box-shadow</code> and for Mozilla browsers like Firefox you must use <code>-moz-box-shadow</code>.</p>

<h3 id="examples">Examples</h3>

<h5>Box with a normal drop shadow</h5>

<p><pre>box-shadow: 3px 3px 3px #666;
-moz-box-shadow: 3px 3px 3px #666;
-webkit-box-shadow: 3px 3px 3px #666;</pre></p>

<p class="example-box" style="box-shadow 3px 3px 3px #666; -moz-box-shadow 3px 3px 3px #666; -webkit-box-shadow: 3px 3px 3px #666;;">This box should have a 3px drop shadow.</p>

<h5>Box with an equidistant drop shadow</h5>

<p><pre>box-shadow: 0 0 6px #666;
-moz-box-shadow: 0 0 6px #666;
-webkit-box-shadow: 0 0 6px #666;</pre></p>

<p class="example-box" style="box-shadow 0 0 6px #666; -moz-box-shadow 0 0 6px #666; -webkit-box-shadow: 0 0 6px #666;;">This box should have a drop shadow on all sides.</p>

<h5>Box with an inset shadow</h5>

<p><pre>box-shadow: inset 3px 3px 3px #666;
-moz-box-shadow: inset 3px 3px 3px #666;
-webkit-box-shadow: inset 3px 3px 3px #666;</pre></p>

<p class="example-box" style="box-shadow: inset 3px 3px 3px #666; -moz-box-shadow: inset 3px 3px 3px #666; -webkit-box-shadow: inset 3px 3px 3px #666;;">This box should have a 3px inner shadow.</p>

<h5>Box with a solid 2px drop shadow</h5>

<p><pre>box-shadow: 2px 2px 0 2px #666;
-moz-box-shadow: 2px 2px 0 2px #666;
-webkit-box-shadow: 2px 2px 0 2px #666;</pre></p>

<p class="example-box" style="box-shadow: 2px 2px 0 2px #666; -moz-box-shadow: 2px 2px 0 2px #666; -webkit-box-shadow: 2px 2px 0 2px #666;">This box should have a 2px offset drop shadow that is solid.</p>

<h5>Box with a reverse 3px drop shadow</h5>

<p><pre>box-shadow: -3px -3px 3px #666;
-moz-box-shadow: -3px -3px 3px #666;
-webkit-box-shadow: -3px -3px 3px #666;</pre></p>

<p class="example-box" style="box-shadow: -3px -3px 3px #666; -moz-box-shadow: -3px -3px 3px #666;; -webkit-box-shadow: -3px -3px 3px #666;">This box has a reverse 3px offset drop shadow.</p>

<h3 id="possible-values">Possible Values:</h3>

<table border="0" cellspacing="0">
<tbody>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>inset</code></td>
<td>If assigned, the outer shadow becomes a inner shadow.</td>
</tr>
<tr>
<td>horizontal offset</td>
<td>The distance to offset the shadow horizontally, can be positive or negative.</td>
</tr>
<tr>
<td>vertical offset</td>
<td>The distance to offset the shadow vertically, can be positive or negative.</td>
</tr>
<tr>
<td>blur radius</td>
<td>The distance to blur the shadow.</td>
</tr>
<tr>
<td>spread radius</td>
<td>The distance the radius is pushed away from the box.</td>
</tr>
<tr>
<td>shadow color</td>
<td>The color code to use for the shadow (e.g. &#8220;#fff&#8221;, or &#8220;white&#8221;, or &#8220;rgb(255,255,255), or even &#8220;rgba(255,255,255,.6)&#8221;).</td>
</tr>
</tbody></table>

<h3 id="browser-support">Browser Support</h3>

<h5>Supported Browsers</h5>

<ul>
    <li>Firefox (since version 3.5)</li>
    <li>Safari (since version 3.1)</li>
    <li>Chrome (since  first version).</li>
</ul>

<h5>Unsupported Browsers</h5>

<ul>
    <li>Internet Explorer</li>
    <li>Opera (rumored to be supported in version 10)</li>
</ul>

<h3 id="conclusion">Conclusion</h3>

<p>I hope the above information was useful. If you want to see more examples of this property, want to see other tutorials, or have a question or comment please leave a message below.</p>

<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danawoodman.com/2009/11/css3-box-shadow-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
