<?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>Chris Goodwin :: Speak on it! the Blog &#187; css</title>
	<atom:link href="http://chrisgoodwin.info/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisgoodwin.info/blog</link>
	<description>Speak on it playboy!</description>
	<lastBuildDate>Thu, 11 Mar 2010 23:36:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Box Model</title>
		<link>http://chrisgoodwin.info/blog/css-box-model/</link>
		<comments>http://chrisgoodwin.info/blog/css-box-model/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 21:44:55 +0000</pubDate>
		<dc:creator>That Guy</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[box model]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://chrisgoodwin.info/blog/?p=285</guid>
		<description><![CDATA[If you are learning CSS the Box Model is one of the first things you should learn and w3schools provides a perfect example. All HTML elements can be considered as boxes. In CSS, the term &#8220;box model&#8221; is  used when talking about design and layout.
The CSS box model is essentially a box that wraps [...]]]></description>
			<content:encoded><![CDATA[<p>If you are learning CSS the Box Model is one of the first things you should learn and <a href="http://www.w3schools.com/css/css_boxmodel.asp" target="_blank">w3schools </a>provides a perfect example. All HTML elements can be considered as boxes. In CSS, the term &#8220;box model&#8221; is  used when talking about design and layout.</p>
<p>The CSS box model is essentially a box that wraps around HTML elements, and  it consists of: margins, borders, padding, and the actual content.</p>
<p>The box model allows us to place a border around elements and space elements  in relation to other elements.</p>
<p>The image below illustrates the box model:</p>
<p><a href="http://chrisgoodwin.info/blog/wp-content/uploads/2010/02/box-model.gif" rel="shadowbox[post-285];player=img;"><img class="alignnone size-medium wp-image-284" title="box-model" src="http://chrisgoodwin.info/blog/wp-content/uploads/2010/02/box-model-300x161.gif" alt="box-model" width="300" height="161" /></a></p>
<p>Explanation of the different parts:</p>
<ul>
<li><strong>Margin</strong> &#8211; Clears an area around the border. The margin does not have a  	background color, and it is completely transparent</li>
<li><strong>Border</strong> &#8211; A border that lies around the padding and content. The  	border is affected by the background color of the box</li>
<li><strong>Padding</strong> &#8211; Clears an area around the content. The  	padding is affected by the background color of the box</li>
<li><strong>Content</strong> &#8211; The content of the box, where text and images appear</li>
</ul>
<p>In order to set the width and height of an element correctly in all browsers,  you need to know how the box model works.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisgoodwin.info/blog/css-box-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple CSS Rollover with A Single Image [Tutorial]</title>
		<link>http://chrisgoodwin.info/blog/simple-css-rollover-with-a-single-image-tutorial/</link>
		<comments>http://chrisgoodwin.info/blog/simple-css-rollover-with-a-single-image-tutorial/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 02:22:48 +0000</pubDate>
		<dc:creator>That Guy</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[rollover]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://chrisgoodwin.info/blog/?p=74</guid>
		<description><![CDATA[This will be our final result using only one image. (you can download exercise files at bottom)
 
&#8220;Rollover me!&#8221; -says Mr.Elephant
(you can use any image you would like, not just a super cool elephant and zebra&#8230;)
How to do this? LET&#8217;S GO!
In simple terms: We are displaying only the left side of the image hiding the [...]]]></description>
			<content:encoded><![CDATA[<p>This will be our final result using only one image. (you can download exercise files at bottom)</p>
<p><a class="imageRollover" href="#"> </a><br />
&#8220;Rollover me!&#8221; -says Mr.Elephant<br />
(you can use any image you would like, not just a super cool elephant and zebra&#8230;)</p>
<h2>How to do this? LET&#8217;S GO!</h2>
<p>In simple terms: We are displaying only the left side of the image hiding the right half, then on rollover we are moving the image half way over to display the right side.</p>
<p>1. Create an image twice as wide as the size you&#8217;ll need. The left side of the image will be the non rolled over image and the right half will be the rollover part of the image.</p>
<p>Below is the original image.<br />
<a href="http://chrisgoodwin.info/blog/wp-content/uploads/2009/01/rollover_image.jpg" rel="shadowbox[post-74];player=img;"><img class="alignnone size-full wp-image-76" title="rollover_image" src="http://chrisgoodwin.info/blog/wp-content/uploads/2009/01/rollover_image.jpg" alt="rollover_image" width="260" height="108" /></a>(260width x 108height)</p>
<p>2. Below is the HTML code used, make sure it has a class so our CSS code knows where to look. This will act as our CSS placeholder for the rollover image.</p>
<p>&lt;a class=&#8221;imageRollover&#8221; href=&#8221;#&#8221;&gt; &lt;/a&gt;</p>
<p>3. Now for the CSS that will do the magic. Let&#8217;s get the image to look like we want when nothing is rolled over:</p>
<p>a.imageRollover {<br />
background: url(&#8221;rollover_image.jpg&#8221;) no-repeat; <span style="color: #4d8e8d;">(This is the image to be used 260&#215;108)</span><br />
display: block; <span style="color: #4d8e8d;">(this will display the entire image)</span><br />
width: 130px; <span style="color: #4d8e8d;">(display 130px wide, half the size of our image)</span><br />
height: 108px; <span style="color: #4d8e8d;">(display 108px high)</span><br />
text-decoration: none; <span style="color: #4d8e8d;">(This takes off the default styles used on links)</span><br />
}</p>
<p>That will display the left half of our image. Now, we want to move our image 130px (half our image width) to the left to reveal the right side when rolled over.</p>
<p>a:hover.imageRollover {<br />
background-position: -130px 0;<br />
}</p>
<p>This moves our image 130 pixel to the left on :hover <span style="color: #4d8e8d;">(note: background-position: Xposition Yposition)</span></p>
<p>That&#8217;s all there is to a single image rollover in CSS. ENJOY!</p>
<p>&gt;&gt;<a href="http://chrisgoodwin.info/blog/wp-content/uploads/2009/01/css_rollover.zip">DOWNLOAD THE EXERCISE FILES HERE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisgoodwin.info/blog/simple-css-rollover-with-a-single-image-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
