<?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>Vince Cutting &#187; internet explorer</title>
	<atom:link href="http://www.vincecutting.co.uk/tag/internet-explorer/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vincecutting.co.uk</link>
	<description>Sharing web design and development ideas</description>
	<lastBuildDate>Thu, 25 Aug 2011 22:46:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to center a website accross all browsers using CSS</title>
		<link>http://www.vincecutting.co.uk/how-to-center-a-website-accross-all-browsers-using-css.html</link>
		<comments>http://www.vincecutting.co.uk/how-to-center-a-website-accross-all-browsers-using-css.html#comments</comments>
		<pubDate>Tue, 21 Oct 2008 22:23:41 +0000</pubDate>
		<dc:creator>Vince Cutting</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.vincecutting.co.uk/?p=46</guid>
		<description><![CDATA[Now I&#8217;m not sure about you, but I really do hate websites that are stuck on the left of the screen, and from talking to a few friends, I know I&#8217;m not alone with this pet hate. The thing is, that many beginner site designers may also dislike this left alignment, but simply do not [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.vincecutting.co.uk/wp-content/uploads/css-icon.jpg" alt="CSS" title="css-icon" width="150" height="100" class="alignleft size-full wp-image-66" />Now I&#8217;m not sure about you, but I really do hate websites that are stuck on the left of the screen, and from talking to a few friends, I know I&#8217;m not alone with this pet hate. The thing is, that many beginner site designers may also dislike this left alignment, but simply do not know how to make their site appear in the center of the screen, but others may have centered their site absolutely perfect in their favourite browser, but are totally unaware that it may not be centered in others.<br />
<span id="more-46"></span><br />
Today, I&#8217;d like to share my own method of centering your website in any browser using CSS &#8211; I&#8217;m going to be using CSS in the head of the HTML document today for simplicity, although ideally you should place it into an external/linked stylesheet on your own pages.</p>
<p>The trick to centering pages in all browsers is using what&#8217;s commonly known as a &#8216;wrapper&#8217;, applying some auto margin to that div in the CSS, and then using a small workaround so that the wrapper is centered in IE.</p>
<p>I&#8217;m going to start by using a basic outline template, demonstrating the basic page structure and illustrating what I mean buy the wrapper &#8211; which is commonly just a div to contain everything in.</p>
<div class="geshi no html4strict">
<ol>
<li class="li1">
<div class="de1"><span class="sc0">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; </span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc0"> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;html&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="sc2"><span class="kw2">&lt;head&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;meta</span> <span class="kw3">http-equiv</span><span class="sy0">=</span><span class="st0">&quot;Content-Type&quot;</span> <span class="kw3">content</span><span class="sy0">=</span><span class="st0">&quot;text/html; charset=utf-8&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;title&gt;</span></span>Title<span class="sc2"><span class="kw2">&lt;/title&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;meta</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;robots&quot;</span> <span class="kw3">content</span><span class="sy0">=</span><span class="st0">&quot;index, follow&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;meta</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;keywords&quot;</span> <span class="kw3">content</span><span class="sy0">=</span><span class="st0">&quot;&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;meta</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;description&quot;</span> <span class="kw3">content</span><span class="sy0">=</span><span class="st0">&quot;&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;style</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/css&quot;</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;body, html {</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; margin: 0;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; padding: 0;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;}</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;#wrapper {</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; width: 800px; /* your wrapper obviously needs a width otherwise it will be 100% */</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; margin: 0 auto; /* This is the proper way to center in a standards compliant browser */</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;}</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;/* This is the IE workaround*/</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;body { text-align: center; }</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;#wrapper { text-align: left; }</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;/*Now to just add some colour to see it in action*/</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;body { background: #000; }</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;#wrapper { background: #fff; color: #000; }</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;/style&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="sc2"><span class="kw2">&lt;/head&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="sc2"><span class="kw2">&lt;body&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;div</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;wrapper&quot;</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="sc2"><span class="kw2">&lt;h1&gt;</span></span>Title<span class="sc2"><span class="kw2">&lt;/h1&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="sc2"><span class="kw2">&lt;p&gt;</span></span>Content to go here.<span class="sc2"><span class="kw2">&lt;/p&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sc2"><span class="kw2">&lt;/div&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="sc2"><span class="kw2">&lt;/body&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;/html&gt;</span></span></div>
</li>
</ol>
</div>
<p>Now you can see the structure is fairly simple &#8211; the wrapper is just a div with a id of &#8220;wrapper&#8221;, which we specify a width for, and then set the margins to &#8220;0 auto&#8221;, which means no pixels for top and bottom margins, and auto for left and right margins. the auto value for margins basically gives the left and right edges equal space between the edge of the wrapper div and the edge of the browser window.</p>
<p>Next, we have to add the workaround for IE6, because it doesn&#8217;t understand auto as a value for margin. We basically do this by using text-align:center for the body to center the div on the page, but this will also center everything inside the div too, so we then have to re-align this to the left again using text-align:left for the div itself.</p>
<p>I&#8217;ve applied some background colours to the body and the div, so that you can see the centering effect for yourself &#8211; go ahead and try it for your own pages, and test it in different browsers&#8230;enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vincecutting.co.uk/how-to-center-a-website-accross-all-browsers-using-css.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Running IE6, IE7 and IE8 on the same pc (even on Vista)</title>
		<link>http://www.vincecutting.co.uk/running-ie6-ie7-and-ie8-on-the-same-pc-even-on-vista.html</link>
		<comments>http://www.vincecutting.co.uk/running-ie6-ie7-and-ie8-on-the-same-pc-even-on-vista.html#comments</comments>
		<pubDate>Tue, 21 Oct 2008 12:20:15 +0000</pubDate>
		<dc:creator>Vince Cutting</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[multi ie]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.vincecutting.co.uk/?p=36</guid>
		<description><![CDATA[For many web designers and developers, getting a website to look and function the same in different browsers can often be a challenge. This challenge is often made even more difficult when trying to achieve the same appearance across Microsofts hugely different versions of it&#8217;s Internet Explorer browser &#8211; none of the IE browsers have [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-38" title="ie-tester-preview" src="http://www.vincecutting.co.uk/wp-content/uploads/ie-tester-preview.jpg" alt="" width="200" height="125" />For many web designers and developers, getting a website to look and function the same in different browsers can often be a challenge. This challenge is often made even more difficult when trying to achieve the same appearance across Microsofts hugely different versions of it&#8217;s Internet Explorer browser &#8211; none of the IE browsers have ever complied to web standards, and each different version comes with it&#8217;s own quirks to deal with. So you would think you could just install all the different versions and test your web pages in each of them&#8230;wrong, it&#8217;s often impossible to get all the different versions (namely IE6, IE7 and IE8) running on the same computer, especially if you are running Windows Vista which will not let you install IE6 at all.</p>
<p><span id="more-36"></span></p>
<p>For XP users, Tredsoft&#8217;s &#8220;Multi IE&#8221; (<a title="Multi IE from Tredsoft" href="http://tredosoft.com/Multiple_IE">http://tredosoft.com/Multiple_IE</a>) has been a godsend for a while now, although this solution still will not work on Windows Vista.</p>
<p>I stumbled accross something today, whilst searching for a solution to this Vista problem, and this solution will actually allow Vista users to preview web pages utilising a online rendering engine for IE5.5, IE6, IE7 and IE8beta2, all nicely packaged up into a single desktop application, which even allows you to view say a IE6 rendered page alongside a IE7 rendered version of the same page. This program is called &#8220;IE Tester&#8221; from <a title="My Debugbar" href="http://www.my-debugbar.com">www.my-debugbar.com</a>, and it absolutely blew me away when as found it, as it does exactly what I need (viewing pages under different Internet Explorer rendering engines) IN WINDOWS VISTA!</p>
<p>If you are suffering the nightmare scenario of needing to test website pages in different versions of Internet Explorer, but cant install all the different versions you need onto the same PC, and especially if you are needing to do this in Windows Vista, then I recommend you give IE Tester a try &#8211; it works like a dream for me, and saves me having to run a seperate XP computer just for testing.</p>
<p>You can download MyDebugbar&#8217;s &#8220;IE Tester&#8221; from the following link: <a title="Download IE Tester here!" href="http://www.my-debugbar.com/wiki/IETester/HomePage">http://www.my-debugbar.com/wiki/IETester/HomePage</a></p>
<div id="attachment_37" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.vincecutting.co.uk/wp-content/uploads/ie-tester-screenshot.jpg"><img class="size-medium wp-image-37" title="ie-tester-screenshot" src="http://www.vincecutting.co.uk/wp-content/uploads/ie-tester-screenshot-300x220.jpg" alt="IE Tester Screenshot" width="300" height="220" /></a><p class="wp-caption-text">IE Tester Screenshot</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.vincecutting.co.uk/running-ie6-ie7-and-ie8-on-the-same-pc-even-on-vista.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

