<?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; box model</title>
	<atom:link href="http://chrisgoodwin.info/blog/tag/box-model/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>
	</channel>
</rss>
