<?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>WebDesign &#38; Such &#187; Box-Shadow</title>
	<atom:link href="http://webdesignandsuch.com/tag/box-shadow/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdesignandsuch.com</link>
	<description>a Beantown Design Production</description>
	<lastBuildDate>Thu, 29 Jul 2010 00:02:25 +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>Using Box-Shadow with CSS3</title>
		<link>http://webdesignandsuch.com/2009/11/using-box-shadow-with-css3/</link>
		<comments>http://webdesignandsuch.com/2009/11/using-box-shadow-with-css3/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 00:20:54 +0000</pubDate>
		<dc:creator>ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Box-Shadow]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=567</guid>
		<description><![CDATA[
			
				
			
		

I showed in a previous post how to use text-shadow with CSS3. Now it&#8217;s time to move on to something that&#8217;s just about as exciting, using Box-Shadow with CSS3. Throw it on a div, on a table, on an image.. anything goes! Of course it doesn&#8217;t work in every browser, but then again not much [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-bottom:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwebdesignandsuch.com%2F2009%2F11%2Fusing-box-shadow-with-css3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwebdesignandsuch.com%2F2009%2F11%2Fusing-box-shadow-with-css3%2F&amp;style=normal" height="61" width="51" /><br />
			</a>
		</div>
<p><img class="alignnone" style="border:3px solid #ddd; margin:0 0 15px 0; -webkit-box-shadow: 0px 0px 7px #2178c7; -moz-box-shadow: 0px 0px 7px #2178c7" title="box shadow" src="http://webdesignandsuch.com/imagesForPosts/box-shadow.jpg" alt="" width="422" height="211" /></p>
<p>I showed in a <a href="http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/">previous post</a> how to use text-shadow with CSS3. Now it&#8217;s time to move on to something that&#8217;s just about as exciting, using <strong>Box-Shadow with CSS3</strong>. Throw it on a div, on a table, on an image.. anything goes! Of course it doesn&#8217;t work in every browser, but then again not much I talk about on this site does!</p>
<p>Check out the demo to see some examples and then keep reading to find out how to use <strong>Box-Shadow</strong>.</p>
<p><a class="demo-link" href="http://webdesignandsuch.com/posts/box-shadow/box-shadow.html">View Demo</a><br />
<span id="more-567"></span><br />
Below are the examples from the demo page, with the code below it which made the shadow. For each shadow, you need to declare the dimensions for <strong>-webkit-box-shadow:</strong> and <strong> -moz-box-shadow:</strong>, which takes care of any browser that supports the box-shadow at this point.</p>
<p>The three numbers are similar to using text-shadow with CSS3, the first number is <strong>how far right</strong> the shadow is from the &#8220;box&#8221;, the next number is <strong>how far below</strong>, and the final number is the <strong>amount of blur</strong> for the shadow. Finally, you <strong>declare the color</strong> of the shadow.</p>
<p>You&#8217;ll see on a couple of them I used the awesome border-radius to show how the shadow wraps around a rounded corner. If you need a refresher on the border-radius declarations, <a href="http://webdesignandsuch.com/2009/10/rounded-corners-with-css3-border-radius/">look here</a>. If you want to check out some examples and code of text-shadow, <a href="http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/">look here</a>.</p>
<div class="codeBox" ><img class="alignnone" title="nice" src="http://webdesignandsuch.com/posts/box-shadow/rico.jpg" alt="" width="400" height="300" style="-webkit-box-shadow: 2px 2px 4px #000; -moz-box-shadow: 2px 2px 4px #000"/></p>
<p>{<br />-webkit-box-shadow: 2px 2px 4px #000; <br />-moz-box-shadow: 2px 2px 4px #000<br />}</div>
<div class="codeBox" style="margin-top:20px"><img class="alignnone" title="nice" src="http://webdesignandsuch.com/posts/box-shadow/rico.jpg" alt="" width="400" height="300" style="-webkit-box-shadow: 6px 6px 6px #444; -moz-box-shadow: 6px 6px 6px #444"/></p>
<p>{<br />-webkit-box-shadow: 6px 6px 6px #444;<br />-moz-box-shadow: 6px 6px 6px #444<br />}</div>
<div class="codeBox" style="margin-top:20px"><img class="alignnone" title="nice" src="http://webdesignandsuch.com/posts/box-shadow/rico.jpg" alt="" width="400" height="300" style="-webkit-box-shadow: 4px 4px 6px #fc6; -moz-box-shadow: 4px 4px 6px #FF66CC"/></p>
<p>{<br />-webkit-box-shadow: 4px 4px 6px #F6C;<br />-moz-box-shadow:4px 4px 6px #F6C<br />}</div>
<div class="codeBox" style="margin-top:20px"><img class="alignnone" title="nice" src="http://webdesignandsuch.com/posts/box-shadow/rico.jpg" alt="" width="400" height="300" style="-webkit-box-shadow: 6px 6px 10px #000; -moz-box-shadow: 6px 6px 10px #000; -webkit-border-radius:12px; -moz-border-radius:12px; border:15px solid #FF9900"/></p>
<p>{<br />-webkit-box-shadow: 6px 6px 10px #000; <br />-moz-box-shadow: 6px 6px 10px #000;<br />-webkit-border-radius:12px;<br />
-moz-border-radius:12px; <br />border:15px solid #F90<br />}</div>
<div class="codeBox" style="margin-top:20px"><img class="alignnone" title="nice" src="http://webdesignandsuch.com/posts/box-shadow/rico.jpg" alt="" width="400" height="300" style="-webkit-box-shadow: 6px 6px 10px #990; -moz-box-shadow: 6px 6px 10px #990; -webkit-border-radius:12px; -moz-border-radius:12px; border:12px solid #000"/></p>
<p>{<br />-webkit-box-shadow: 6px 6px 10px #990; <br />-webkit-border-radius:12px; <br />-moz-box-shadow: 6px 6px 10px #990;<br />-moz-border-radius:12px; <br />border:12px solid #000<br />}</div>
<div class="codeBox" style="margin-top:20px"><img class="alignnone" title="nice" src="http://webdesignandsuch.com/posts/box-shadow/rico.jpg" alt="" width="400" height="300" style="-webkit-box-shadow: 0px 0px 20px #6F0; -moz-box-shadow: 0px 0px 20px #66FF00"/></p>
<p>{<br />-webkit-box-shadow: 0px 0px 20px #6F0;<br />-moz-box-shadow: 0px 0px 20px #6F0<br />}</div>
<div class="codeBox" style="margin-top:20px"><img class="alignnone" title="nice" src="http://webdesignandsuch.com/posts/box-shadow/rico.jpg" alt="" width="400" height="300" style="-webkit-box-shadow: 0px 0px 30px #000; -moz-box-shadow: 0px 0px 30px #000"/></p>
<p>{<br />-webkit-box-shadow: 0px 0px 30px #000; <br />-moz-box-shadow: 0px 0px 30px #000<br />}</div>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/2009/11/using-box-shadow-with-css3/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
