<?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; Text-Shadow</title>
	<atom:link href="http://webdesignandsuch.com/tag/text-shadow/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdesignandsuch.com</link>
	<description>a Beantown Design Production</description>
	<lastBuildDate>Wed, 08 Sep 2010 02:29:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using Text-Shadow with CSS3</title>
		<link>http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/</link>
		<comments>http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 19:03:07 +0000</pubDate>
		<dc:creator>ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Text-Shadow]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=538</guid>
		<description><![CDATA[Remember the old days when the only way to create a shadow on text was to make it an image? That&#8217;s good for search engines..right? Oh sure, just use some image replacement and then the search engines can read it. Not so easy for text edits in the future. Or for changing the color of [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://webdesignandsuch.com/imagesForPosts/text-shadow.jpg" title="CSS3 text shadow" class="alignnone" width="422" height="211" style="border:3px solid #bbb; margin:0 0 15px 0"/></p>
<p>Remember the old days when the only way to create a shadow on text was to make it an image? <em>That&#8217;s good for search engines..right?</em> Oh sure, just use some image replacement and then the search engines can read it. Not so easy for text edits in the future. Or for changing the color of the text or the background behind the text.</p>
<p><strong>Fastforward to CSS3</strong>. Now we can define a shadow behind live text on a website. <em>Wiggity whaaat?</em> That&#8217;s right, simply with some good old CSS. Of course you&#8217;ll need to use a real browser, as of any other cool CSS technique, but I won&#8217;t even begin to go into that topic. <strong>So why is this so great?</strong></p>
<ul>
<li><strong>Search engines can read the text</strong></li>
<li><strong>Easily change the color of the text</strong></li>
<li><strong>Easily change the color, size, or blur of the shadow</strong></li>
<li><strong>Easily change the background color or image behind the text</strong></li>
<li><strong>Your friends will be like<em> totally impressed</em></strong></li>
</ul>
<p>An example of this is the title to every article on this lil website of mine. Do you see the shadow behind the title &#8220;<strong>Using Text-Shadow with CSS3</strong>&#8220;? If you don&#8217;t for the love of god.. <a href="http://www.mozilla.com/en-US/firefox/personal.html">DOWNLOAD FIREFOX</a>! Check out the demo for some more examples of text-shadow created with CSS3, and then continue reading to learn how to write the CSS.</p>
<p><a class="demo-link" href="http://webdesignandsuch.com/posts/text-shadow/text-shadow.html">View Demo</a></p>
<p><span id="more-538"></span></p>
<p>The CSS to create the text-shadow is pretty simple. It&#8217;s written like this:</p>
<p> <strong>{text-shadow: 2px 2px 4px #000}</strong> </p>
<p>The first number is how far right of the text the shadow should go, the second is how far below the text, and the final number is the amount of blur to apply to the shadow. Then of course the color of the shadow is declared.</p>
<p>You can see below the examples from the demo page, and below them are the CSS styles that create each effect.</p>
<div class="codeBox">
<h1 style="color:#000; text-shadow:2px 2px 4px #000">H1 with text-shadow applied.</h1>
<p>{color:#000; text-shadow:2px 2px 4px #000}</p></div>
<p></p>
<div class="codeBox">
<h1 style="color:#000; text-shadow:2px 2px 8px #000">More blur applied to the shadow.</h1>
<p>{color:#000; text-shadow:2px 2px 8px #000}</p></div>
<p></p>
<div class="codeBox">
<h1 style="color:#000; text-shadow:4px 4px 4px #CCC; line-height:25px">Same blur, more distance, lighter color.</h1>
<p>{color:#000; text-shadow:4px 4px 4px #CCC}</p></div>
<p></p>
<div class="codeBox">
<h1 style="color:#006; text-shadow:2px 2px 4px #00C">Using color for the shadow.</h1>
<p>{color:#006; text-shadow:2px 2px 4px #00C}</p></div>
<p></p>
<div class="codeBox">
<h1 style="color:#F09; text-shadow:2px 2px 5px #F6F">Another example of color.</h1>
<p>{color:#F09; text-shadow:2px 2px 5px #F6F}</p></div>
<p></p>
<p>In this next example you can see how you can create a beveled look by using a shadow that goes zero pixels to either side, but goes 1 pixel straight up above the text.</p>
<div class="codeBox">
<h1 style="color:#090; text-shadow:0px -1px 0px #000">Create a beveled look.</h1>
<p>{color:#090; text-shadow:0px -1px 0px #000}</p>
</div>
<p><strong>So there it is, creating text-shadows with CSS3.</strong> You might also want to check out a <a href="http://webdesignandsuch.com/2009/10/rounded-corners-with-css3-border-radius/">recent article</a> where I show how to use border-radius with CSS3; (which is how the rounded corners on these divs above were created).</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://webdesignandsuch.com/2009/11/using-box-shadow-with-css3/" rel="bookmark" class="crp_title">Using Box-Shadow with CSS3Learn how to use CSS3 to add shadows to an image, table or div.</a></li><li><a href="http://webdesignandsuch.com/2009/10/create-a-navigation-with-an-unordered-list-css3-2/" rel="bookmark" class="crp_title">Create a Navigation with an Unordered List &amp; CSS3</a></li><li><a href="http://webdesignandsuch.com/2009/10/create-a-navigation-with-an-unordered-list-css3/" rel="bookmark" class="crp_title">Create a Navigation with an Unordered List &#038; CSS3</a></li><li><a href="http://webdesignandsuch.com/2009/10/change-the-default-background-color-of-text-on-selection-with-css-2/" rel="bookmark" class="crp_title">Change the Background Color of Text on Selection with CSS</a></li><li><a href="http://webdesignandsuch.com/2009/10/change-the-default-background-color-of-text-on-selection-with-css/" rel="bookmark" class="crp_title">Change the default Background Color of Text on Selection with CSS</a></li></ul></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/&amp;title=Using+Text-Shadow+with+CSS3" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/&amp;title=Using+Text-Shadow+with+CSS3" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/&amp;bm_description=Using+Text-Shadow+with+CSS3&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/&amp;title=Using+Text-Shadow+with+CSS3" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/&amp;title=Using+Text-Shadow+with+CSS3" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/&amp;title=Using+Text-Shadow+with+CSS3" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Using+Text-Shadow+with+CSS3+-+http://b2l.me/ap64am&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
