<?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>Table4 Blog &#124; Liverpool Web Design &#187; CSS</title>
	<atom:link href="http://www.table4.com/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.table4.com/blog</link>
	<description>Liverpool Based Web Design and Development Company Blog</description>
	<lastBuildDate>Thu, 04 Mar 2010 14:47:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS Fix: background image problem for centralised layout</title>
		<link>http://www.table4.com/blog/2009/07/03/css-center-website/</link>
		<comments>http://www.table4.com/blog/2009/07/03/css-center-website/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 17:06:42 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.table4.com/blog/?p=99</guid>
		<description><![CDATA[Ok, here&#8217;s the problem. You got a centralised page layout, and a funky background image attached to either the page body or somekind of wrapper. It looks great until you start stretching your browser window back and forth, or you begin trying out different resolutions&#8230; at which point the bg image is no longer central [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, here&#8217;s the problem. You got a centralised page layout, and a funky background image attached to either the page body or somekind of wrapper. It looks great until you start stretching your browser window back and forth, or you begin trying out different resolutions&#8230; at which point the bg image is no longer central to the rest of layout.</p>
<p>Here&#8217;s what ya do:</p>
<p>body, .wrapper<br />
{<br />
background: #whatever url(whatever.jpg) repeat-x center top;<br />
/* the magic&#8230; */<br />
width: 100%;<br />
display: table;<br />
}</p>
<p>Spread the love.</p>



Share and Enjoy:


	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F&amp;title=CSS%20Fix%3A%20background%20image%20problem%20for%20centralised%20layout" title="Digg"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F&amp;title=CSS%20Fix%3A%20background%20image%20problem%20for%20centralised%20layout" title="del.icio.us"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F&amp;t=CSS%20Fix%3A%20background%20image%20problem%20for%20centralised%20layout" title="Facebook"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F&amp;title=CSS%20Fix%3A%20background%20image%20problem%20for%20centralised%20layout" title="Google"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F&amp;t=CSS%20Fix%3A%20background%20image%20problem%20for%20centralised%20layout" title="MySpace"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F&amp;title=CSS%20Fix%3A%20background%20image%20problem%20for%20centralised%20layout" title="Reddit"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F" title="TwitThis"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F&amp;submitHeadline=CSS%20Fix%3A%20background%20image%20problem%20for%20centralised%20layout&amp;submitSummary=Ok%2C%20here%27s%20the%20problem.%20You%20got%20a%20centralised%20page%20layout%2C%20and%20a%20funky%20background%20image%20attached%20to%20either%20the%20page%20body%20or%20somekind%20of%20wrapper.%20It%20looks%20great%20until%20you%20start%20stretching%20your%20browser%20window%20back%20and%20forth%2C%20or%20you%20begin%20trying%20out%20dif&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/yahoobuzz.gif" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.table4.com%2Fblog%2F2009%2F07%2F03%2Fcss-center-website%2F&amp;title=CSS%20Fix%3A%20background%20image%20problem%20for%20centralised%20layout&amp;source=Table4+Blog+%7C+Liverpool+Web+Design+Liverpool+Based+Web+Design+and+Development+Company+Blog&amp;summary=Ok%2C%20here%27s%20the%20problem.%20You%20got%20a%20centralised%20page%20layout%2C%20and%20a%20funky%20background%20image%20attached%20to%20either%20the%20page%20body%20or%20somekind%20of%20wrapper.%20It%20looks%20great%20until%20you%20start%20stretching%20your%20browser%20window%20back%20and%20forth%2C%20or%20you%20begin%20trying%20out%20dif" title="LinkedIn"><img src="http://www.table4.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.table4.com/blog/2009/07/03/css-center-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
