<?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>Samuel Page</title>
	<atom:link href="http://www.samuelpage.co.uk/feed" rel="self" type="application/rss+xml" />
	<link>http://www.samuelpage.co.uk</link>
	<description>Digital Playground &#38; Blog</description>
	<lastBuildDate>Sun, 23 May 2010 13:04:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nike&#8217;s new advert &#8211; Write the Future (in HD)</title>
		<link>http://www.samuelpage.co.uk/nikes-new-advert-write-the-future</link>
		<comments>http://www.samuelpage.co.uk/nikes-new-advert-write-the-future#comments</comments>
		<pubDate>Sun, 23 May 2010 12:56:49 +0000</pubDate>
		<dc:creator>Samuel Page</dc:creator>
				<category><![CDATA[Advertising]]></category>

		<guid isPermaLink="false">http://www.samuelpage.co.uk/?p=55</guid>
		<description><![CDATA[
The new Nike advert, directed by Alejandro González Iñárritu has caused quite a stir across the internet. Many people loving it, whilst others hating it. Which ever side of the fence you sit on, you can't help but admire just how much effort and thought (not to mention cost) must  have gone in to organising, [...]]]></description>
			<content:encoded><![CDATA[
<p>The new Nike advert, directed by <a title="Alejandro González Iñárritu IMDB profile" href="http://www.imdb.com/name/nm0327944/">Alejandro González Iñárritu</a> has caused quite a stir across the internet. Many people loving it, whilst others hating it. Which ever side of the fence you sit on, you can't help but admire just how much effort and thought (not to mention cost) must  have gone in to organising, directing and producing the finished advert! For those of you who haven't seen it, here's the full video:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/idLG6jh23yE&amp;hl=en_GB&amp;fs=1&amp;rel=0&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/idLG6jh23yE&amp;hl=en_GB&amp;fs=1&amp;rel=0&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<span id="more-55"></span></p>
<p>What's more Nike have backed it up with some very clever mixed media advertising, including some impressive banners enticing the user to explore each element of the advert step by step (screenshots coming soon).</p>
<p>Of course the end result will always take you to the <a href="http://inside.nike.com/blogs/nikefootball-en_GB/tags/writethefuture">Nike football write the future website</a> - but the nice thing about this is that it's not a product focuessed site, instead you can dip in and out of video elements from the advert, and then explore Nike further should you wish to.</p>
<p>In my opinion it's a great advert, but when you take into account the mixed media advertising that backs it up, it's a truly breath taking  campaign.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">
<h1>Alejandro González IñárrituAlejandro González Iñárritu</h1>
</div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;t=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29+-+http://b2l.me/wbt68&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;title=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29&amp;summary=The%20new%20Nike%20advert%2C%20directed%20by%20Alejandro%20Gonz%C3%A1lez%20I%C3%B1%C3%A1rritu%20has%20caused%20quite%20a%20stir%20across%20the%20internet.%20Many%20people%20loving%20it%2C%20whilst%20others%20hating%20it.%20Which%20ever%20side%20of%20the%20fence%20you%20sit%20on%2C%20you%20can%27t%20help%20but%20admire%20just%20how%20much%20effort%20and%20thought%20%28not%20to%20mention%20cost%29%20must%C2%A0%20have%20gone%20in%20t&amp;source=Samuel Page" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;title=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;title=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;n=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;title=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.samuelpage.co.uk/nikes-new-advert-write-the-future/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;bm_description=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;title=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.samuelpage.co.uk/nikes-new-advert-write-the-future&amp;title=Nike%27s+new+advert+-+Write+the+Future+%28in+HD%29" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>


]]></content:encoded>
			<wfw:commentRss>http://www.samuelpage.co.uk/nikes-new-advert-write-the-future/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Min-Height hack for Internet Explorer 6</title>
		<link>http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6</link>
		<comments>http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6#comments</comments>
		<pubDate>Sun, 07 Mar 2010 18:16:22 +0000</pubDate>
		<dc:creator>Samuel Page</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Internet Explorer 6]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[min-height]]></category>

		<guid isPermaLink="false">http://www.samuelpage.co.uk/blog/?p=45</guid>
		<description><![CDATA[
Setting min-height in CSS is great until you cross browser check and surprise surprise, IE6 doesn't like it.
Here's a really neat quick hack to overcome the problem:

selector &#123;
  min-height:500px;
  height:auto !important;
  height:500px;
&#125;

Full credit goes to this site http://www.dustindiaz.com/min-height-fast-hack/




		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Share this on LinkedIn
		
		
			Digg this!
		
		
			Share this on del.icio.us
		
		
			Blog this on Blogger
		
		
			Stumble [...]]]></description>
			<content:encoded><![CDATA[
<p>Setting min-height in CSS is great until you cross browser check and surprise surprise, IE6 doesn't like it.</p>
<p>Here's a really neat quick hack to overcome the problem:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">selector <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span> !important<span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Full credit goes to this site <a href="http://www.dustindiaz.com/min-height-fast-hack/" target="_blank">http://www.dustindiaz.com/min-height-fast-hack/</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;t=Min-Height+hack+for+Internet+Explorer+6" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Min-Height+hack+for+Internet+Explorer+6+-+http://b2l.me/wa8nz&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;title=Min-Height+hack+for+Internet+Explorer+6&amp;summary=Setting%20min-height%20in%20CSS%20is%20great%20until%20you%20cross%20browser%20check%20and%20surprise%20surprise%2C%20IE6%20doesn%27t%20like%20it.%0D%0A%0D%0AHere%27s%20a%20really%20neat%20quick%20hack%20to%20overcome%20the%20problem%3A%0D%0Aselector%20%7B%0D%0A%20%20min-height%3A500px%3B%0D%0A%20%20height%3Aauto%20%21important%3B%0D%0A%20%20height%3A500px%3B%0D%0A%7D%0D%0AFull%20credit%20goes%20to%20this%20site%20http%3A%2F%2Fwww.dustindia&amp;source=Samuel Page" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;title=Min-Height+hack+for+Internet+Explorer+6" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;title=Min-Height+hack+for+Internet+Explorer+6" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;n=Min-Height+hack+for+Internet+Explorer+6&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;title=Min-Height+hack+for+Internet+Explorer+6" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;bm_description=Min-Height+hack+for+Internet+Explorer+6&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;title=Min-Height+hack+for+Internet+Explorer+6" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6&amp;title=Min-Height+hack+for+Internet+Explorer+6" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>


]]></content:encoded>
			<wfw:commentRss>http://www.samuelpage.co.uk/min-height-hack-for-internet-explorer-6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove image padding/margins in Internet Explorer 6 (IE6)</title>
		<link>http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6</link>
		<comments>http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6#comments</comments>
		<pubDate>Sun, 07 Mar 2010 18:07:36 +0000</pubDate>
		<dc:creator>Samuel Page</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Internet Explorer 6]]></category>

		<guid isPermaLink="false">http://www.samuelpage.co.uk/blog/?p=38</guid>
		<description><![CDATA[
IE6 handly adds margin around images - painful when you're working to precise sizes.
However there's a simple fix, use the following CSS in your IE6 stylesheet:

img &#123;
display:block;
&#125;





		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Share this on LinkedIn
		
		
			Digg this!
		
		
			Share this on del.icio.us
		
		
			Blog this on Blogger
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Subscribe to the comments for this post?
		
		
			Share this [...]]]></description>
			<content:encoded><![CDATA[
<p>IE6 handly adds margin around images - painful when you're working to precise sizes.</p>
<p>However there's a simple fix, use the following CSS in your IE6 stylesheet:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">img <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>



<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;t=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29+-+http://b2l.me/wa8ph&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;title=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29&amp;summary=IE6%20handly%20adds%20margin%20around%20images%20-%20painful%20when%20you%27re%20working%20to%20precise%20sizes.%0D%0A%0D%0AHowever%20there%27s%20a%20simple%20fix%2C%20use%20the%20following%20CSS%20in%20your%20IE6%20stylesheet%3A%0D%0A%0D%0Aimg%20%7B%0D%0Adisplay%3Ablock%3B%0D%0A%7D&amp;source=Samuel Page" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;title=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;title=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;n=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;title=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;bm_description=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;title=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6&amp;title=How+to+remove+image+padding%2Fmargins+in+Internet+Explorer+6+%28IE6%29" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>


]]></content:encoded>
			<wfw:commentRss>http://www.samuelpage.co.uk/how-to-remive-image-padding-in-internet-explorer-6-ie6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set a DIV to the height of your site&#8217;s page</title>
		<link>http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page</link>
		<comments>http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page#comments</comments>
		<pubDate>Mon, 04 Jan 2010 16:30:53 +0000</pubDate>
		<dc:creator>Samuel Page</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[DIV Height]]></category>

		<guid isPermaLink="false">http://www.samuelpage.co.uk/blog/?p=18</guid>
		<description><![CDATA[
Ever wanted to add a semi-transparent overlay to your site, but can't get the div to be the complete height of your page across different browsers?
This bit of JavaScript should do the trick:

function zxcBdyWH&#40;&#41;&#123; if &#40;document.body.scrollHeight&#38;gt;document.body.offsetHeight&#41; return 
&#91;document.body.scrollWidth,document.body.scrollHeight&#93;; // all but Explorer Mac return 
&#91;document.body.offsetWidth,document.body.offsetHeight&#93;; // Explorer Mac; }

This basically works out the total height [...]]]></description>
			<content:encoded><![CDATA[
<p>Ever wanted to add a semi-transparent overlay to your site, but can't get the div to be the complete height of your page across different browsers?</p>
<p>This bit of JavaScript should do the trick:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> zxcBdyWH<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">body</span>.<span style="color: #660066;">scrollHeight</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>document.<span style="color: #660066;">body</span>.<span style="color: #660066;">offsetHeight</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> 
<span style="color: #009900;">&#91;</span>document.<span style="color: #660066;">body</span>.<span style="color: #660066;">scrollWidth</span><span style="color: #339933;">,</span>document.<span style="color: #660066;">body</span>.<span style="color: #660066;">scrollHeight</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// all but Explorer Mac return </span>
<span style="color: #009900;">&#91;</span>document.<span style="color: #660066;">body</span>.<span style="color: #660066;">offsetWidth</span><span style="color: #339933;">,</span>document.<span style="color: #660066;">body</span>.<span style="color: #660066;">offsetHeight</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Explorer Mac; }</span></pre></div></div>

<p>This basically works out the total height of your page, then onload set the height of your div (using the correct ID) the the height of the page:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;body onload=&quot;document.getElementById('overlay').style.height=zxcBdyWH()[1]+'px';&quot;&gt;</pre></div></div>

<p>This is necessary in all brosers, but particularly useful in Internet Explorer 6!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;t=How+to+set+a+DIV+to+the+height+of+your+site%27s+page" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+set+a+DIV+to+the+height+of+your+site%27s+page+-+http://b2l.me/wa8rq&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;title=How+to+set+a+DIV+to+the+height+of+your+site%27s+page&amp;summary=Ever%20wanted%20to%20add%20a%20semi-transparent%20overlay%20to%20your%20site%2C%20but%20can%27t%20get%20the%20div%20to%20be%20the%20complete%20height%20of%20your%20page%20across%20different%20browsers%3F%0D%0A%0D%0AThis%20bit%20of%20JavaScript%20should%20do%20the%20trick%3A%0D%0A%0D%0Afunction%20zxcBdyWH%28%29%7B%20if%20%28document.body.scrollHeight%26gt%3Bdocument.body.offsetHeight%29%20return%20%0D%0A%5Bdocument.&amp;source=Samuel Page" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;title=How+to+set+a+DIV+to+the+height+of+your+site%27s+page" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;title=How+to+set+a+DIV+to+the+height+of+your+site%27s+page" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;n=How+to+set+a+DIV+to+the+height+of+your+site%27s+page&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;title=How+to+set+a+DIV+to+the+height+of+your+site%27s+page" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;bm_description=How+to+set+a+DIV+to+the+height+of+your+site%27s+page&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;title=How+to+set+a+DIV+to+the+height+of+your+site%27s+page" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page&amp;title=How+to+set+a+DIV+to+the+height+of+your+site%27s+page" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>


]]></content:encoded>
			<wfw:commentRss>http://www.samuelpage.co.uk/how-to-set-a-div-to-the-height-of-your-sites-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing vertical scroll bars in Firefox</title>
		<link>http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox</link>
		<comments>http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox#comments</comments>
		<pubDate>Fri, 01 Jan 2010 15:00:37 +0000</pubDate>
		<dc:creator>Samuel Page</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Scrollbar]]></category>

		<guid isPermaLink="false">http://www.samuelpage.co.uk/blog/?p=6</guid>
		<description><![CDATA[
By default Firefox doesn't have the vertical scroll bar visible unless the page requires it.
On site where some pages need the scroll bar, but others don't this can make centered content appear to jump slightly to the left / right as the scroll bar is introduced and taken away.
Here's a nice CSS trick to force [...]]]></description>
			<content:encoded><![CDATA[
<p>By default Firefox doesn't have the vertical scroll bar visible unless the page requires it.</p>
<p>On site where some pages need the scroll bar, but others don't this can make centered content appear to jump slightly to the left / right as the scroll bar is introduced and taken away.</p>
<p>Here's a nice CSS trick to force Firefox (and other browsers) to always show the scroll bar, even if it isn't required:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html <span style="color: #00AA00;">&#123;</span>overflow-y<span style="color: #00AA00;">:</span><span style="color: #993333;">scroll</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>It's worth noting that this will prevent your CSS from validating - W3C returns the following message:</p>
<blockquote><p>Property overflow-y doesn't exist in CSS level 2.1 but exists in  : scroll                                                                                    scroll</p></blockquote>
<p>Credit goes to <a href="http://freizl.blogspot.com/2008/01/force-vertical-scroll-bar-in-firefox.html" target="_blank">http://freizl.blogspot.com/2008/01/force-vertical-scroll-bar-in-firefox.html</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;t=Forcing+vertical+scroll+bars+in+Firefox" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Forcing+vertical+scroll+bars+in+Firefox+-+http://b2l.me/wa87y&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;title=Forcing+vertical+scroll+bars+in+Firefox&amp;summary=By%20default%20Firefox%20doesn%27t%20have%20the%20vertical%20scroll%20bar%20visible%20unless%20the%20page%20requires%20it.%0D%0A%0D%0AOn%20site%20where%20some%20pages%20need%20the%20scroll%20bar%2C%20but%20others%20don%27t%20this%20can%20make%20centered%20content%20appear%20to%20jump%20slightly%20to%20the%20left%20%2F%20right%20as%20the%20scroll%20bar%20is%20introduced%20and%20taken%20away.%0D%0A%0D%0AHere%27s%20a%20nice%20C&amp;source=Samuel Page" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;title=Forcing+vertical+scroll+bars+in+Firefox" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;title=Forcing+vertical+scroll+bars+in+Firefox" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;n=Forcing+vertical+scroll+bars+in+Firefox&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;title=Forcing+vertical+scroll+bars+in+Firefox" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;bm_description=Forcing+vertical+scroll+bars+in+Firefox&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;title=Forcing+vertical+scroll+bars+in+Firefox" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox&amp;title=Forcing+vertical+scroll+bars+in+Firefox" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>


]]></content:encoded>
			<wfw:commentRss>http://www.samuelpage.co.uk/forcing-vertical-scroll-bars-in-firefox/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

