<?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>bavotasan.com &#187; Space</title>
	<atom:link href="http://bavotasan.com/tag/space/feed/" rel="self" type="application/rss+xml" />
	<link>http://bavotasan.com</link>
	<description>by c.bavota</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:42:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating Shadows with CSS3</title>
		<link>http://bavotasan.com/2010/creating-shadows-css3/</link>
		<comments>http://bavotasan.com/2010/creating-shadows-css3/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 19:33:36 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[amount]]></category>
		<category><![CDATA[background color]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Creating]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[horizontal]]></category>
		<category><![CDATA[inset]]></category>
		<category><![CDATA[length]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[opacity]]></category>
		<category><![CDATA[reason]]></category>
		<category><![CDATA[rgba]]></category>
		<category><![CDATA[Space]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1773</guid>
		<description><![CDATA[CSS3 has introduced some cool effects that give you control over elements of design that were once only possible using images. One of the new effects I have been having a lot of fun with lately is the box shadow. Many, if not all, of the new CSS3 effects only work on Safari 4, Firefox [...]]]></description>
			<content:encoded><![CDATA[<p>CSS3 has introduced some cool effects that give you control over elements of design that were once only possible using images. One of the new effects I have been having a lot of fun with lately is the box shadow. Many, if not all, of the new CSS3 effects only work on Safari 4, Firefox 3.5 and Google Chrome. Just one more reason to make sure to use one of those browsers.<br />
<span id="more-1773"></span><br />
It is easy to create a shadow effect with CSS3 by using the <code>box-shadow</code> style. There are six variables which the style accepts.</p>
<p><strong>Inset</strong><br />
Creates a shadow on the inside of the element instead of on the outside.</p>
<p><strong>Horizontal length</strong><br />
The amount of positive or negative space on the X axis between the shadow and the main element.</p>
<p><strong>Vertical length</strong><br />
The amount of positive or negative space on the Y axis between the shadow and the main element.</p>
<p><strong>Blur radius</strong><br />
The amount of blur on the shadow. Minimum of zero.</p>
<p><strong>Spread radius</strong><br />
The amount of spread defines a larger or smaller shadow. </p>
<p><strong>Color</strong><br />
The color of the shadow.</p>
<p><em>Basic example</em>:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;">box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #933;">12px</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #933;">12px</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #933;">12px</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span></pre></div></td></tr></table></div>

<p><em>Demo</em>:</p>
<p class="shadow">This is an example of the new box shadow style in CSS3. </p>
<p>&nbsp;</p>
<p>The color variable accepts a hex code (#000000), name (black) or rgb code(0,0,0). It also accepts <em>rgba</em>, which allows for an alpha channel. Using <em>rgba</em> gives you the ability to add opacity to your shadow to soften it and let the background color through.</p>
<p><em>Example with alpha transparency</em>:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;">box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">-10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">-10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">-10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></pre></div></td></tr></table></div>

<p><em>Demo</em>:</p>
<div class="alphashadow">
<p class="alphashadow">This is an example of the new box shadow style in CSS3 using <em>rgba</em> for the color variable. </p>
</div>
<p>&nbsp;<br />
Creating an inner shadow requires the inset variable.</p>
<p><em>Inset example</em>:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;">box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#111111</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#111111</span><span style="color: #00AA00;">;</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#111111</span><span style="color: #00AA00;">;</span></pre></div></td></tr></table></div>

<p><em>Demo</em>:</p>
<p class="insetshadow">This is an example of the new box shadow style in CSS3 using the <em>inset</em> variable. </p>
<p>&nbsp;<br />
You can easily set whether you want the shadow to larger or smaller that your main element by adding an amount to the spread variable.</p>
<p><em>Spread example</em>:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;">box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">16px</span> <span style="color: #933;">10px</span> <span style="color: #933;">-10px</span> <span style="color: #cc00cc;">#444444</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">16px</span> <span style="color: #933;">10px</span> <span style="color: #933;">-10px</span> <span style="color: #cc00cc;">#444444</span><span style="color: #00AA00;">;</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">16px</span> <span style="color: #933;">10px</span> <span style="color: #933;">-10px</span> <span style="color: #cc00cc;">#444444</span><span style="color: #00AA00;">;</span></pre></div></td></tr></table></div>

<p><em>Demo</em>:</p>
<p class="spreadshadow">This is an example of the new box shadow style in CSS3 using a <em>spread</em> amount. </p>
<p>&nbsp;<br />
There are tons of possibilities and if you really want to go crazy you can define multiple shadows. Just separate them all by commas.</p>
<p><em>Multiple shadows example</em>:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;">box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e15f5f</span><span style="color: #00AA00;">,</span> <span style="color: #933;">10px</span> <span style="color: #933;">12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#5fb3e1</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#5fe168</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">-12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e1dc5f</span><span style="color: #00AA00;">,</span> <span style="color: #933;">10px</span> <span style="color: #933;">-12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e15fcd</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e15f5f</span><span style="color: #00AA00;">,</span> <span style="color: #933;">10px</span> <span style="color: #933;">12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#5fb3e1</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#5fe168</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">-12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e1dc5f</span><span style="color: #00AA00;">,</span> <span style="color: #933;">10px</span> <span style="color: #933;">-12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e15fcd</span><span style="color: #00AA00;">;</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e15f5f</span><span style="color: #00AA00;">,</span> <span style="color: #933;">10px</span> <span style="color: #933;">12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#5fb3e1</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#5fe168</span><span style="color: #00AA00;">,</span> <span style="color: #933;">-10px</span> <span style="color: #933;">-12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e1dc5f</span><span style="color: #00AA00;">,</span> <span style="color: #933;">10px</span> <span style="color: #933;">-12px</span> <span style="color: #933;">20px</span> <span style="color: #cc00cc;">#e15fcd</span><span style="color: #00AA00;">;</span></pre></div></td></tr></table></div>

<p><em>Demo</em>:</p>
<p class="multishadow">This is an example of the new box shadow style in CSS3 with multiple shadows defined. </p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/creating-shadows-css3/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Turn Plain Text URLs into Active Links using PHP</title>
		<link>http://bavotasan.com/2009/turn-plain-text-urls-into-active-links-using-php/</link>
		<comments>http://bavotasan.com/2009/turn-plain-text-urls-into-active-links-using-php/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 16:02:22 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[Anchor Tag]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[everything]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[piece]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[Space]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[way]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=983</guid>
		<description><![CDATA[I was putting together a bit of code to pull in a Twitter feed, similar to what you see in the footer of bavotasan.com. I got everything working properly but the only problem was all of the URLs were just plain text instead of active links. I figured out a way to automatically turn the [...]]]></description>
			<content:encoded><![CDATA[<p>I was putting together a bit of code to pull in a Twitter feed, similar to what you see in the footer of bavotasan.com. I got everything working properly but the only problem was all of the URLs were just plain text instead of active links. I figured out a way to automatically turn the URLs into active links using a small piece of PHP.<br />
<span id="more-983"></span></p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ereg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;[[:alpha:]]+://[^&lt;&gt;[:space:]]+[[:alnum:]/]&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\\</span>0<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;<span style="color: #000099; font-weight: bold;">\\</span>0&lt;/a&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div>

<p>The code finds all instances of <code>http://</code> and converts the string into an active link by surrounding it with an anchor tag.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/turn-plain-text-urls-into-active-links-using-php/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

