<?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>Boston Web Designer Blog &#187; Tutorials</title>
	<atom:link href="http://www.ebenoit.com/blog/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ebenoit.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 01 Jun 2011 13:58:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Entire Image Flexible Drop Shadows</title>
		<link>http://www.ebenoit.com/blog/css-entire-image-flexible-drop-shadows/</link>
		<comments>http://www.ebenoit.com/blog/css-entire-image-flexible-drop-shadows/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 16:05:45 +0000</pubDate>
		<dc:creator>Eric Benoit</dc:creator>
				<category><![CDATA[Experiments]]></category>
		<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[compliant]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[drop shadow]]></category>
		<category><![CDATA[flexible]]></category>
		<category><![CDATA[standards]]></category>

		<guid isPermaLink="false">http://www.ebenoit.com/blog/?p=36</guid>
		<description><![CDATA[Create expandable, flexible css dropshadows that go around an entire image, are standards compliant and fully tested on all of the major browsers.]]></description>
			<content:encoded><![CDATA[<p>Create expandable, flexible css dropshadows that go around an entire image, are standards compliant and fully tested on all of the major browsers.</p>
<p>This tutorial is a spin-off from <a href="http://www.alistapart.com/articles/onionskin" target="_blank">A List Apart’s Onion Skinned Drop Shadows tutorial</a>. If you wish to learn more about how this method works, please review A List Apart’s article. In their example they explain in great detail how it works but they only show you how to create a drop shadow on part of the image. In my example I will show you how to create an expandable, flexible, css drop shadow that goes around an <em>entire</em> image.</p>
<p>It may not be the prettiest method but it works and it sure beats adding a drop shadow to a pile of images. All of my drop shadow graphics are 4 pixels x 4 pixels and the selector .ds10’s padding is 4px. So if your drop shadow images are a different size all you need to adjust is the padding for selector .ds10 and you are all set.</p>
<p><strong>Browsers Tested:</strong><br />
Internet Explorer  (PC 6,7/Mac), Firefox (PC/Mac), Safari (Mac), Netscape Navigator (Mac) &#8211; feel free to add to the list.</p>
<p><strong>CSS:</strong><br />
<code>.ds1, .ds2, .ds3, .ds4, .ds5, .ds6, .ds7, .ds8, .ds9, .ds10 {<br />
display:inline-table;<br />
/* \*/display:block;/**/<br />
}</code></p>
<p><code>.ds1 {<br />
float:left;<br />
}</code></p>
<p><code>.ds2 {<br />
background:url(left.gif) left top repeat-y;<br />
}</code></p>
<p><code>.ds3 {<br />
background:url(bottom.gif) left bottom repeat-x;<br />
}</p>
<p>.ds4 {<br />
background:url(corner_bl.gif) left bottom no-repeat;<br />
}</p>
<p>.ds5 {<br />
background:url(top.gif) left top repeat-x;<br />
}</p>
<p>.ds6 {<br />
background:url(right.gif) right top repeat-y;<br />
}</p>
<p>.ds7 {<br />
background:url(corner_tl.gif) left top no-repeat;<br />
}</p>
<p>.ds8 {<br />
background:url(corner_tr.gif) right top no-repeat;<br />
}</p>
<p>.ds9 {<br />
background:url(corner_br.gif) right bottom no-repeat;<br />
}</p>
<p>.ds10 {<br />
padding: 4px;<br />
}</p>
<p></code></p>
<p><code>.ds10 img {<br />
display:block;<br />
}</code></p>
<p><strong>HTML:</strong><br />
<code>&lt;div class="ds1"&gt;<br />
&lt;div class="ds2"&gt;&lt;div class="ds3"&gt;&lt;div class="ds4"&gt;<br />
&lt;div class="ds5"&gt;&lt;div class="ds6"&gt;&lt;div class="ds7"&gt;<br />
&lt;div class="ds8"&gt;&lt;div class="ds9"&gt;&lt;div class="ds10"&gt;<br />
&lt;img src="images/teddy_bear.jpg" alt="CSS Dropshadow" /&gt;<br />
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;<br />
&lt;/div&gt;</code></p>
<p><strong>Source Files:</strong><br />
<a href="http://www.ebenoit.com/assets/css-flexible-image-dropshadow.zip">Download HTML, CSS &amp; Images</a></p>
<p><strong>Example:</strong></p>
<div class="ds1">
<div class="ds2">
<div class="ds3">
<div class="ds4">
<div class="ds5">
<div class="ds6">
<div class="ds7">
<div class="ds8">
<div class="ds9">
<div class="ds10"><img class="alignnone size-full wp-image-38" title="css entire image drop shadow" src="http://www.ebenoit.com/blog/wp-content/uploads/2009/09/teddy-bear.jpg" alt="css entire image drop shadow" width="350" height="263" /></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<style type="text/css" media=screen>
<!-- .ds1, .ds2, .ds3, .ds4, .ds5, .ds6, .ds7, .ds8, .ds9, .ds10 { display:inline-table; /* \*/display:block;/**/ } .ds1 { float:left; } .ds2 { background:url(http://www.ebenoit.com/images/tutorial/left.gif) left top repeat-y; } .ds3 { background:url(http://www.ebenoit.com/images/tutorial/bottom.gif) left bottom repeat-x; } .ds4 { background:url(http://www.ebenoit.com/images/tutorial/corner_bl.gif) left bottom no-repeat; } .ds5 { background:url(http://www.ebenoit.com/images/tutorial/top.gif) left top repeat-x; } .ds6 { background:url(http://www.ebenoit.com/images/tutorial/right.gif) right top repeat-y; } .ds7 { background:url(http://www.ebenoit.com/images/tutorial/corner_tl.gif) left top no-repeat; } .ds8 { background:url(http://www.ebenoit.com/images/tutorial/corner_tr.gif) right top no-repeat; } .ds9 { background:url(http://www.ebenoit.com/images/tutorial/corner_br.gif) right bottom no-repeat; } .ds10 { padding: 4px; } .ds10 img { display:block; } --></style>
<div class="clear"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ebenoit.com/blog/css-entire-image-flexible-drop-shadows/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

