<?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>Code With Design &#187; css3</title>
	<atom:link href="http://codewithdesign.com/tag/css3/feed/" rel="self" type="application/rss+xml" />
	<link>http://codewithdesign.com</link>
	<description>web application development blog by Caleb Jonasson</description>
	<lastBuildDate>Fri, 11 May 2012 12:28:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Remove images and increase load times with CSS3</title>
		<link>http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/</link>
		<comments>http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/#comments</comments>
		<pubDate>Wed, 05 May 2010 16:30:49 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[drop shadow]]></category>
		<category><![CDATA[opacity]]></category>
		<category><![CDATA[shadow]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=396</guid>
		<description><![CDATA[An article on how to create style techniques that are commonly created using images. This will help you replace images for drop shadows, and the opacity on certain elements using CSS3.
Related posts:<ol>
<li><a href='http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/' rel='bookmark' title='Making it that much better with CSS3'>Making it that much better with CSS3</a></li>
<li><a href='http://codewithdesign.com/2009/12/16/css3-drop-shadow-on-text/' rel='bookmark' title='CSS3 Drop shadow on text'>CSS3 Drop shadow on text</a></li>
<li><a href='http://codewithdesign.com/2012/05/01/decrease-javascript-load-times-and-increase-script-speed/' rel='bookmark' title='Decrease Javascript Load Times and Increase Script Speed'>Decrease Javascript Load Times and Increase Script Speed</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="Remove images and increase load times with CSS3" data-via="" data-url="http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="plus-one-wrap"><g:plusone size="tall" href="http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/"></g:plusone></div><p>Recently when working on a clients site I found that there were a lot of images being used when a quick little CSS fix could have done the trick. The basic outline of the site involved a few transparencies and a lot of drop shadows. The drop shadows were placed on the container/wrap and the text had drop shadows that had been all done in Photoshop. (Some of the drop shadows were not consistent.)</p>
<p>After looking at the site I told the client that within three minutes I could remove all of the images being for text, drop shadows and opacity allowing his site to load faster.</p>
<p>The answer was what I had expected and the following code was quickly being thrown into the site.</p>
<p><strong>The Code</strong></p>
<p>For the drop shadows on divs:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.container<span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">1080px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
     -moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
     -webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">5px</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: #933;">5px</span> <span style="color: #cc00cc;">#666</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: #933;">5px</span> <span style="color: #cc00cc;">#666</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>For the drop shadows on text:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">h3<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Times<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">letter-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>For the opacity:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.sidebar</span> ul<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">180px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<img src="http://codewithdesign.com/?ak_action=api_record_view&id=396&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/' rel='bookmark' title='Making it that much better with CSS3'>Making it that much better with CSS3</a></li>
<li><a href='http://codewithdesign.com/2009/12/16/css3-drop-shadow-on-text/' rel='bookmark' title='CSS3 Drop shadow on text'>CSS3 Drop shadow on text</a></li>
<li><a href='http://codewithdesign.com/2012/05/01/decrease-javascript-load-times-and-increase-script-speed/' rel='bookmark' title='Decrease Javascript Load Times and Increase Script Speed'>Decrease Javascript Load Times and Increase Script Speed</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making it that much better with CSS3</title>
		<link>http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/</link>
		<comments>http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 18:13:15 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[corner]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[round corner]]></category>
		<category><![CDATA[shadow]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=229</guid>
		<description><![CDATA[With the introduction of CSS3 we now have quite a few new CSS techniques at our disposal. To create a drop shadow we only need two lines of code for our technique to work on most of the popular browser. In order to get rounded corners we only need another two lines of code. This post is purely for reference purposes when using CSS3.
Related posts:<ol>
<li><a href='http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/' rel='bookmark' title='Remove images and increase load times with CSS3'>Remove images and increase load times with CSS3</a></li>
<li><a href='http://codewithdesign.com/2009/12/30/creating-a-top-button/' rel='bookmark' title='Creating a top button'>Creating a top button</a></li>
<li><a href='http://codewithdesign.com/2009/12/27/modifying-next-and-previous-posts/' rel='bookmark' title='Modifying next and previous posts'>Modifying next and previous posts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="Making it that much better with CSS3" data-via="" data-url="http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="plus-one-wrap"><g:plusone size="tall" href="http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/"></g:plusone></div><p>With the introduction of CSS3 we now have quite a few new CSS techniques at our disposal. To create a drop shadow we only need two lines of code for our technique to work on most of the popular browser. In order to get rounded corners we only need another two lines of code. This post is purely for reference purposes when using CSS3.</p>
<h2>Rounding 4 corners</h2>
<p>To round four corners you only need the following code. It is quite simple to get these to work and the information in the lines explain themselves when working with div tags.</p>
<blockquote><p>-moz-border-radius:0px;<br />
-webkit-border-radius:0px;</p></blockquote>
<p>An example of this code in action would be as follows:</p>
<blockquote><p>.post {</p>
<p>-moz-border-radius:5px;<br />
-webkit-border-radius:5px;</p>
<p>}</p></blockquote>
<p>The HTML:</p>
<blockquote><p>&lt;div class=&#8221;post&#8221;&gt;&lt;h1&gt;hello&lt;/h1&gt;&lt;/div&gt;</p></blockquote>
<h2>Rounding individual corners</h2>
<p>To round individual corners you will need to use the following pairs of code. Much like rounding all corners this is pretty self explanatory.</p>
<blockquote><p>-moz-border-radius-topleft:0px;<br />
-webkit-border-top-left-radius:0px;</p></blockquote>
<blockquote><p>
-moz-border-radius-topright:0px;<br />
-webkit-border-top-right-radius:0px;</p></blockquote>
<blockquote><p>
-moz-border-radius-bottomleft:0px;<br />
-webkit-border-bottom-left-radius:0px;</p></blockquote>
<blockquote><p>
-moz-border-radius-bottomright:0px;<br />
-webkit-border-bottom-right-radius:0px;</p></blockquote>
<p>An example of the individual corners would be as follows:</p>
<blockquote><p>.topleft3 {</p>
<p>-moz-border-radius-topleft:3px;<br />
-webkit-border-top-left-radius:3px;</p>
<p>}</p>
<p>.topright5 {</p>
<p>-moz-border-radius-topright:5px;<br />
-webkit-border-top-right-radius:5px;</p>
<p>}</p></blockquote>
<p>The HTML:</p>
<blockquote><p>&lt;div class=&#8221;topleft3&#8243;&gt;&lt;div class=&#8221;ropright5&#8243;&gt;&lt;h1&gt;hello there&lt;/h1&gt;&lt;/div&gt;&lt;/div&gt;</p></blockquote>
<h2>Giving a div a drop shadow</h2>
<p>This is pretty simple much the rest of the code. It allows you to give a box a drop shadow and a pretty effective one at that.</p>
<blockquote><p>-webkit-box-shadow: 0 0 0 #000000;<br />
-moz-box-shadow: 0 0 0 #000000;</p></blockquote>
<p>Once again an example:</p>
<blockquote><p>.shadow {</p>
<p>-webkit-box-shadow: 0 1px 5px #333;<br />
-moz-box-shadow: 0 1px 5px #333;</p>
<p>}</p></blockquote>
<p>The HTML:</p>
<blockquote><p>&lt;div class=&#8221;shadow&#8221;&gt;&lt;h1&gt;Hello Shadow&lt;/h1&gt;&lt;/div&gt;</p></blockquote>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=229&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/' rel='bookmark' title='Remove images and increase load times with CSS3'>Remove images and increase load times with CSS3</a></li>
<li><a href='http://codewithdesign.com/2009/12/30/creating-a-top-button/' rel='bookmark' title='Creating a top button'>Creating a top button</a></li>
<li><a href='http://codewithdesign.com/2009/12/27/modifying-next-and-previous-posts/' rel='bookmark' title='Modifying next and previous posts'>Modifying next and previous posts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Drop shadow on text</title>
		<link>http://codewithdesign.com/2009/12/16/css3-drop-shadow-on-text/</link>
		<comments>http://codewithdesign.com/2009/12/16/css3-drop-shadow-on-text/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 20:23:31 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[drop shadow]]></category>
		<category><![CDATA[text-shadow]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=206</guid>
		<description><![CDATA[Adding drop shadows is now possible with CSS3 but is it worth it? There are only a few web browsers that currently support a css styled drop shadow are Firefox, Opera and Safari. (Don't expect the old IE versions to work with this because they don't work with anything.) This means that the page may look better off without using dom style text and going with an image.
Related posts:<ol>
<li><a href='http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/' rel='bookmark' title='Remove images and increase load times with CSS3'>Remove images and increase load times with CSS3</a></li>
<li><a href='http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/' rel='bookmark' title='Making it that much better with CSS3'>Making it that much better with CSS3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="CSS3 Drop shadow on text" data-via="" data-url="http://codewithdesign.com/2009/12/16/css3-drop-shadow-on-text/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="plus-one-wrap"><g:plusone size="tall" href="http://codewithdesign.com/2009/12/16/css3-drop-shadow-on-text/"></g:plusone></div><style>
.textdrop {
font: 80px Verdana, Arial, Helvetica, sans-serif;
text-shadow: 2px 2px 3px #666666;
}
</style>
<p>Adding drop shadows is now possible with CSS3 but is it worth it? There are only a few web browsers that currently support a css styled drop shadow are Firefox, Opera and Safari. (Don&#8217;t expect the old IE versions to work with this because they don&#8217;t work with anything.) This means that the page may look better off without using dom style text and going with an image.</p>
<p>The code is simple and looks like this:</p>
<blockquote><p>text-shadow: 2px 2px 3px #666666;</p></blockquote>
<p>Yes, this is all that is required to add a drop shadow but it may not be worth it depending on what browser the user is currently on. For the following example I used this bit of code.</p>
<blockquote><p>&lt;style&gt;<br />
.textdrop {<br />
font: 80px Verdana, Arial, Helvetica, sans-serif;<br />
text-shadow: 2px 2px 3px #666666;<br />
}<br />
&#8211;&gt;<br />
&lt;/style&gt;</p>
<p>&lt;div class=&#8221;textdrop&#8221;&gt;This is a test&lt;/div&gt;</p></blockquote>
<div class="textdrop">This is a text drop.</div>
<p>If you are unable to view the above text in your browser I have included a print screen of what it looks like in Firefox.<br />
<a href="http://codewithdesign.com/pages/sample_sites/blog_test/textdrop.jpg" rel="lightbox[206]"><img class="alignnone" src="http://codewithdesign.com/pages/sample_sites/blog_test/textdrop.jpg" alt="" width="576" height="102" /></a><br />
<a href="http://codewithdesign.com/pages/sample_sites/blog_test/cssdrop-txt-shadow.php">The text is slightly different because it has been placed in a blog with a different css style on it. To see the drops shadow as it truly is you can use the image or click here to see it in action.</a></p>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=206&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://codewithdesign.com/2010/05/05/remove-images-and-increase-load-times-with-css3/' rel='bookmark' title='Remove images and increase load times with CSS3'>Remove images and increase load times with CSS3</a></li>
<li><a href='http://codewithdesign.com/2009/12/22/making-it-that-much-better-with-css3/' rel='bookmark' title='Making it that much better with CSS3'>Making it that much better with CSS3</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2009/12/16/css3-drop-shadow-on-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

