<?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>Andy Weigel &#187; CSS Tricks</title>
	<atom:link href="http://andyweigel.com/blog/category/css-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://andyweigel.com/blog</link>
	<description>Web Development Tutorials</description>
	<lastBuildDate>Wed, 27 Oct 2010 00:21:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Transparent PNG for Dynamic Background Gradients</title>
		<link>http://andyweigel.com/blog/css-tricks/transparent-png-for-dynamic-background-gradients/138</link>
		<comments>http://andyweigel.com/blog/css-tricks/transparent-png-for-dynamic-background-gradients/138#comments</comments>
		<pubDate>Thu, 01 Apr 2010 01:00:40 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://andyweigel.com/blog/?p=138</guid>
		<description><![CDATA[Here&#8217;s a quick little trick I&#8217;ve used for a variety of applications. It involves using a transparent png or gif with a gradient to allow you to create dynamic background gradients. The first step is to create a gradient &#8211; I use Fireworks. Adjust the opacity to zero for the top side and 80% for [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick little trick I&#8217;ve used for a variety of applications. It involves using a transparent png or gif with a gradient to allow you to create dynamic background gradients.<span id="more-138"></span></p>
<p style="text-align: left;">The first step is to create a gradient &#8211; I use Fireworks. Adjust the opacity to zero for the top side and 80% for the bottom.</p>
<p>Here&#8217;s an example of the CSS</p>
<pre class="css">
.this_div {
<span class="cssProperty">height</span><span class="cssRest">:</span><span class="cssValue">50px</span><span class="cssRest">;</span>
<span class="cssProperty">width</span><span class="cssRest">:</span><span class="cssValue">100%</span><span class="cssRest">;</span>
<span class="cssProperty">background</span><span class="cssRest">:</span><span class="cssValue">url(trans.png) #990 bottom</span><span class="cssRest">;</span>
<span class="cssMedia">}</span>
</pre>
<p>Here&#8217;s an example of the HTML</p>
<pre class="css">
&lt;div class=<span class="cssString">"this_div"</span>&gt;&lt;/div&gt;
</pre>
<p>Here&#8217;s the final result.</p>
<p><img class="alignleft size-full wp-image-147" title="full-demo" src="http://andyweigel.com/blog/wp-content/uploads/full-demo.jpg" alt="" width="339" height="50" /></p>
]]></content:encoded>
			<wfw:commentRss>http://andyweigel.com/blog/css-tricks/transparent-png-for-dynamic-background-gradients/138/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropshadow on Text Using Absolute Positioning</title>
		<link>http://andyweigel.com/blog/css-tricks/dropshadow-on-text-using-absolute-positioning/36</link>
		<comments>http://andyweigel.com/blog/css-tricks/dropshadow-on-text-using-absolute-positioning/36#comments</comments>
		<pubDate>Wed, 08 Jul 2009 18:55:38 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://andyweigel.com/blog/?p=36</guid>
		<description><![CDATA[Here&#8217;s a quick bit of CSS and HTML to achieve a simple dropshadow on text that uses abosolute positioning. This would work great for titles in WordPress. You can adjust the top and left positioning of the .bottom class depending on the offset of dropshadow you want. Here&#8217;s My Test Here&#8217;s My Test Here&#8217;s the [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick bit of CSS and HTML to achieve a simple dropshadow on text that uses abosolute positioning. This would work great for titles in WordPress. You can adjust the top and left positioning of the .bottom class depending on the offset of dropshadow you want.</p>
<p><span id="more-36"></span></p>
<div class="box">
<div class="top">
<h1>Here&#8217;s My Test</h1>
</div>
<div class="bottom">
<h1>Here&#8217;s My Test</h1>
</div>
</div>
<p><strong>Here&#8217;s the CSS for the output above:</strong> </p>
<pre class="css"> &lt;style type=<span class="cssString">"text/css"</span>&gt;
<span class="cssSelector">.box {</span>
<span class="cssProperty">position</span><span class="cssRest">:</span><span class="cssValue">relative</span><span class="cssRest">;</span>
<span class="cssProperty">background-color</span><span class="cssRest">:</span><span class="cssValue">#666</span><span class="cssRest">;</span>
<span class="cssProperty">height</span><span class="cssRest">:</span><span class="cssValue">75px</span><span class="cssRest">;</span>
<span class="cssProperty">width</span><span class="cssRest">:</span><span class="cssValue">400px</span><span class="cssRest">;</span>
<span class="cssProperty">overflow</span><span class="cssRest">:</span><span class="cssValue">hidden</span><span class="cssRest">;</span>
<span class="cssProperty">padding</span><span class="cssRest">:</span><span class="cssValue">10px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
<span class="cssSelector">.box h1 {</span>
<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue">36px</span><span class="cssRest">;</span>
<span class="cssProperty">text-transform</span><span class="cssRest">:</span><span class="cssValue">uppercase</span><span class="cssRest">;</span>
<span class="cssProperty">font-family</span><span class="cssRest">:</span><span class="cssValue">Verdana, Geneva, sans-serif</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
<span class="cssSelector">.top {</span>
<span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue">#FFF</span><span class="cssRest">;</span>
<span class="cssProperty">position</span><span class="cssRest">:</span><span class="cssValue">absolute</span><span class="cssRest">;</span>
z-index:1;
<span class="cssSelector">}</span>
<span class="cssSelector">.bottom {</span>
<span class="cssProperty">position</span><span class="cssRest">:</span><span class="cssValue">absolute</span><span class="cssRest">;</span>
<span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue">#333</span><span class="cssRest">;</span>
<span class="cssProperty">top</span><span class="cssRest">:</span><span class="cssValue">11px</span><span class="cssRest">;</span>
<span class="cssProperty">left</span><span class="cssRest">:</span><span class="cssValue">11px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
&lt;/style&gt;
</pre>
<p> Here&#8217;s the HTML for the output above: </p>
<pre class="html"> <span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;box&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;top&quot;</span>&gt;</span><span class="htmlOtherTag">&lt;h1&gt;</span>Here&#039;s My Test<span class="htmlOtherTag">&lt;/h1&gt;</span><span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;bottom&quot;</span>&gt;</span><span class="htmlOtherTag">&lt;h1&gt;</span>Here&#039;s My Test<span class="htmlOtherTag">&lt;/h1&gt;</span><span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>Hopefully you&#8217;ve found this quick tutorial valuable. <a href="contact.php">Contact me</a> if you have any questions or would do it a different way. There&#8217;s 1,001 ways to do everything &#8211; that&#8217;s why I love coding.</p>
<hr/>
]]></content:encoded>
			<wfw:commentRss>http://andyweigel.com/blog/css-tricks/dropshadow-on-text-using-absolute-positioning/36/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

