<?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>CSS Tutorials and CSS Articles &#187; CSS Dimensions</title>
	<atom:link href="http://www.cssmaster.co.uk/tag/css-dimensions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cssmaster.co.uk</link>
	<description>CSS tutorials and articles</description>
	<lastBuildDate>Tue, 02 Feb 2010 01:43:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Dimensions</title>
		<link>http://www.cssmaster.co.uk/css-dimensions</link>
		<comments>http://www.cssmaster.co.uk/css-dimensions#comments</comments>
		<pubDate>Mon, 18 Jan 2010 01:00:01 +0000</pubDate>
		<dc:creator>CSS Master</dc:creator>
				<category><![CDATA[CSS Tutorials]]></category>
		<category><![CDATA[CSS Dimensions]]></category>

		<guid isPermaLink="false">http://www.cssmaster.co.uk/?p=58</guid>
		<description><![CDATA[When creating CSS layouts it&#8217;s important to keep in mind how CSS Dimensions work.
There are 6 different dimension declarations:

height
max-height
min-height
width
max-width
min-width

Height and width state the height and width of an element.  Not all elements can have specific widths or heights defined, and some will shrink depending on the size of their content.  You can usually [...]]]></description>
			<content:encoded><![CDATA[<p>When creating CSS layouts it&#8217;s important to keep in mind how <strong>CSS Dimensions</strong> work.</p>
<p>There are 6 different dimension declarations:</p>
<ul>
<li>height</li>
<li>max-height</li>
<li>min-height</li>
<li>width</li>
<li>max-width</li>
<li>min-width</li>
</ul>
<p>Height and width state the height and width of an element.  Not all elements can have specific widths or heights defined, and some will shrink depending on the size of their content.  You can usually avoid this by using <code>display:block;</code>.  We&#8217;ll be using a default block displayed element, a <code>div</code>.</p>
<p>Max-height and max-width specifies the maximum dimensions of the given element, not allowing it to go any larger.  If, however, the content is larger that the maximum most browser will increase the dimensions over your declarations.  You can use <code>overflow</code> declarations to try and over come this.</p>
<p>Min-height and min-widths are very useful when creating columned layouts.  Let&#8217;s imagine you have a web page with two columns, one for your navigation, and one for your content, with a footer div at the bottom.  Sometimes your content will only be one line long, meaning that the footer will become part of the content pane (assuming you haven&#8217;t cleared floats).  You can force the content div to be a specific height, unless the content forces it to be larger.<br />
<code>.content { min-height: 300px; }</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssmaster.co.uk/css-dimensions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

