<?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>Sam Beauvois &#187; HTML</title>
	<atom:link href="http://www.sambeauvois.be/blog/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sambeauvois.be/blog</link>
	<description>general dev, .net and other stuff</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:38:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>How to set two background images for an HTML page ?</title>
		<link>http://www.sambeauvois.be/blog/2010/06/how-to-set-two-background-images-for-an-html-page/</link>
		<comments>http://www.sambeauvois.be/blog/2010/06/how-to-set-two-background-images-for-an-html-page/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 07:50:26 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Images]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=414</guid>
		<description><![CDATA[The other day I was wondering how could I set two background images for an HTML page and I came with one solution. I don&#8217;t know if it&#8217;s the best way to do that but it worked as I wanted. To explain the solution, here is the complete steps I made First I had an [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I was wondering how could I set two background images for an HTML page and I came with one solution.<br />
I don&#8217;t know if it&#8217;s the best way to do that but it worked as I wanted.</p>
<p>To explain the solution, here is the complete steps I made</p>
<p>First I had an HTML page without any background:</p>
<p style="text-align: center;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/Beach_withoutBackground1.jpg" target="_blank"><img class="aligncenter size-medium wp-image-420" title="Beach_withoutBackground" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/Beach_withoutBackground1-480x263.jpg" alt="Beach_withoutBackground" width="480" height="263" /></a></p>
<p>Then I added some CSS to set a background image :</p>
<p style="text-align: center;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/bg.gif" target="_blank"><img class="aligncenter size-medium wp-image-421" title="bg" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/bg-480x385.gif" alt="bg" width="480" height="385" /></a></p>
<pre class="brush: css; title: ;">
body
{
   background:url(&quot;img/bg.gif&quot;) no-repeat fixed left top #9AE4E8;
}
</pre>
<p style="text-align: left;">The result was good :<br />
<a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/Beach_OneBackground.jpg" target="_blank"><img class="aligncenter size-medium wp-image-422" title="Beach_OneBackground" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/Beach_OneBackground-480x266.jpg" alt="Beach_OneBackground" width="480" height="266" /></a><br />
But I wanted to add a second background image on the right bottom :<br />
<a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/logobeachrahier_medium.png" target="_blank"><img class="aligncenter size-medium wp-image-423" title="logobeachrahier_medium" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/logobeachrahier_medium-480x580.png" alt="logobeachrahier_medium" width="480" height="580" /></a><br />
So I moved my background declaration for the head part of the html file</p>
<pre class="brush: css; title: ;">
html
{
 background:url(&quot;img/bg.gif&quot;) no-repeat fixed left top #9AE4E8;
}
</pre>
<p>and I added an other background declaration for the body part</p>
<pre class="brush: css; title: ;">
body
{
 background:url(&quot;img/logobeachrahier_medium.png&quot;) no-repeat fixed right bottom ;
}
</pre>
<p>The background declared for the body is applied over the html one:</p>
<p style="text-align: left;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/Beach_TwoBackground.jpg" target="_blank"><img class="aligncenter size-medium wp-image-424" title="Beach_TwoBackground" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/06/Beach_TwoBackground-480x264.jpg" alt="Beach_TwoBackground" width="480" height="264" /></a><br />
I think it&#8217;s Pretty good now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/06/how-to-set-two-background-images-for-an-html-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

