<?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; power</title>
	<atom:link href="http://bavotasan.com/tag/power/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>How to Draw a Smiley Face with CSS3</title>
		<link>http://bavotasan.com/2010/draw-smiley-face-css3/</link>
		<comments>http://bavotasan.com/2010/draw-smiley-face-css3/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 22:52:43 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[course]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[height]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[inset]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[radius]]></category>
		<category><![CDATA[rgba]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[something]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2643</guid>
		<description><![CDATA[I was messing around with CSS3 gradients, rounded corners and shadows, and I thought to myself, &#8220;I wonder if I can draw something that actually looks like something?&#8221; Lo and behold, I could. I decided to go with a smiley face, since it would need circles, ovals and some random shapes. It would also require [...]]]></description>
			<content:encoded><![CDATA[<p>I was messing around with CSS3 gradients, rounded corners and shadows, and I thought to myself, &#8220;I wonder if I can draw something that actually looks like something?&#8221; Lo and behold, I could. I decided to go with a smiley face, since it would need circles, ovals and some random shapes. It would also require gradients and shadows. After a few failed attempts, I somehow managed to figure it out and the outcome is pretty cool.</p>
<div class="smileyface">
<p class="eyes lefteye">
<p class="eyes righteye">
<div class="smile">
<div class="corner"></div>
<div class="corner right"></div>
</p></div>
</div>
<p>It really amazes me that CSS3 has the power to create something like this. I tested it out in Firefox, Safari and Chrome. They all look good. Of course, in IE it looks like this&#8230;</p>
<p><a href="http://bavotasan.com/wp-content/uploads/2010/08/smileyie.jpg"><img src="http://bavotasan.com/wp-content/uploads/2010/08/smileyie.jpg" alt="" title="smileyie" width="300" height="300" class="nobox aligncenter size-full wp-image-2654" /></a></p>
<p>It&#8217;s like IE is living in 1986.</p>
<p>Here is the HTML:</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: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;smileyface&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;eyes lefteye&quot;</span><span style="color: #339933;">&gt;&lt;/</span>p<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;eyes righteye&quot;</span><span style="color: #339933;">&gt;&lt;/</span>p<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;smile&quot;</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;corner&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;corner right&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div>

<p>Here is the CSS:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.smileyface</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffe632</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#fffe8d</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#f6d23e</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#fffe8d</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#f6d23e</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>	
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">-14px</span> <span style="color: #933;">14px</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> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0px</span> <span style="color: #933;">2px</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> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">-14px</span> <span style="color: #933;">14px</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> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0px</span> <span style="color: #933;">2px</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> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">-14px</span> <span style="color: #933;">14px</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> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0px</span> <span style="color: #933;">2px</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> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
p<span style="color: #6666ff;">.eyes</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">80px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span>/<span style="color: #933;">160px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span> <span style="color: #933;">160px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span>/<span style="color: #933;">160px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>	
&nbsp;
	p<span style="color: #6666ff;">.eyes</span><span style="color: #6666ff;">.lefteye</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75px</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
&nbsp;
	p<span style="color: #6666ff;">.eyes</span><span style="color: #6666ff;">.righteye</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75px</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #6666ff;">.smile</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">70px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</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><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">120px</span> <span style="color: #933;">120px</span> / <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">90px</span> <span style="color: #933;">90px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">120px</span> <span style="color: #933;">120px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">90px</span> <span style="color: #933;">90px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">120px</span> <span style="color: #933;">120px</span> / <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">90px</span> <span style="color: #933;">90px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">38px</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #6666ff;">.corner</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span>/<span style="color: #933;">160px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span> <span style="color: #933;">160px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span>/<span style="color: #933;">160px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-12px</span><span style="color: #00AA00;">;</span>
	-webkit-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>65deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>65deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	div<span style="color: #6666ff;">.corner</span>.<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">202px</span><span style="color: #00AA00;">;</span>
		-webkit-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>-65deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		-moz-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>-65deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>		
		<span style="color: #00AA00;">&#125;</span></pre></div></td></tr></table></div>

<p>Inspiration:</p>
<ul>
<li><a href="http://desandro.com/articles/opera-logo-css/">http://desandro.com/articles/opera-logo-css/</a></li>
<li><a href="http://cordobo.com/wp-content/uploads/ie-pure-css-logo/">http://cordobo.com/wp-content/uploads/ie-pure-css-logo/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/draw-smiley-face-css3/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Quick &amp; Easy Excerpt Mods Coming in WordPress 2.9</title>
		<link>http://bavotasan.com/2009/quick-easy-excerpt-mods-coming-in-wordpress-2-9/</link>
		<comments>http://bavotasan.com/2009/quick-easy-excerpt-mods-coming-in-wordpress-2-9/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 15:14:55 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[end]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[length]]></category>
		<category><![CDATA[mods]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[piece]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[return]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[the_excerpt]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1393</guid>
		<description><![CDATA[I just stumbled across these two little pieces of code and thought that they might be useful to some people out there who want to mess around with the default settings for the_excerpt() function in WordPress. The first one gives you the power to change the number of words displayed by the function the_excerpt(), and [...]]]></description>
			<content:encoded><![CDATA[<p>I just stumbled across these two little pieces of code and thought that they might be useful to some people out there who want to mess around with the default settings for <code>the_excerpt()</code> function in WordPress. The first one gives you the power to change the number of words displayed by the function <code>the_excerpt()</code>, and yes, you can have more than 55 words. The second piece of code allows you to change the trailing [...] that appears at the end of your excerpt.<br />
<span id="more-1393"></span><br />
Both features are set to be added to version 2.9 of WordPress, but the first currently works in version 2.8.5. Just add these to your theme&#8217;s functions.php file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> new_excerpt_length<span style="color: #009900;">&#40;</span><span style="color: #000088;">$length</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">20</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'excerpt_length'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'new_excerpt_length'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Change the number &#8220;20&#8243; to whatever number you want.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> new_excerpt_more<span style="color: #009900;">&#40;</span><span style="color: #000088;">$more</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'[.....]'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'excerpt_more'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'new_excerpt_more'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Change &#8220;[.....]&#8221; to whatever you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/quick-easy-excerpt-mods-coming-in-wordpress-2-9/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>13 Inspirational Design Resources for Web Developers</title>
		<link>http://bavotasan.com/2009/13-inspirational-design-resources-for-web-developers/</link>
		<comments>http://bavotasan.com/2009/13-inspirational-design-resources-for-web-developers/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 18:29:28 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[collection]]></category>
		<category><![CDATA[design elements]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[web developers]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1185</guid>
		<description><![CDATA[Whenever I feel stumped in regards to designing something for myself or one of my clients, I visit some of my favorite sites that focus on design. They are a great source of inspiration and keep me on my toes in regards to what my contemporaries are up to. There are a plethora of sites [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever I feel stumped in regards to designing something for myself or one of my clients, I visit some of my favorite sites that focus on design. They are a great source of inspiration and keep me on my toes in regards to what my contemporaries are up to.<br />
<span id="more-1185"></span><br />
There are a plethora of sites available out there but I really only frequent the following 13.</p>
<h3>CSS Remix</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/cssremix.jpg" alt="cssremix" title="cssremix" width="550" height="160" class="alignleft size-full wp-image-1196" /><br />
Premiere source for web-design inspiration and trends.<br />
<a href="http://cssremix.com">http://cssremix.com</a></p>
<h3>Pattern Tap</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/patterntap.jpg" alt="patterntap" title="patterntap" width="550" height="160" class="alignleft size-full wp-image-1190" /><br />
A collection of interface design solutions from all over the web, where users can mark patterns they like, and learn from other&#8217;s design solutions<br />
<a href="http://patterntap.com/">http://patterntap.com</a></p>
<h3>The Design Inspiration</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/designinspiration.jpg" alt="designinspiration" title="designinspiration" width="550" height="160" class="alignleft size-full wp-image-1201" /><br />
To make every designer&#8217;s life easier, we decided to feature the best logos, illustrations, websites, photos and patterns from the most talented designers from all around the world.<br />
<a href="http://thedesigninspiration.com/">http://thedesigninspiration.com/</a></p>
<h3>Feed My App</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/feedmyapp.jpg" alt="feedmyapp" title="feedmyapp" width="550" height="160" class="alignleft size-full wp-image-1203" /><br />
Feedmyapp is a Web 2.0 Directory with the best and latest web 2.0 sites and web 2.0 applications.<br />
<a href="http://www.feedmyapp.com">http://www.feedmyapp.com</a></p>
<h3>Logopond</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/logopond.jpg" alt="logopond" title="logopond" width="550" height="160" class="alignleft size-full wp-image-1204" /><br />
A place to fish for ideas, Brand and Identity showcase.<br />
<a href="http://logopond.com">http://logopond.com</a></p>
<h3>Communications Arts &#8211; Webpicks</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/commarts.jpg" alt="commarts" title="commarts" width="550" height="160" class="alignleft size-full wp-image-1205" /><br />
Webpicks features outstanding examples of Web design selected based on a combination of superior aesthetics, technical expertise, functionality and overall site experience.<br />
<a href="http://www.commarts.com/webpicks">http://www.commarts.com/webpicks</a></p>
<h3>DesignFlavr</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/designflavr.jpg" alt="designflavr" title="designflavr" width="550" height="160" class="alignleft size-full wp-image-1208" /><br />
Design Inspiration: A visual collection of some of the best talent in Design and Illustration served daily.<br />
<a href="http://www.designflavr.com/">http://www.designflavr.com</a></p>
<h3>Creattica</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/creattica.jpg" alt="creattica" title="creattica" width="550" height="160" class="alignleft size-full wp-image-1209" /><br />
A gallery of fine design and inspiration imagery.<br />
<a href="http://creattica.com/">http://creattica.com</a></p>
<h3>Design Meltdown</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/designmeltdown.jpg" alt="designmeltdown" title="designmeltdown" width="550" height="160" class="alignleft size-full wp-image-1212" /><br />
Design elements, trends, and problems in web design.<br />
<a href="http://www.designmeltdown.com/">http://www.designmeltdown.com</a></p>
<h3>Design Snack</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/designsnack.jpg" alt="designsnack" title="designsnack" width="550" height="160" class="alignleft size-full wp-image-1213" /><br />
A user-controlled web design showcase, providing the members with the power to decide which sites are showcased and which sites are not.<br />
<a href="http://www.designsnack.com">http://www.designsnack.com</a></p>
<h3>Divine CSS</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/divinecss.jpg" alt="divinecss" title="divinecss" width="550" height="160" class="alignleft size-full wp-image-1220" /><br />
Showcasing some of the world&#8217;s best designed websites (Flash &amp; CSS).<br />
<a href="http://www.divinecss.com">http://www.divinecss.com</a></p>
<h3>Web Design Awards</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/designawards.jpg" alt="designawards" title="designawards" width="550" height="160" class="alignleft size-full wp-image-1216" /><br />
A Flash and CSS gallery that showcases and awards the very best and most progressive design on the web. A source for inspiration and recognition.<br />
<a href="http://websitedesignawards.com">http://websitedesignawards.com</a></p>
<h3>CSS Mania</h3>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/09/cssmania.jpg" alt="cssmania" title="cssmania" width="550" height="160" class="alignleft size-full wp-image-1219" /><br />
The most updated CSS showcase in all of the world.<br />
<a href="http://cssmania.com">http://cssmania.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/13-inspirational-design-resources-for-web-developers/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

