<?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>ThatGuyCharlie &#124; Charlie Mathews Blog &#38; Portfolio &#187; CSS</title>
	<atom:link href="http://www.thatguycharlie.com/category/tools/css-codes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thatguycharlie.com</link>
	<description>Charlie Mathews Blog &#38; Portfolio</description>
	<lastBuildDate>Fri, 25 Jun 2010 17:11:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Professional CSS Alert Boxes</title>
		<link>http://www.thatguycharlie.com/2010/professional-css-alert-boxes/</link>
		<comments>http://www.thatguycharlie.com/2010/professional-css-alert-boxes/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 11:56:47 +0000</pubDate>
		<dc:creator>Charlie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[alert box]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[freebie]]></category>
		<category><![CDATA[professional]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.thatguycharlie.com/?p=1013</guid>
		<description><![CDATA[When creating a clean and attractive website, you don&#8217;t ever want to ruin it with error pages. Although they are not always unavoidable, many scripts can easily return a clean error message. Using a simple bit of CSS makes your errors display in an smooth, non-aggressive way. This method is also very effective in returning [...]]]></description>
			<content:encoded><![CDATA[<p>When creating a clean and attractive website, you don&#8217;t ever want to ruin it with error pages. Although they are not always unavoidable, many scripts can easily return a clean error message. Using a simple bit of CSS makes your errors display in an smooth, non-aggressive way. This method is also very effective in returning little messages to your user such as &#8220;you are now logged in&#8221; or &#8220;you received a message&#8221;.<span id="more-1013"></span></p>
<h2>How</h2>
<p>By using the &#8220;border&#8221; css property it is easy to add a dark border to the top and bottom of each container. Using a color picker choose a light and dark version of a pastel color of your choice. Using icons from FamFamFam and adding a little padding, &#8220;Bamm!&#8221;, You&#8217;re done!</p>
<h2>Demo</h2>
<p><img src="http://www.simpleshare.vividperfection.com/privateuploads/alertdemo.png" alt="[image: alertdemo]" width="511" height="134" /></p>
<h2>The Code</h2>
<p>The images needed can be found in the download below.</p>
<pre class="brush: plain;">
&lt;html&gt;

&lt;head&gt;
&lt;style&gt;
body {
	color: ##444444;
	font-family: 'Lucida Grande',Verdana,Arial,Sans-Serif;
	font-size: 10px;
	}

.alert {
	background: #fff6bf url(exclamation.png) center no-repeat;
	background-position: 15px 50%;
	text-align: left;
	padding: 5px 20px 5px 45px;
	border-top: 2px solid #ffd324;
	border-bottom: 2px solid #ffd324;
	}

.info {
	background: #F8FAFC url(information.png) center no-repeat;
	background-position: 15px 50%;
	text-align: left;
	padding: 5px 20px 5px 45px;
	border-top: 2px solid #B5D4FE;
	border-bottom: 2px solid #B5D4FE;
	}

.error {
	background: #FFBFBF url(error.png) center no-repeat;
	background-position: 15px 50%;
	text-align: left;
	padding: 5px 20px 5px 45px;
	border-top: 2px solid #FF2424;
	border-bottom: 2px solid #FF2424;
	}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div class=&quot;info&quot;&gt;Information you need to know&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;alert&quot;&gt;Alert you triggered&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;error&quot;&gt;Error with our code&lt;/div&gt;
&lt;/body&gt;

&lt;/html&gt;
</pre>
<h2>Download</h2>
<p>See how simple that was? Download the source and images <a href="http://www.simpleshare.vividperfection.com/privateuploads/css_alert.zip">here</a>.</p>
<img src="http://www.thatguycharlie.com/?ak_action=api_record_view&id=1013&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.thatguycharlie.com/2010/professional-css-alert-boxes/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CSS Powered Percentage Bar</title>
		<link>http://www.thatguycharlie.com/2010/css-powered-percentage-bar/</link>
		<comments>http://www.thatguycharlie.com/2010/css-powered-percentage-bar/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 11:07:01 +0000</pubDate>
		<dc:creator>Charlie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[percentage]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.thatguycharlie.com/?p=920</guid>
		<description><![CDATA[After reading some of the css techniques mentioned at SmashingMagizine, I discovered that they had removed a dead link about a css powered percentage bar. I quickly decided to attempt a recreation of such a useful feature. Anyways, here is the easy code for creating a percentage bar. Demo The demo here shows the percentage [...]]]></description>
			<content:encoded><![CDATA[<p>After reading some of the css techniques mentioned at SmashingMagizine, I discovered that they had removed a dead link about a css powered percentage bar. I quickly decided to attempt a recreation of such a useful feature. Anyways, here is the easy code for creating a percentage bar.<span id="more-920"></span></p>
<h3>Demo</h3>
<p>The demo here shows the percentage bar using image backgrounds. This sample code tutorial below will demonstrate using background colors but if you wish to use images like above, refer to <a href="http://www.simpleshare.vividperfection.com/privateuploads/css_percentage_bar.zip">this download</a></p>
<p><img src="http://www.simpleshare.vividperfection.com/privateuploads/percentdemo.png" alt="[image: percentagebardemo]" width="520" height="50" /></p>
<h3>The Code</h3>
<pre class="brush: xml;">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;CSS Percentage Bar Test&lt;title&gt;
&lt;style&gt;
.bar {
width: 500px ;
height: 20px ;
border: 1px solid #444444;
background-color: #656565 ;
}
.barfill {
height: 20px ;
float: left ;
background-color: #6ba8e5 ;
width: 50% ; /* This is the percentage displayed */
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;barfill&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>This CSS basically is the whole workings of the thing. It creates a bar and then fills it to a certain percent you define. Simple, eh? Try to play with it a bit, It&#8217;s amazing fun to mix with some javascript and use as a loading bar or upload progress bar.</p>
<p>What i&#8217;ve done is created the div with a class of &#8220;bar&#8221;. I made this 500 pixels wide and 20 pixels high. I gave it a grey background and gave it a dark grey border. To create the percentage, I then created a div with the class of &#8220;barfill&#8221; and made this float left inside of the &#8220;bar&#8221; div. I gave it a blue background and the percentage width I wanted displayed. To get results like the demo image, you would put &#8220;43%&#8221;. Check out <a href="http://www.simpleshare.vividperfection.com/privateuploads/css_percentage_bar.zip">the download</a> to get the images and full code I used in my demo image.</p>
<img src="http://www.thatguycharlie.com/?ak_action=api_record_view&id=920&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.thatguycharlie.com/2010/css-powered-percentage-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
