<?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; CSS</title>
	<atom:link href="http://www.sambeauvois.be/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sambeauvois.be/blog</link>
	<description>general dev, .net and other stuff</description>
	<lastBuildDate>Tue, 27 Jul 2010 07:23:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 HTML page without [...]]]></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;">
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;">
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;">
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>0</slash:comments>
		</item>
		<item>
		<title>CSS Mixer</title>
		<link>http://www.sambeauvois.be/blog/2010/02/css-mixer/</link>
		<comments>http://www.sambeauvois.be/blog/2010/02/css-mixer/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 22:41:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=207</guid>
		<description><![CDATA[ Css mixer is a tool I&#8217;ve developped in C# winforms, .NET framework 3.5
You can use it to improve you ASP.NET Themes or your CSS files for all your web projects.
If you have many css files linked to a page, you can group them in a single file with CSS Mixer.
You can also minify CSS files [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cssmixer.codeplex.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/cssmixer.codeplex.com/?referer=');"><img class="alignleft size-full wp-image-206" title="CSSmixer128" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/CSSmixer128.png" alt="CSSmixer128" width="128" height="128" /></a> Css mixer is a tool I&#8217;ve developped in C# winforms, .NET framework 3.5</p>
<p>You can use it to improve you ASP.NET Themes or your CSS files for all your web projects.</p>
<p>If you have many css files linked to a page, you can group them in a single file with CSS Mixer.</p>
<p>You can also minify CSS files to save the bandwith.</p>
<p> </p>
<p>To use it, open a folder containing CSS files,</p>
<p style="text-align: center;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/cssmixer_screenshot.png" target="_blank"><img class="aligncenter size-full wp-image-208" title="cssmixer_screenshot" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/cssmixer_screenshot.png" alt="cssmixer_screenshot" width="480" /></a></p>
<p>choose an action (simple combine, or combine and minify) then click Save as &#8230;</p>
<p style="text-align: center;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/cssmixer_screenshot2.png" target="_blank"><img class="aligncenter size-full wp-image-209" title="cssmixer_screenshot2" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/cssmixer_screenshot2.png" alt="cssmixer_screenshot2" width="480" /></a></p>
<p>Download the last version of <a href="http://cssmixer.codeplex.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/cssmixer.codeplex.com/?referer=');">CSS Mixer on codeplex</a>.</p>
<p>I hope you&#8217;ll find it usefull. please give me feedback on it</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/02/css-mixer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build a “visible on hover” action menu with CSS?</title>
		<link>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-%e2%80%9cvisible-on-hover%e2%80%9d-action-menu-with-css/</link>
		<comments>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-%e2%80%9cvisible-on-hover%e2%80%9d-action-menu-with-css/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 19:44:41 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=193</guid>
		<description><![CDATA[In my previous post I explain a way to build a &#8220;visible on hover&#8221; menu using jQuery.
Now, I&#8217;ll explain you how to do that without javascript, using only CSS.
First, built the web page and a CSS file


&#60;html&#62;
 &#60;head&#62;
 &#60;title&#62;Sam Beauvois &#124; CSS on hover menu&#60;/title&#62;
 &#60;link href=&#34;demo.css&#34; type=&#34;text/css&#34; rel=&#34;stylesheet&#34; /&#62;
 &#60;/head&#62;

 &#60;body&#62;
 &#60;h2&#62;Visible on hover [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post I explain a way to <a href="http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-jquery/" target="_blank">build a &#8220;visible on hover&#8221; menu using jQuery</a>.</p>
<p>Now, I&#8217;ll explain you how to do that without javascript, using only CSS.</p>
<p>First, built the web page and a CSS file</p>
<pre class="brush: xml;">

&lt;html&gt;
 &lt;head&gt;
 &lt;title&gt;Sam Beauvois | CSS on hover menu&lt;/title&gt;
 &lt;link href=&quot;demo.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;
 &lt;/head&gt;

 &lt;body&gt;
 &lt;h2&gt;Visible on hover with CSS demo.&lt;h2&gt;
 &lt;h3&gt;Please put you mouse hover the following texts&lt;/h3&gt;

 &lt;div&gt;
 Demo 1
 &lt;div&gt;
 &lt;a href=&quot;#&quot;&gt;action 1&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 2&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 3&lt;/a&gt;
 &lt;/div&gt;
 &lt;/div&gt;

&lt;/body&gt;
</pre>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_1.png"><img class="aligncenter size-full wp-image-195" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_1.png" alt="20100207_visibleOnHover_CSS_1" width="403" height="278" /></a>Then add a class to the container and content divs</p>
<pre class="brush: xml;">&lt;/pre&gt;
&lt;div class=&quot;hidden_action_container&quot;&gt;
Demo 1
&lt;div class=&quot;hidden_action&quot;&gt;
&lt;a href=&quot;#&quot;&gt;action 1&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 2&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 3&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;pre&gt;</pre>
<p>And define the classes in the CSS file :</p>
<pre class="brush: css;">

.hidden_action_container .hidden_action
{
 display: none;
}
.hidden_action_container:hover .hidden_action
{
 display:inline;
}
</pre>
<p>note the class declaration :</p>
<pre>.hidden_action_container<strong><span style="text-decoration: underline">:hover</span></strong> .hidden_action</pre>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_2.png"><img class="aligncenter size-full wp-image-197" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_2.png" alt="20100207_visibleOnHover_CSS_2" width="378" height="239" /></a><br />
<strong>Now it&#8217;s functionnal</strong>,</p>
<p>Add a style to make it nicer :</p>
<pre class="brush: css;">
.hidden_action_container
{
 padding : 15px 15px 15px 15px;
 background-color: #DDDDDD;
 border-style:solid;
 border-color:#EEEEEE;
 height:50px;
}

.hidden_action_container .hidden_action a
{
 color:#999999;
 font-size: 20px;
 font-weight:bolder;
}

.hidden_action_container .hidden_action
{
 display: none;
}
.hidden_action_container:hover .hidden_action
{
 display:inline;
}
</pre>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_3.png"><img class="aligncenter size-full wp-image-198" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_3.png" alt="20100207_visibleOnHover_CSS_3" width="387" height="447" /></a>You can see the online demo here : <a href="http://www.sambeauvois.be/Demos/CSS/VisibleOnHover/demo.html" target="_blank">http://www.sambeauvois.be/Demos/CSS/VisibleOnHover/demo.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-%e2%80%9cvisible-on-hover%e2%80%9d-action-menu-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
