<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Webdoodles</title>
	<atom:link href="http://webdoodles.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdoodles.wordpress.com</link>
	<description>Web design ideas, tips, tricks and resources - HTML, CSS, PHP, JS... get your abbreviations out</description>
	<lastBuildDate>Sun, 19 Aug 2007 12:39:13 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='webdoodles.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/c9729676d63fd64b18c4744ab4025b34?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Webdoodles</title>
		<link>http://webdoodles.wordpress.com</link>
	</image>
			<item>
		<title>Testing Webpages in Different Browsers</title>
		<link>http://webdoodles.wordpress.com/2007/08/19/testing-webpages-in-different-browsers/</link>
		<comments>http://webdoodles.wordpress.com/2007/08/19/testing-webpages-in-different-browsers/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 12:39:13 +0000</pubDate>
		<dc:creator>ukmagician</dc:creator>
				<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://webdoodles.wordpress.com/2007/08/19/testing-webpages-in-different-browsers/</guid>
		<description><![CDATA[An essential part of developing a website is testing to make sure it displays correctly in different browsers and on different operating systems.
Here are a couple of sites that can help with this.
browsers.evolt.org is an archive of old browser versions for windows, mac, linux and other operating systems. You can download virtually every browser that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=22&subd=webdoodles&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>An essential part of developing a website is testing to make sure it displays correctly in different browsers and on different operating systems.</p>
<p>Here are a couple of sites that can help with this.</p>
<p><a href="http://browsers.evolt.org/">browsers.evolt.org</a> is an archive of old browser versions for windows, mac, linux and other operating systems. You can download virtually every browser that has ever existed and test your sites with them. Handily, the old versions of Internet Explorer can be installed as &#8217;stand alone&#8217; applications so they don&#8217;t interfere with your current IE version.</p>
<p>If you don&#8217;t have access to browsers on different operating systems, <a href="http://browsershots.org/">Browsershots.org</a>  is an excellent free service that generates screenshots of a webpage in different browsers on Linux, Windows and Mac. Of course, this only shows that a page is displaying correctly, it doesn&#8217;t show anything dynamic like hover effects etc, but it&#8217;s better than nothing.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webdoodles.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webdoodles.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdoodles.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdoodles.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdoodles.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdoodles.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdoodles.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdoodles.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdoodles.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdoodles.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdoodles.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdoodles.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=22&subd=webdoodles&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webdoodles.wordpress.com/2007/08/19/testing-webpages-in-different-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b63f69d1f967a7ddaace3725ec920cbe?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ukmagician</media:title>
		</media:content>
	</item>
		<item>
		<title>Optimizing a 2 Column Layout for Search Engines</title>
		<link>http://webdoodles.wordpress.com/2007/07/25/optimizing-a-2-column-layout-for-search-engines/</link>
		<comments>http://webdoodles.wordpress.com/2007/07/25/optimizing-a-2-column-layout-for-search-engines/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 11:47:53 +0000</pubDate>
		<dc:creator>ukmagician</dc:creator>
				<category><![CDATA[Centered]]></category>
		<category><![CDATA[Fixed Width]]></category>
		<category><![CDATA[Layouts]]></category>
		<category><![CDATA[Search Engine Friendly]]></category>
		<category><![CDATA[Two Column]]></category>
		<category><![CDATA[Website Accessibility]]></category>

		<guid isPermaLink="false">http://webdoodles.wordpress.com/2007/07/25/optimizing-a-2-column-layout-for-search-engines/</guid>
		<description><![CDATA[A little while ago, I published a basic centered two column layout.
A simple change to the style sheet and the code will improve this layout so that it is more accessible and search engine friendly.
Screen readers tend read a webpage in the order that it is coded rather than the order that it appears on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=23&subd=webdoodles&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A little while ago, I published a <a href="http://webdoodles.wordpress.com/2007/07/17/basic-2-column-centered-layout/">basic centered two column layout</a>.</p>
<p>A simple change to the style sheet and the code will improve this layout so that it is more accessible and search engine friendly.</p>
<p>Screen readers tend read a webpage in the order that it is coded rather than the order that it appears on screen, which is controlled by the style sheet.  So, if the navigation appears above the content in the code (as it does in the above layout), someone using a screen reader will have to listen to all the navigation links before they hear the content.</p>
<p>This problem is exacerbated by the navigation being identical and repeated on every page.</p>
<p>Search engines need to analyse the content to determine what a page is about and rank it in the search results. However, they don&#8217;t always analyse the entire page, they might only look at the first 100 lines or so. If the majority of that is navigation, they are not going to find all the content. Also, the search engines want to find new content, which needs to be as near to the top of the page as possible.</p>
<p>The solution is to move the navigation div below the content div in the code. Then change the style sheet so the navigation and content div&#8217;s are floated to the right instead of to the left (replace <code>float: left;</code>  with  <code>float: right;</code>).</p>
<p>This retains the visual layout of navigation n the left and content on right.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webdoodles.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webdoodles.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdoodles.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdoodles.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdoodles.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdoodles.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdoodles.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdoodles.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdoodles.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdoodles.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdoodles.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdoodles.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=23&subd=webdoodles&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webdoodles.wordpress.com/2007/07/25/optimizing-a-2-column-layout-for-search-engines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b63f69d1f967a7ddaace3725ec920cbe?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ukmagician</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic 2 Column Centered Layout</title>
		<link>http://webdoodles.wordpress.com/2007/07/14/basic-2-column-centered-layout/</link>
		<comments>http://webdoodles.wordpress.com/2007/07/14/basic-2-column-centered-layout/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 12:09:15 +0000</pubDate>
		<dc:creator>ukmagician</dc:creator>
				<category><![CDATA[Centered]]></category>
		<category><![CDATA[Fixed Width]]></category>
		<category><![CDATA[Two Column]]></category>

		<guid isPermaLink="false">http://webdoodles.wordpress.com/2007/07/14/basic-2-column-centered-layout/</guid>
		<description><![CDATA[This is a simple 2 column layout suitable for smaller sites.  It includes a header, left column, content area and a footer.
These elements are centered in the browser window giving the page an overall width of 760 pixels, so it caters for those  browsing at 800 x 600 resolution.

The centering is achieved by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=18&subd=webdoodles&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a simple 2 column layout suitable for smaller sites.  It includes a header, left column, content area and a footer.</p>
<p>These elements are centered in the browser window giving the page an overall width of 760 pixels, so it caters for those  browsing at 800 x 600 resolution.</p>
<p style="text-align:center;"><img src="http://webdoodles.files.wordpress.com/2007/05/two-column-fixed-width-cent.gif" alt="2 column fixed width centered layout" /></p>
<p>The centering is achieved by wrapping the left column and content in a centering div (see <a href="http://webdoodles.wordpress.com/2007/06/16/centering-a-layout-horizontally/">Centering a Layout Horizontally</a>).</p>
<p>The code below will reproduce the screenshot above. (you may need to replace the quotation marks with straight quotes for it to display properly).</p>
<p>&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221;<br />
&#8220;http://www.w3.org/TR/html4/loose.dtd&#8221;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=iso-8859-1&#8243;&gt;<br />
&lt;title&gt;Two Column Fixed Width and Centered Layout&lt;/title&gt;</p>
<p>&lt;style type=&#8221;text/css&#8221;&gt;<br />
&lt;!&#8211;<br />
/* Styles for centering layout in browser */<br />
body {<br />
text-align:center;<br />
min-width: 760px;<br />
}<br />
#centeringwrapper {<br />
width: 760px;<br />
text-align:left;<br />
margin: 0 auto;<br />
}<br />
/******************************************/</p>
<p>/* full width header and footer elements */<br />
#header, #footer {<br />
background-color:#CCC;<br />
text-align:center;<br />
clear: both;<br />
width: 100%;<br />
}<br />
#header {<br />
height: 100px;<br />
}<br />
/******************************************/</p>
<p>/* floating content areas */<br />
#content {<br />
float:right;<br />
width: 560px;<br />
}<br />
#leftcolumn {<br />
float:right;<br />
width: 200px;<br />
background-color:#CCFFFF;<br />
}<br />
/******************************************/<br />
&#8211;&gt;<br />
&lt;/style&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;div id=&#8221;centeringwrapper&#8221;&gt;<br />
&lt;div id=&#8221;header&#8221;&gt;<br />
&lt;h1&gt;Two Column, Fixed width, Centered Layout&lt;/h1&gt;<br />
&lt;p&gt;(catchy title, huh?)&lt;/p&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div id=&#8221;content&#8221;&gt;<br />
&lt;h2&gt;heading&lt;/h2&gt;<br />
&lt;p&gt;Mauris fermentum, risus eu hendrerit convallis, urna metus porttitor lacus, in pretium purus nisi id magna. Nunc tristique vehicula sem. Nam non nunc. Duis orci justo, imperdiet a, pharetra sed, rutrum quis, diam. Sed nec enim a sapien sollicitudin laoreet.&lt;/p&gt;<br />
&lt;p&gt;Sed eu pede eget diam fermentum scelerisque. In ut arcu. Vivamus lacinia, libero non molestie varius, nunc quam mollis ligula, ut malesuada nibh nisl vitae tortor. Cras blandit, felis sit amet viverra consequat, enim tellus rutrum mauris, a tempus enim turpis quis erat. &lt;/p&gt;<br />
&lt;p&gt;Sed dictum sollicitudin augue. In eros tellus, luctus ac, vulputate sed, consectetuer ac, pede. Ut porttitor mauris vitae nisi. Etiam lectus metus, porttitor sed, viverra vitae, ornare in, ipsum. Donec in eros a arcu auctor ultrices.&lt;/p&gt;<br />
&lt;h2&gt;Heading&lt;/h2&gt;<br />
&lt;p&gt; Duis tempus condimentum metus. Etiam feugiat, justo eu cursus pretium, magna odio malesuada turpis, at euismod nibh risus at metus. Fusce eleifend massa nec pede. Donec tristique nisi fermentum felis. Nunc et sapien nec dui malesuada malesuada. &lt;/p&gt;<br />
&lt;p&gt;Integer sem tortor, mollis sed, gravida eget, molestie eu, lorem. Nullam in nisl at lorem facilisis fermentum. Ut eros. Praesent suscipit pulvinar eros. Nulla purus. Aliquam ac nisl quis erat tincidunt vestibulum. Mauris scelerisque malesuada tellus. Nam ultrices purus sit amet tellus. Morbi dignissim elit laoreet orci. In sit amet tellus. Donec malesuada tempor turpis.&lt;/p&gt;<br />
&lt;p&gt;Integer in lorem. Mauris nec urna eget justo eleifend fringilla. Quisque lobortis ultrices enim. Phasellus id nisi eu mi cursus mattis. Nunc facilisis, mauris et pellentesque sagittis, diam augue faucibus nisl, in tincidunt lorem magna non lorem. Fusce vitae elit in nisl tincidunt blandit. Proin auctor nibh non neque. Nulla nisi. &lt;/p&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div id=&#8221;leftcolumn&#8221;&gt;<br />
&lt;p&gt;Left Column&lt;/p&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;Nav link 1 &lt;/li&gt;<br />
&lt;li&gt;Nav link 2 &lt;/li&gt;<br />
&lt;li&gt;Nav link 3 &lt;/li&gt;<br />
&lt;li&gt;Nav link 4 &lt;/li&gt;<br />
&lt;li&gt;Nav link 5 &lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div id=&#8221;footer&#8221;&gt;<br />
&lt;p&gt;Footer information&lt;/p&gt;<br />
&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webdoodles.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webdoodles.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdoodles.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdoodles.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdoodles.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdoodles.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdoodles.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdoodles.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdoodles.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdoodles.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdoodles.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdoodles.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=18&subd=webdoodles&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webdoodles.wordpress.com/2007/07/14/basic-2-column-centered-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b63f69d1f967a7ddaace3725ec920cbe?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ukmagician</media:title>
		</media:content>

		<media:content url="http://webdoodles.files.wordpress.com/2007/05/two-column-fixed-width-cent.gif" medium="image">
			<media:title type="html">2 column fixed width centered layout</media:title>
		</media:content>
	</item>
		<item>
		<title>HTML Tag Reference</title>
		<link>http://webdoodles.wordpress.com/2007/06/27/html-tag-reference/</link>
		<comments>http://webdoodles.wordpress.com/2007/06/27/html-tag-reference/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 12:02:22 +0000</pubDate>
		<dc:creator>ukmagician</dc:creator>
				<category><![CDATA[HTML Help]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Website Accessibility]]></category>

		<guid isPermaLink="false">http://webdoodles.wordpress.com/2007/06/27/html-tag-reference/</guid>
		<description><![CDATA[It&#8217;s not easy to remember the multitude of html tags and their attributes, so it&#8217;s good to have somewhere to go for a quick recap.
My favourite site for most HTML help is Your HTML Source, which has a great glossary of HTML tags. It clearly outlines the  correct usage for the all the common [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=15&subd=webdoodles&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It&#8217;s not easy to remember the multitude of html tags and their attributes, so it&#8217;s good to have somewhere to go for a quick recap.</p>
<p>My favourite site for most HTML help is Your HTML Source, which has a great <a href="http://www.yourhtmlsource.com/myfirstsite/tagreference.html">glossary of HTML tags</a>. It clearly outlines the  correct usage for the all the common tags and many you might not normally think of using.</p>
<p>It&#8217;s a good idea to use an existing tag if possible, rather than defining your own class, as it makes your code more compliant with web standards and screen readers.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webdoodles.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webdoodles.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdoodles.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdoodles.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdoodles.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdoodles.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdoodles.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdoodles.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdoodles.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdoodles.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdoodles.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdoodles.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=15&subd=webdoodles&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webdoodles.wordpress.com/2007/06/27/html-tag-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b63f69d1f967a7ddaace3725ec920cbe?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ukmagician</media:title>
		</media:content>
	</item>
		<item>
		<title>Centering a Layout Horizontally</title>
		<link>http://webdoodles.wordpress.com/2007/06/16/centering-a-layout-horizontally/</link>
		<comments>http://webdoodles.wordpress.com/2007/06/16/centering-a-layout-horizontally/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 10:58:49 +0000</pubDate>
		<dc:creator>ukmagician</dc:creator>
				<category><![CDATA[Centered]]></category>
		<category><![CDATA[Layouts]]></category>

		<guid isPermaLink="false">http://webdoodles.wordpress.com/2007/06/16/centering-a-layout-horizontally/</guid>
		<description><![CDATA[This is, what should be, a simple technique for centering a page horizontally in the browser window.
Logically, you would think all you have to do is wrap your content in a div, give this div a width (say 760px so it fits nicely on a screen resolution of 800 x 600) and set the left [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=17&subd=webdoodles&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is, what should be, a simple technique for centering a page horizontally in the browser window.</p>
<p>Logically, you would think all you have to do is wrap your content in a div, give this div a width (say 760px so it fits nicely on a screen resolution of 800 x 600) and set the left and right margins to &#8216;auto&#8217;.</p>
<p><code>#centeringwrapper {</code><br />
<code>width: 760px;</code><br />
<code>margin: 0 auto;</code><br />
<code>}</code></p>
<p>This works in Firefox and other browsers which display CSS correctly, but of course with Internet Explorer nothing is that straight forward.</p>
<p>IE doesn&#8217;t interpret the automatic left and right margins. However we can use another incorrect CSS interpretation to achieve the desired effect in IE. If you apply a centering text alignment to the body tag, IE applies it to all divs within the body, thus centering them. However, this also centers all body text on the page so we need a further fix to reset the text to align to the left.</p>
<p>Finally, the body tag needs to have a minimum width equal to the width of the centering wrapper. This deals with an issue in older Mozilla browsers where reducing the size of the browser window results in half of your centered div hanging off the left of the page.</p>
<p>So the final CSS looks like this:</p>
<p><code>body {</code><br />
<code>text-align:center; /* IE centering fix */ </code><br />
<code>min-width: 760px; /* Mozilla resizing fix*/ </code><br />
<code>}</code><br />
<code>#centeringwrapper {</code><br />
<code>width: 760px;</code><br />
<code>text-align:left; /* Negates IE centering fix in other browers*/ </code><br />
<code>margin: 0 auto; /* Ccentering in non-IE browers*/ </code><br />
<code>}</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webdoodles.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webdoodles.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdoodles.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdoodles.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdoodles.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdoodles.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdoodles.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdoodles.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdoodles.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdoodles.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdoodles.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdoodles.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdoodles.wordpress.com&blog=780564&post=17&subd=webdoodles&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webdoodles.wordpress.com/2007/06/16/centering-a-layout-horizontally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b63f69d1f967a7ddaace3725ec920cbe?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ukmagician</media:title>
		</media:content>
	</item>
	</channel>
</rss>