<?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; CSS3</title>
	<atom:link href="http://webdesignandsuch.com/tag/css3/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>
		<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[Code Snippets]]></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[<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-text-shadow-with-css3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwebdesignandsuch.com%2F2009%2F11%2Fusing-text-shadow-with-css3%2F&amp;style=normal" height="61" width="51" /><br />
			</a>
		</div>
<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>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/2009/11/using-text-shadow-with-css3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a Navigation with an Unordered List &amp; CSS3</title>
		<link>http://webdesignandsuch.com/2009/10/create-a-navigation-with-an-unordered-list-css3/</link>
		<comments>http://webdesignandsuch.com/2009/10/create-a-navigation-with-an-unordered-list-css3/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 11:42:04 +0000</pubDate>
		<dc:creator>ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS3]]></category>

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

Using an unordered list is a simple and easy to style method of creating a navigation bar. Now with CSS3 and round corners created by the browser, it&#8217;s even easier to make a nice and clean nav. I introduced CSS3&#8217;s border-radius in a previous post, located here.
Check out the example I created, and then keep [...]]]></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%2F10%2Fcreate-a-navigation-with-an-unordered-list-css3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwebdesignandsuch.com%2F2009%2F10%2Fcreate-a-navigation-with-an-unordered-list-css3%2F&amp;style=normal" height="61" width="51" /><br />
			</a>
		</div>
<p><a href="http://webdesignandsuch.com/posts/nav/ul-nav.html"><img class="alignnone" title="nav" src="http://webdesignandsuch.com/posts/nav/nav.jpg" alt="" width="422" height="140" class="frame"/></a></p>
<p>Using an unordered list is a simple and easy to style method of creating a navigation bar. Now with CSS3 and round corners created by the browser, it&#8217;s even easier to make a nice and clean nav. I introduced CSS3&#8217;s border-radius in a previous post, <a href="http://webdesignandsuch.com/2009/10/rounded-corners-with-css3-border-radius/">located here</a>.</p>
<p>Check out the example I created, and then keep reading to find out how to create the above nav with nothing more than some CSS.</p>
<p><a class="demo-link" href="http://webdesignandsuch.com/posts/nav/ul-nav.html">View Demo</a><br />
<span id="more-465"></span><br />
<strong>First create your unordered list in your XHTML.</strong></p>
<div class="codeBox">&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221; class=&#8221;current&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;About&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Services&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Contact&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</div>
<p>The first thing to do with your CSS is to make your unordered list display on the same line, and with no bullet points.</p>
<div class="codeBox">ul {list-style-type:none}<br />
li {display:inline}</div>
<p><strong>The next step is to style the links.</strong> We&#8217;ll add some padding around the links to space them out, and to give the background color the width and height we want. On the hover state of the links I made the border appear as you roll over the link. </p>
<p>You&#8217;ll see I made an &#8220;active&#8221; state for the current page you are on. I set the cursor for the active state to be the &#8220;default&#8221; cursor. This is so when you roll over the link of the current page you are on the pointer cursor will turn into the arrow, giving the illusion that it isn&#8217;t a link (even though it really is).</p>
<div class="codeBox">a:link, a:visited {text-decoration:none; color:#ccc; border:#000 1px solid; padding:5px 15px; -webkit-border-radius:10px; -moz-border-radius:10px}</p>
<p>a:hover, a:active {text-decoration:none; color:#ccc; border:#333 1px solid; padding:5px 15px; -webkit-border-radius:10px; -moz-border-radius:10px }</p>
<p>a.current {-webkit-border-radius:10px; -moz-border-radius:10px; background:#333; color:#FFF; border:#333 1px solid; cursor:default}</p></div>
<p>So there it is, with this basic foundation and your imagination you can make a variety of looks for your navigation. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/2009/10/create-a-navigation-with-an-unordered-list-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
