<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Castelar Design &amp; Code</title>
	
	<link>http://www.castelar.net</link>
	<description>Castelar.net</description>
	<lastBuildDate>Tue, 09 Apr 2013 17:51:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/castelar" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="castelar" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Akin</title>
		<link>http://www.castelar.net/akin/</link>
		<comments>http://www.castelar.net/akin/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 21:18:01 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.castelar.net/?p=94</guid>
		<description />
				<content:encoded><![CDATA[<p><a href="/images/portfolio/akin-large.png" rel="lightbox"><img src="/images/portfolio/akin-small.png" alt="Akin.co screenshot" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/akin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple CSS3 Button Transitions</title>
		<link>http://www.castelar.net/css3-button-transitions/</link>
		<comments>http://www.castelar.net/css3-button-transitions/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 01:09:02 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[css3 buttons]]></category>
		<category><![CDATA[css3 transitions]]></category>

		<guid isPermaLink="false">http://www.castelar.net/?p=63</guid>
		<description><![CDATA[Here are several examples of a CSS3 transitions you can add to your website buttons and links. These will render slightly different in the major browsers, so it&#8217;s recommended to use Safari, Chrome, Firefox or Opera. Unfortunately Internet Explorer doesn&#8217;t play nicely with transitions yet. Demo Gray Button Green Button Black Button Blue Button These [...]]]></description>
				<content:encoded><![CDATA[<p>Here are several examples of a CSS3 transitions you can add to your website buttons and links. These will render slightly different in the major browsers, so it&#8217;s recommended to use Safari, Chrome, Firefox or Opera. Unfortunately Internet Explorer doesn&#8217;t play nicely with transitions yet.</p>
<p><strong>Demo</strong></p>
<p><a class="CSS3-TRANS-graybutton" href="#graybutton">Gray Button</a> <a class="CSS3-TRANS-greenbutton" href="#greenbutton">Green Button</a> <a class="CSS3-TRANS-blackbutton" href="#blackbutton">Black Button</a> <a class="CSS3-TRANS-bluebutton" href="#bluebutton">Blue Button</a></p>
<p>These examples will fade several link elements in and out. You can use transitions on links, unordered lists, navigation menus, divs, or get creative and think of other ways this can be applied. In these examples, I&#8217;ll simply apply the transitions to links.<br />
<a name="graybutton"></a></p>
<h4>Example 1 &#8211; Gray Button</h4>
<p><a class="CSS3-TRANS-graybutton" href="#">Gray Button!</a></p>
<p>This css will fade in and out the text <code>color</code>, <code>background-color</code>, and <code>border-color</code>. This is what it will look like:</p>
<p><strong>Markup</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;graybutton&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Gray Button!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.graybutton</span><span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.graybutton</span><span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
&nbsp;
	-webkit-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">border-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">border-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">border-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">border-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.graybutton</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#aaa</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e3e3e3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
&nbsp;
	-webkit-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">border-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">border-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">border-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">border-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The css should be added to both <code>a:link</code>, <code>a:visited</code> and <code>a:hover</code> in order to get the fading effect when the user hovers over the link, and on hover release.</p>
<p>The transition css is written as shorthand above. The values are separated by commas and include <code>property</code> (e.g color), <code>duration</code> (e.g .25s), and <code>timing</code> (e.g linear). There is also a <code>delay</code> property (e.g 1s) that we won&#8217;t use here. It delays the transition for the specified time. The delay property would come 4th when using shorthand. You can write each property separately e.g <code>transition-property: color .25s linear;</code> on its own line, or use the shorthand, which is cleaner, and necessary when transitioning multiple properties, like the above gray button example.</p>
<p>The timing property can be specified as <code>linear</code>, <code>ease</code>, <code>ease-in</code>, <code>ease-out</code>, <code>ease-in-out</code>, or <a href="http://www.w3.org/TR/css3-transitions/#transition-timing-function"><code>cubic-bezier</code></a> (to specifiy your own timing curve). The example above uses linear for the text color transition, and ease-in-out for the background and border colors.</p>
<p><strong>Browser Support</strong></p>
<p>You&#8217;ll need to prefix the CSS so that all the major browsers that support the transition will render it. As you see in the example code above, you can use the -webkit, -moz, and -o prefixes for Safari/Chrome, Firefox, and Opera respectively. Another prefix used in some cases is -ms for Internet Explorer, but at this point in time transitions are not supported by IE9. You may still want to include the -ms prefix, so that when <code>-ms-transition</code> is in Microsoft&#8217;s working drafts, you won&#8217;t have to go back and edit your code.<br />
<a name="greenbutton"></a></p>
<h4>Example 2 &#8211; Big Green Button</h4>
<p>You could also add a <code>border-radius</code> for a different looking big green button. This example doesn&#8217;t include the 1px solid border and fades the green to a completely different brick color.</p>
<p><a class="CSS3-TRANS-greenbutton" href="#">Big Green Button!</a></p>
<p><strong>Markup</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;greenbutton&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Big Green Button!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.greenbutton</span><span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.greenbutton</span><span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-radius</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#444</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span> <span style="color: #933;">32px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#8FCF45</span><span style="color: #00AA00;">;</span>
&nbsp;
	-webkit-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .5s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .5s ease-in-out<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .5s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .5s ease-in-out<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .5s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .5s ease-in-out<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .5s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background-color</span> .5s ease-in-out<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.greenbutton</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#D05944</span><span style="color: #00AA00;">;</span>
&nbsp;
	-webkit-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">background-color</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><a name="blackbutton"></a></p>
<h4>Example 3 &#8211; Black Button with Gradient</h4>
<p>Currently, background color gradients are not capable of having transitions without hacks. One way around this is to transition an opacity so everything is faded in and out. This way you can keep your background gradients and the transition looks pretty good.</p>
<p><a class="CSS3-TRANS-blackbutton" href="#">Black Button w/ Gradient!</a></p>
<p><strong>Markup</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;blackbutton&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Black Button w/ Gradient!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.blackbutton</span><span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.blackbutton</span><span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-radius</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</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;">#666</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#000</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;">#666</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#000</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> -o-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;">#666</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#000</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> 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;">#666</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
	-webkit-transition<span style="color: #00AA00;">:</span> opacity 1s ease<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> opacity 1s ease<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> opacity 1s ease<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> opacity 1s ease<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.blackbutton</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	opacity<span style="color: #00AA00;">:</span> .7<span style="color: #00AA00;">;</span>
	-webkit-transition<span style="color: #00AA00;">:</span> opacity .5s ease<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> opacity .5s ease<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> opacity .5s ease<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> opacity .5s ease<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><a name="bluebutton"></a></p>
<h4>Example 4 &#8211; Fancy Blue Button</h4>
<p>You can also add a <code>text-shadow</code> and <code>box-shadow</code> with a 50/50 gradient <code>background</code> for a fancy blue button.</p>
<p><a class="CSS3-TRANS-bluebutton" href="#">Fancy Blue Button!</a></p>
<p><strong>Markup</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;bluebutton&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Fancy Blue Button!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.bluebutton</span><span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.bluebutton</span><span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#000F4D</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</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;">#8C9CBF</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-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;">#8c9cbf</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#546a9e</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#36518f</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#3d5691</span> <span style="color: #933;">100%</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;">#8c9cbf</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#546a9e</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#36518f</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#3d5691</span> <span style="color: #933;">100%</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> -o-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;">#8c9cbf</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#546a9e</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#36518f</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#3d5691</span> <span style="color: #933;">100%</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> 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;">#8c9cbf</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#546a9e</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#36518f</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#3d5691</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#172D6E</span> <span style="color: #cc00cc;">#172D6E</span> <span style="color: #cc00cc;">#0E1D45</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#B1B9CB</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#172D6E</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-radius</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
&nbsp;
	-webkit-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .5s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> .5s ease-in-out<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .5s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> .5s ease-in-out<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .5s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> .5s ease-in-out<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .5s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> .5s ease-in-out<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.bluebutton</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#7F8DAD</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-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;">#7f8dad</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#4a5e8c</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#2f477d</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#364c80</span> <span style="color: #933;">100%</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;">#7f8dad</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#4a5e8c</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#2f477d</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#364c80</span> <span style="color: #933;">100%</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> -o-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;">#7f8dad</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#4a5e8c</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#2f477d</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#364c80</span> <span style="color: #933;">100%</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> 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;">#7f8dad</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#4a5e8c</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#2f477d</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#364c80</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
	-webkit-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">color</span> .25s linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> .25s ease-in-out<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Run along now and change the colors, sizes and durations to get the desired look and feel for your website. There are endless possibilities to explore using CSS3 transitions for buttons!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/css3-button-transitions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7 Released</title>
		<link>http://www.castelar.net/drupal-7-released/</link>
		<comments>http://www.castelar.net/drupal-7-released/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 22:28:17 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.castelar.net/?p=47</guid>
		<description><![CDATA[Worth posting (and creating a new category for on this site) and worth taking for a spin if you haven&#8217;t already: It&#8217;s Here. Drupal 7.0]]></description>
				<content:encoded><![CDATA[<p>Worth posting (and creating a new category for on this site) and worth taking for a spin if you haven&#8217;t already:</p>
<p><a href="http://drupal.org/drupal-7.0">It&#8217;s Here. Drupal 7.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/drupal-7-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Social Networking with Buddypress for WordPress</title>
		<link>http://www.castelar.net/social-networking-with-buddypress-for-wordpress/</link>
		<comments>http://www.castelar.net/social-networking-with-buddypress-for-wordpress/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 22:20:14 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.castelar.net/?p=27</guid>
		<description><![CDATA[It&#8217;s been a long time since posting, but since using Buddypress for WordPress, I feel it&#8217;s necessary say something about this up and coming social networking solution. Ever been frustrated with sites like Facebook, Myspace and other social networks, but feel that your company or organization could really benefit from being a part of a [...]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been a long time since posting, but since using <a href="http://buddypress.org" target="_blank">Buddypress</a> for WordPress, I feel it&#8217;s necessary say something about this up and coming social networking solution.</p>
<p>Ever been frustrated with sites like Facebook, Myspace and other social networks, but feel that your company or organization could really benefit from being a part of a social network? Does not having control over the ads, branding and other aspects make them not an option, or a bad option?</p>
<p>There is a solution I will already recommend, even before its official launch from beta. I&#8217;ve been playing around with a couple installs of Buddypress, along with a couple custom plugins, allowing you to take complete control of your own social network, and offer a place that people can interact with your business offerings. There are other &#8220;free&#8221; solutions out there already for creating your own social network, but they tend to offer you a freebie version, with limitations, and lock you into buying add-ons. Many have limitations with resources, because the site is actually hosted on their server, instead of on your own. Not to mention, most are not open source, or have anywhere near the following that the WordPress community has.  Buddypress is run entirely on your own server, without any paid add-on limitations, and will change the way people and organizations interact with one another.</p>
<p>Buddypress is completely open-source, and one of the great reasons why WordPress is so great. Projects like Buddypress can arise from nowhere, because of the great extensibility of the WordPress blogging platform.</p>
<p>Buddypress is different than the other software already available, and I feel will be a major player in the social networking realm, as did WordPress for blogging. Buddypress is currently limited to running on <a href="http://mu.wordpress.org">WordPress MU</a>, but will soon be released as a set of plugins for the WordPress standalone version. I feel this is an exciting thing, and can only help move WordPress forward as well. Obviously <a href="http://automattic.com/">Automattic</a> felt the same way, by taking in Buddypress and Andy Peatling, the lead developer, under its wings.</p>
<p>The versatility and extensibility that WordPress offers, along with a substantial community of great developers helping out, makes Buddypress an option for many organizations, including non-profits, in the need to expand their reach to a larger community-based audience.</p>
<p>I&#8217;m sure you will hear much more on this from me in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/social-networking-with-buddypress-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>7 SEO Factors in Order of Importance</title>
		<link>http://www.castelar.net/7-seo-factors-in-order-of-importance/</link>
		<comments>http://www.castelar.net/7-seo-factors-in-order-of-importance/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 20:28:59 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[7 SEO tips]]></category>
		<category><![CDATA[most important SEO factors]]></category>
		<category><![CDATA[most important SEO tips]]></category>
		<category><![CDATA[SEO factors]]></category>
		<category><![CDATA[SEO for newbies]]></category>
		<category><![CDATA[seo tips]]></category>
		<category><![CDATA[top SEO factors]]></category>
		<category><![CDATA[top SEO tips]]></category>

		<guid isPermaLink="false">http://www.castelar.net/seo/7-seo-factors-in-order-of-importance/</guid>
		<description><![CDATA[I have been asked several times by new site owners about optimizing their pages for search engines. Most of the time they are confused and hoping for a little help with clarifying the best practices. I&#8217;ve put together some helpful tips, specifically for newbies, to help clarify all the info you may have received and [...]]]></description>
				<content:encoded><![CDATA[<p>I have been asked several times by new site owners about optimizing their pages for search engines. Most of the time they are confused and hoping for a little help with clarifying the best practices. I&#8217;ve put together some helpful tips, specifically for newbies, to help clarify all the info you may have received and try to put it in order of importance.</p>
<p><span id="more-23"></span></p>
<p>One question is always about meta tags. There is still a lot of confusion about them and how they will benefit your website. My answer is usually, &#8220;forget about them.&#8221; On my list, they are one of the last worries you should be having as a newbie trying to get SE traffic. In most cases, you don&#8217;t need them, so don&#8217;t waste much time on them. It&#8217;s as simple as that.</p>
<p>If you are trying to get more search engine traffic, from my experience, the major factors of SEO in order of importance are:</p>
<ol>
<li><strong>Content</strong> including all text, images and video, is most important. Write/produce great content, worthy of being shared and linked to. Formatting the content is important including usage of headings (h1 h2 etc. tags), bold text, italics, links etc. Make sure all links are working and relevant. Use descriptive titles and headings. High quality semantic code that ALL search engines can understand is important. Make sure it is excellent content, and you will get results.</li>
<li><strong>Incoming Links</strong> from other quality &amp; related websites/pages (good descriptive link text/phrases) to multiple pages, not just your home page. It is very important your incoming links are to multiple pages, not just your home page. Make sure they are unpaid, don&#8217;t mess around with link buying and other scams that will just end up getting your site penalized by the search engines.</li>
<li><strong>Title tags</strong> (what you see at top of browser when viewing a page, within &lt;title&gt; tags. Use descriptive and appealing titles to insure you get the most people interested in visiting.</li>
<li><strong>Links</strong> with good phrases to other <strong>internal</strong> pages within your site, and links to other <strong>external</strong> quality &amp; related websites / pages also. This is number four on the list, but could easily move up to third depending on the type of website. Once again, this deals with your on page content and site architecture. Make browsing your site easy, and link to other reputable websites users will find useful, and you will create a better user experience. You will gain trust with your readers and the search engines will award you as well.</li>
<li><strong>Social Media</strong> helps. Use it. It sends good signals to search engines that your content doesn&#8217;t just live in a box. Get an active following and spread the word about your awesome content.</li>
<li><strong>Meta Description</strong> tags that are relatively short and precise, must match on page content. Not all search engines even look at this, so don&#8217;t spend too much time worrying about the perfect descriptions.</li>
<li><strong>ALT Attributes</strong> for image tags. You&#8217;d be surprised at how much traffic you can get by simply adding short, descriptive, 3-5 word ALT phrases for all your images.</li>
</ol>
<p>There are many things NOT to do also, mainly dealing with trying to trick search engines (including adding false, and too many meta keywords). It is better to not add any meta keywords at all. If for some reason you must add them, make sure the on page content matches the keywords, and do not use duplicate keywords on different pages, or your page could be penalized.</p>
<p>If you have limited time for your project, I would recommend working on new content first of all, optimized with the seven most important factors above. Secondly, find lots of incoming text links from quality/related sites. You will not only get new referral traffic, but you will boost your chances of getting a lot of new traffic from search engines.</p>
<p>Do all of these things I&#8217;ve listed and I bet you&#8217;ll be surprised at the quality new traffic you&#8217;ll get. Of course, some of the best traffic is by word of mouth and recommendations from actual people. But, that&#8217;s a whole other subject.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/7-seo-factors-in-order-of-importance/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Napa Wine Clubs</title>
		<link>http://www.castelar.net/napa-wine-clubs/</link>
		<comments>http://www.castelar.net/napa-wine-clubs/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 22:53:16 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[napa wine clubs]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.castelar.net/portfolio/napa-wine-clubs/</guid>
		<description />
				<content:encoded><![CDATA[<p><a href="/images/portfolio/napa-wine-clubs-large.gif" rel="lightbox"><img src="/images/portfolio/napa-wine-clubs-small.gif" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/napa-wine-clubs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Event Reservation System</title>
		<link>http://www.castelar.net/event-reservation-system/</link>
		<comments>http://www.castelar.net/event-reservation-system/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 00:55:17 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[attend events]]></category>
		<category><![CDATA[event calendar]]></category>
		<category><![CDATA[Jevents]]></category>
		<category><![CDATA[reservation system]]></category>

		<guid isPermaLink="false">http://www.castelar.net/joomla/event-reservation-system/</guid>
		<description><![CDATA[Joomla is an open-source Content Management System that has a wide range of uses. It has a huge community of developers that build components that extend its use, and the best part about them is that most are free. I frequently use Joomla to build websites including SouthwestConstructionConsultants.com, NapaValleySearch.com and SunRags.com. On the Southwest Construction [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.joomla.org" target="_blank">Joomla</a> is an open-source Content Management System that has a wide range of uses. It has a huge community of developers that build components that extend its use, and the best part about them is that most are free. I frequently use Joomla to build websites including <a href="http://www.southwestconstructionconsultants.com" target="_blank">SouthwestConstructionConsultants.com</a>, <a href="http://www.napavalleysearch.com" target="_blank">NapaValleySearch.com</a> and <a href="http://www.sunrags.com">SunRags.com</a>.</p>
<p><span id="more-19"></span></p>
<p>On the Southwest Construction Consultant site, a major portion of the functionality is the reservation system. The site needed to be able to have users reserve time slots for home inspections.  I was able to find a component called <a href="http://joomlacode.org/gf/project/attend_events" target="_blank">Attend Events</a> that handled this &#8220;out of the box&#8221;,  open-source so I could customize any details necessary, and available for free. There is also a component for Joomla called <a href="http://joomlacode.org/gf/project/jevents/" target="_blank">JEvents</a> that can be used with Attend Events that will show a calendar of all events. In the case of the Southwest Construction website, this was unnecessary, but can be useful for other sites with event organization needs.</p>
<p>Please do not use the Southwest Construction Consultant site for any test purposes, as it is a live site. There are demo pages and support available to you in the <a href="http://joomlacode.org/gf/project/attend_events/forum/" target="_blank">Attend Events forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/event-reservation-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bravadora</title>
		<link>http://www.castelar.net/bravadora/</link>
		<comments>http://www.castelar.net/bravadora/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 22:09:43 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[bravadora]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[re-design]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.castelar.net/portfolio/bravadora/</guid>
		<description />
				<content:encoded><![CDATA[<p><a href="http://www.castelar.net/images/portfolio/bravadora-large.gif" rel="lightbox"><img src="http://www.castelar.net/images/portfolio/bravadora-small.gif" alt="Bravadora" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/bravadora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use WordPress optional excerpt or Custom Field for post thumbnail Icons</title>
		<link>http://www.castelar.net/use-wordpress-optional-excerpt-or-custom-field-for-post-thumbnail-icons/</link>
		<comments>http://www.castelar.net/use-wordpress-optional-excerpt-or-custom-field-for-post-thumbnail-icons/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 02:35:53 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[optional excerpts]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.castelar.net/articles/use-wordpress-optional-excerpt-or-custom-field-for-post-thumbnail-icons/</guid>
		<description><![CDATA[There are a few different ways to add images next to your WordPress posts; I will discuss two of these ways (using the &#8220;optional excerpt&#8221; field or using a &#8220;custom field&#8221;) including the benefits and code for each. The first method is to use the &#8220;Optional Excerpt&#8221; field when posting and a plugin called DBPostsForCategory. [...]]]></description>
				<content:encoded><![CDATA[<p>There are a few different ways to add images next to your WordPress posts; I will discuss two of these ways (using the &#8220;optional excerpt&#8221; field or using a &#8220;custom field&#8221;)  including the benefits and code for each.<span id="more-17"></span></p>
<p>The first method is to use the &#8220;Optional Excerpt&#8221; field when posting and a plugin called DBPostsForCategory. It&#8217;s hard to find because the developer&#8217;s site (Dhruba.net) has been down for awhile, but you can download it here: <a href="http://www.castelar.net/wp-content/uploads/2007/10/dbpostsforcategory.txt" title="DBPostsForCategory">DBPostsForCategory.txt</a>. Change .txt to .php.</p>
<p>You can add html to the &#8220;Optional Excerpt&#8221; field for each post pointing to any image, thumbnail or icon. In this case we&#8217;ll point it to a 24&#215;24 icon &#8220;myposticon.gif&#8221;<br />
The code you&#8217;d enter in the optional excerpt would be:</p>
<p class="postcode">&lt;img src&#8221;http://yourdomain.com/pathtoimage/myposticon.gif&#8221; /&gt;</p>
<p>or you could add a link to your excerpt so the icon links to the post also. You&#8217;d use this:</p>
<p class="postcode">&lt;a href=&#8221;http://yourdomain.com/yourpost/&#8221;&gt;&lt;img src&#8221;http://yourdomain.com/pathtoimage/myposticon.gif&#8221; /&gt;&lt;/a&gt;</p>
<p>Next thing to accomplish would be a list of new posts with the images (excerpts) next to them. Upload and activate the DBPostsForCategory plugin and use this code in your template:</p>
<p class="postcode">&lt;?php DBPostsForCategory :: printAsExcerptItems(1, 5, true) ?&gt;</p>
<p>You can adjust the category using the first number in the array, how many posts shown, and change to false for descending order. So if you wanted to list the latest 10 excerpts from category ID 7 in ascending order you would use:</p>
<p class="postcode">&lt;?php DBPostsForCategory :: printAsExcerptItems(7, 10, false) ?&gt;</p>
<p>Now, another way to achieve virtually the same thing, but using custom fields you would first need to add a custom field key and a url value pointing to the image.  For example:</p>
<p><strong>Key</strong>: icon <strong>Value</strong>: http://www.yourdomain.com/myposticon.gif</p>
<p>Now we have to edit your template with some php to show this custom field.  We are going to want to show the post icon linked to the post. So here is the code to achieve this:</p>
<p class="postcode">&lt;?php $iconfield = get_posts(&#8216;numberposts=10&amp;category=7&#8242;); foreach($iconfield as $post) : setup_postdata($post); ?&gt;<br />
&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php echo get_post_meta($post-&gt;ID, &#8220;icon&#8221;, true); ?&gt;&#8221; alt=&#8221;&lt;?php the_title(); ?&gt; icon&#8221; /&gt;&lt;/a&gt;<br />
&lt;?php endforeach; ?&gt;</p>
<p>You could of course show the icons to the left of the post title. You would use this code instead:</p>
<p class="postcode">&lt;?php $iconfield = get_posts(&#8216;numberposts=10&amp;category=7&#8242;); foreach($iconfield as $post) : setup_postdata($post); ?&gt;<br />
&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php echo get_post_meta($post-&gt;ID, &#8220;icon&#8221;, true); ?&gt;&#8221; alt=&#8221;&lt;?php the_title(); ?&gt; icon&#8221; /&gt;&lt;/a&gt; &lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;<br />
&lt;?php endforeach; ?&gt;</p>
<p>You could of course add any number of custom fields using this method and it can be used in countless ways. All you would need to do to add another custom field is change the ($post-&gt;ID, &#8220;icon&#8221;, true) to read ($post-&gt;ID, &#8220;CustomFieldKey&#8221;, true).</p>
<p>I use custom field in the header to show a list of my latest portfolio items with a custom thumbnail, post title and a snippet of what I contributed to the project. A small bit of CSS styling with either method and you are on your way to making your site a more dynamic and more importantly contributing to the overall look and feel.  Let me know if you know another way to achieve this, or if this was useful to you and your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/use-wordpress-optional-excerpt-or-custom-field-for-post-thumbnail-icons/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Southwest Construction Consultants</title>
		<link>http://www.castelar.net/southwest-construction-consultants/</link>
		<comments>http://www.castelar.net/southwest-construction-consultants/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 22:22:53 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.castelar.net/portfolio/southwest-construction-consultants/</guid>
		<description />
				<content:encoded><![CDATA[<p><a href="http://www.castelar.net/images/portfolio/scc-large.jpg" rel="lightbox"><img src="http://www.castelar.net/images/portfolio/scc-small.jpg" alt="Southwest Construction Consultants" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castelar.net/southwest-construction-consultants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
