<?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>Emz Design &#187; layouts</title>
	<atom:link href="http://www.emzdesign.co.uk/tag/layouts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emzdesign.co.uk</link>
	<description>The ramblings of a web girl</description>
	<lastBuildDate>Mon, 08 Feb 2010 10:50:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Centering Your Website Using CSS</title>
		<link>http://www.emzdesign.co.uk/2008/04/08/center-website-css/</link>
		<comments>http://www.emzdesign.co.uk/2008/04/08/center-website-css/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 14:24:38 +0000</pubDate>
		<dc:creator>Emma Selley</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[layouts]]></category>

		<guid isPermaLink="false">http://www.emzdesign.co.uk/2008/04/08/center-website-css/</guid>
		<description><![CDATA[It may seem like a small problem, but getting your website to be centered in a website using CSS can be hard. This article shows you a quick way of acheiving this.  ]]></description>
			<content:encoded><![CDATA[<p>It may seem like a small problem, but getting your website to be centered in a website using only CSS can sometimes be the cause of many head-against-desk situations, especially when once you&#8217;ve got it to be centered in IE, it is still to the left in FF! </p>
<p>Here is a simple bit of CSS that will center your website in most common browsers (IE6 &#038; IE7, FireFox etc.). </p>
<p>Firstly, add these two classes to your style sheet.</p>
<p><code>.outer {<br />
	width:800px;<br />
	margin:auto;<br />
	display:table;<br />
          }</p>
<p>.inner {<br />
	width:auto;<br />
	margin:0px;<br />
	display: table;<br />
	}</code></p>
<p>The width in the &#8220;outer&#8221; class is the width of the site. You can edit this to how wide you want your site to be, but anything else leave untouched (unless you want to experiment of course!) </p>
<p>Now all we do is add two DIVS to the page, one with the class of &#8220;outer&#8221;, and one with the class of &#8220;inner&#8221;. Here is what it&#8217;ll look like:</p>
<p><code>&lt;div class="outer"&gt;<br />
&lt;div class="inner"&gt;</p>
<p>CONTENT/LAYOUT ETC. TO GO HERE</p>
<p>&lt;/div&gt;<br />
&lt;/div&gt;</code></p>
<p>That&#8217;s it! You will now have a centered website without using those horrid &#8220;center&#8221; tags! </p>
 <div class='series_toc' style="font-size: 13px; margin-bottom: 25px;"><h2><a href="#" rel="bookmark">Related Posts</a></h2>

<a href='http://www.emzdesign.co.uk/2008/04/11/how-to-generate-cutomers-from-website/' title='Generating Customers via Your Website'>Generating Customers via Your Website</a> <br /> <a href='http://www.emzdesign.co.uk/2008/04/07/php-contact-form/' title='Create a Simple PHP Contact Form'>Create a Simple PHP Contact Form</a> <br /> <a href='http://www.emzdesign.co.uk/2008/04/08/center-website-css/' title='Centering Your Website Using CSS'>Centering Your Website Using CSS</a> <br /><a href='http://www.emzdesign.co.uk/2008/06/09/link-building-correctly/' title='How you should be Link Building'>How you should be Link Building</a> <br /> <a href='http://www.emzdesign.co.uk/2008/08/29/dropdown-problem-with-firefox/' title='Dropdown Problem with Firefox'>Dropdown Problem with Firefox</a> <br /> <a href='http://www.emzdesign.co.uk/2008/09/04/upgrading-wordpress/' title='Upgrading Wordpress Plugin'>Upgrading Wordpress Plugin</a> <br /> </div> ]]></content:encoded>
			<wfw:commentRss>http://www.emzdesign.co.uk/2008/04/08/center-website-css/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
