<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>raphael haefeli | portland, oregon freelance web design and development</title>
	
	<link>http://www.raphaelhaefeli.com</link>
	<description>Home of Raphael Haefeli</description>
	<lastBuildDate>Wed, 11 Aug 2010 22:56:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/raphaelhaefeli" /><feedburner:info uri="raphaelhaefeli" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>raphaelhaefeli</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>New project added to Portfolio</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/N0lhPNfVMdU/</link>
		<comments>http://www.raphaelhaefeli.com/news/new-project-added-to-portfolio/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 22:56:30 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=377</guid>
		<description><![CDATA[My newest project, Little Isabella has gone live. The site features a blog and photo galleries for family and friends. Site is for members only and can be previewed at my Portfolio page or visited at www.little-isabella.com]]></description>
			<content:encoded><![CDATA[<p>My newest project, Little Isabella has gone live. The site features a blog and photo galleries for family and friends. Site is for members only and can be previewed at my <a href="/portfolio">Portfolio</a> page or visited at <a href="http://www.little-isabella.com" target="_blank">www.little-isabella.com</a><br /><br /></p><img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/N0lhPNfVMdU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/news/new-project-added-to-portfolio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/news/new-project-added-to-portfolio/</feedburner:origLink></item>
		<item>
		<title>How to Create a Elastic Thumbnail Menu with CSS and jQuery</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/XLfVotlweUw/</link>
		<comments>http://www.raphaelhaefeli.com/css-images/thumbnail-menu-css-jquery/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 06:35:09 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[CSS Images]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=352</guid>
		<description><![CDATA[I was going around the web looking for some interesting tutorials and found this one I would like to share. This is an elastic thumbnail menu which combines HTML, CSS and jQuery to create a cool zoom effect and expand upwards when an image is hovered over.

The HTML Code (plain and simple):

&#60;div id="menuwrapper"&#62;
	&#60;div id="menu"&#62;
		&#60;a href="#" [...]]]></description>
			<content:encoded><![CDATA[<p>I was going around the web looking for some interesting tutorials and found this one I would like to share. This is an elastic thumbnail menu which combines HTML, CSS and jQuery to create a cool zoom effect and expand upwards when an image is hovered over.</p>

<h3>The HTML Code (plain and simple):</h3>

<pre><code >&lt;div id="menuwrapper"&gt;
	&lt;div id="menu"&gt;
		&lt;a href="#" class="menuitem"&gt;&lt;img src="image.jpg"/&gt;&lt;/a&gt;
	&lt;/div&gt;
&lt;/div&gt;</code></pre>

<h3>The CSS Code:</h3>
<p>This menu will be a bit different from conventional menus and the when the user hovers over the thumbnail, the image will expand to the right and upwards.</p>

<p>The main piece to acheive this effect is <span class="simplecode">position:fixed;</span>, which keeps the thumbnails aligned to the bottom.</p>

<pre><code >#menuwrapper{ position:relative; height:210px; }

#menu{position:absolute; bottom:0;}

.menuitem{ position:fixed relative; bottom:0px; display:inline-block; }

img { -ms-interpolation-mode: bicubic; }</code></pre>

<p>Note that for this effect to work in Internet Explorer, we need to add <span class="simplecode">img { -ms-interpolation-mode: bicubic; }</span> to our CSS file.</p>

<h3>The jQuery Code:</h3>
<pre><code >$(document).ready(function(){
	$('.menuitem img').animate({width: 100}, 0);
    //Set all menu items to smaller size

	$('.menuitem').mouseover(function(){ //When mouse over menu item

		gridimage = $(this).find('img'); //Define target as a variable
		gridimage.stop().animate({width: 200}, 150);
    	//Animate image expanding to original size

	}).mouseout(function(){
    //When mouse no longer over menu item

		gridimage.stop().animate({width: 100}, 150);
        //Animate image back to smaller size

	});
});
</code></pre>

<h3><a href="http://www.raphaelhaefeli.com/demos/examples/elastic/index.html" target="_blank">See the demo here</a></h3>

<p>Source: <a href="http://buildinternet.com/2009/09/sproing-make-an-elastic-thumbnail-menu/" target="_blank">build internet</a></p><img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/XLfVotlweUw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/css-images/thumbnail-menu-css-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/css-images/thumbnail-menu-css-jquery/</feedburner:origLink></item>
		<item>
		<title>How to Display the Most Popular Content in Your WordPress Sidebar</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/hWVuS6_zRek/</link>
		<comments>http://www.raphaelhaefeli.com/wordpress/how-to-display-most-popular-content-wordpress-sidebar/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 06:01:34 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=338</guid>
		<description><![CDATA[

What is best way to keep your visitors entertained and make them stay longer on your blog? One way is to list the most popular content in your sidebar. The following code will display the top five posts with the most comments in your site. All you need to do is to paste the code [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.raphaelhaefeli.com/wp-content/uploads/2010/01/wp-logo.png" alt="" title="WordPress" width="64" height="64" class="alignleft size-full wp-image-346" />

<p>What is best way to keep your visitors entertained and make them stay longer on your blog? One way is to list the most popular content in your sidebar. The following code will display the top five posts with the most comments in your site. All you need to do is to paste the code below into your sidebar.php file and you are good to go.</p>
<pre>
<code >&lt;h2&gt;Popular Posts:&lt;/h2&gt;
&lt;ul&gt;
&lt; ?php $result = $wpdb-&gt;get_results
("SELECT comment_count,ID,post_title FROM $wpdb-&gt;posts ORDER BY comment_count DESC
 LIMIT 0 , 5");
foreach ($result as $post) {
setup_postdata($post);
$postid = $post-&gt;ID;
$title = $post-&gt;post_title;
$commentcount = $post-&gt;comment_count;
if ($commentcount != 0) { ?&gt;
&lt;li&gt;&lt;a href="&lt;?php echo get_permalink($postid); ?&gt;" title="&lt; ?php echo $title ?&gt;"&gt;
&lt; ?php echo $title ?&gt;&lt;/a&gt; {&lt; ?php echo $commentcount ?&gt;}&lt;/li&gt;
&lt; ?php } } ?&gt;
&lt;/ul&gt;</code>
</pre>
<p>Credit: <a href="http://www.wprecipes.com/how-to-display-your-most-popular-content-in-your-blog-sidebar" target="_blank">WPRecipes</a></p><img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/hWVuS6_zRek" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/wordpress/how-to-display-most-popular-content-wordpress-sidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/wordpress/how-to-display-most-popular-content-wordpress-sidebar/</feedburner:origLink></item>
		<item>
		<title>Create a “Share on Facebook” Button for Your WordPress Blog</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/EwUdz4AumNQ/</link>
		<comments>http://www.raphaelhaefeli.com/wordpress/create-a-share-on-facebook-button-for-wordpress/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 06:31:32 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=308</guid>
		<description><![CDATA[

A few weeks ago I posted the article Create a “Send to Twitter” button for your WordPress
blog, in which you can create a button that will share what you are reading with your followers. 

This week I will show you how you can add a “Share on Facebook” button in your WordPress blog to bring [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.raphaelhaefeli.com/wp-content/uploads/2010/01/facebook_64.png" alt="" title="Facebook" width="64" height="64" class="alignleft size-full wp-image-321" />

<p>A few weeks ago I posted the article Create a “<a href="http://www.raphaelhaefeli.com/wordpress/create-a-send-to-twitter-button-for-wordpress/">Send to Twitter</a>” button for your WordPress
blog, in which you can create a button that will share what you are reading with your followers. </p>

<p>This week I will show you how you can add a “Share on Facebook” button in your WordPress blog to bring in more visitors.
This is very simple, just like the Twitter button tutorial.</p>

<p>Open your single post file (single.php) file from your theme directory and insert the following code within the loop:</p>

<pre><code >&lt;a href="http://www.facebook.com/sharer.php?u=&lt;?php the_permalink();?&gt;
&amp;t=&lt; ?php the_title(); ?&gt;" target="_blank"&gt;Share on Facebook&lt;/a&gt;</code></pre>

<p>To make things more interesting, you can use <span class="simplecode">getTinyUrl()</span> function to send a short URL to Facebook:</p>

<pre><code >&lt; ?php $turl = getTinyUrl(get_permalink($post-&gt;ID)); ?&gt;
&lt;a href="http://www.facebook.com/sharer.php?u=&lt;?php echo $turl;?&gt;&amp;t=
&lt; ?php the_title(); ?&gt;" target="_blank"&gt;Share on Facebook&lt;/a&gt;</code></pre>

<p>That&#8217;s it! Now your readers will able to share your posts in their Facebook. This is a great way to boost your site&#8217;s traffic!</p>

<p>Source: <a href="http://www.wprecipes.com/how-to-add-a-share-on-facebook-link-to-your-wordpress-blog" target=" _blank">WPRecipes</a></p><img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/EwUdz4AumNQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/wordpress/create-a-share-on-facebook-button-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/wordpress/create-a-share-on-facebook-button-for-wordpress/</feedburner:origLink></item>
		<item>
		<title>Refer a Friend and Get a $25 Visa Gift Ceritificate</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/2UQUwbWMkhs/</link>
		<comments>http://www.raphaelhaefeli.com/news/refer-a-friend/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 16:17:39 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[promo]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=250</guid>
		<description><![CDATA[Would you like to score some free cash? Starting today, January 18th, 2010 I am offering a $25 Visa gift certificate for friend referrals. That&#8217;s right, if you refer a friend and the person hires me you will receive a $25 Visa gift certificate!
]]></description>
			<content:encoded><![CDATA[<p>Would you like to score some free cash? Starting today, January 18<sup>th</sup>, 2010 I am offering a $25 Visa gift certificate for friend referrals. That&#8217;s right, if you refer a friend and the person hires me you will receive a $25 Visa gift certificate!</p>
<p><a href="http://www.raphaelhaefeli.com/contact/refer-friend"><img src="http://www.raphaelhaefeli.com/wp-content/uploads/2010/01/promo-visa.jpg" alt="" title="Refer a Friend and get a $25 Visa gift certificate" width="615" height="200" class="aligncenter size-full wp-image-304" /></a></p><img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/2UQUwbWMkhs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/news/refer-a-friend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/news/refer-a-friend/</feedburner:origLink></item>
		<item>
		<title>CSS Fixed Menu – Pinned-Down Style</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/B8PzlWCnhB4/</link>
		<comments>http://www.raphaelhaefeli.com/css/css-fixed-menu-pinned-down/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 07:10:56 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=217</guid>
		<description><![CDATA[CSS is such a simple, but powerful mechanism for adding style to websites which makes your design options infinite. One of the most common uses of CSS is to create nice looking and useful menus for websites. We can create all kinds of different styles for menus: Horizontal, vertical, with drop down boxes, etc.

Pinned-Down Style

There&#8217;s [...]]]></description>
			<content:encoded><![CDATA[CSS is such a simple, but powerful mechanism for adding style to websites which makes your design options infinite. One of the most common uses of CSS is to create nice looking and useful menus for websites. We can create all kinds of different styles for menus: Horizontal, vertical, with drop down boxes, etc.

<h3>Pinned-Down Style</h3>

There&#8217;s another technique that I found to be very interesting and pretty cool to apply to our menus. It&#8217;s called Pinned-Down Style. Our menu is going to be in a fixed position on the page and when the user scrolls up and down the menu will float over the page at the position we defined.

<h3>The XHTML Code:</h3>

<pre><code >
...
&lt;body&gt;

&lt;div class="banner"&gt;
    &lt;p&gt;
        &lt;a href="#"&gt;Home&lt;/a&gt;
        &lt;a href="#"&gt;About Us&lt;/a&gt;
        &lt;a href="#"&gt;Our Activities&lt;/a&gt;
        &lt;a href="#"&gt;Contact Us&lt;/a&gt;
        &lt;a href="#/"&gt;Site Map&lt;/a&gt;
        &lt;a href="#"&gt;Privacy&lt;/a&gt;
        &lt;a href="#"&gt;Links&lt;/a&gt;
        &lt;a href="#"&gt;Our Partners&lt;/a&gt;
        &lt;a href="#"&gt;Articles&lt;/a&gt;
    &lt;/p&gt;
&lt;/div&gt;
...

&lt;/body&gt;</code></pre>

This is just a paragraph with links that we are going to style with CSS. We can see the final result after we apply the following CSS code:

<h3>The CSS Code:</h3>

<pre><code >
div.banner {
	margin: 0;
	font-size: 100% /*adjust to make the menu larger or smaller*/;
	font-weight: bold;
	line-height: 1.1;
	text-align: center;
	position: fixed;
	top: 2em;
	left: auto;
	width: 8.5em;
	right: 2em;
}

div.banner p {
	margin: 0;
	padding: 0.3em 0.4em;
	font-family: Arial, sans-serif;
	background: #990000;
	border: thin outset #000;
	color: white;
}

div.banner a, div.banner em { display: block; margin: 0 0.5em }
div.banner a, div.banner em { border-top: 2px groove #CCC }
div.banner a:first-child { border-top: none }
div.banner em { color: #CFC }

div.banner a:link { text-decoration: none; color: white }
div.banner a:visited { text-decoration: none; color: #CCC }
div.banner a:hover { background: black; color: white }
</code></pre>

<h3>Summary</h3>

This is a good technique for a website that has a lot of content. It enables the user to access the menu quickly instead of having to scroll up the page to access the menu in order to navigate the site. What makes this work are the the 2 following rules: <span class="simplecode">position: fixed;</span> which causes the menu to be in a fixed position, and the <span class="simplecode">display: block;</span> that makes the <span class="simplecode">a</span> elements inside the menu to be displayed as block elements causing them to display one below the other.

It would be a good idea to place the XHTML code for the menu at the top of all the content, right below the opening <span class="simplecode">body</span> tag for organization purposes.

That&#8217;s it. Pretty simple. Play around with these settings and find the best design for your needs!

<h3>Examples:</h3>

<a href="/demos/examples/fixed_menu/">Click here see an example.</a>


<h3>Credits:</h3>


<a href="http://www.w3.org/Style/Examples/007/menus" target="_blank">W3C: CSS Fixed Menus</a><img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/B8PzlWCnhB4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/css/css-fixed-menu-pinned-down/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/css/css-fixed-menu-pinned-down/</feedburner:origLink></item>
		<item>
		<title>Create a “Send to Twitter” button for your WordPress blog</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/JS2uTpn4tH4/</link>
		<comments>http://www.raphaelhaefeli.com/wordpress/create-a-send-to-twitter-button-for-wordpress/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 17:20:13 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=182</guid>
		<description><![CDATA[

Do you use Twitter on a daily basis? If so, you know how good Twitter is for sharing with everyone what you find interesting around the web. Here&#8217;s a great way to give your readers a chance to share your Wordpress blog posts with their friends and bring more visitors to you.

This is a very [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.raphaelhaefeli.com/wp-content/uploads/2010/01/twitter_logo1-e1262971116544.png" alt="" title="Twitter" width="400" height="94" class="aligncenter size-full wp-image-193" />
<br />
<p>Do you use Twitter on a daily basis? If so, you know how good Twitter is for sharing with everyone what you find interesting around the web. Here&#8217;s a great way to give your readers a chance to share your Wordpress blog posts with their friends and bring more visitors to you.</p><p>

</p><p>This is a very simple Worpress hack where you will create a link to Twitter with a status parameter. We will use the function <span class="simplecode">the_permalink()</span> to get the page URL:</p>

<pre><code >&lt;a href="http://twitter.com/home?status=Currently reading &lt;?php the_permalink();?&gt;"
title="Click to send this page to Twitter!" target="_blank"&gt;Share on Twitter&lt;/a&gt;</code></pre>

<p>You can add this line of code to your single post file (single.php) in order to display it on each individual post and also add it to your main index template (index.php) to display under each post title in the blog&#8217;s index page. </p>

<p>Source: <a href="http://www.wprecipes.com/how-to-create-a-send-this-to-twitter-button" target="_blank">How to: Create a “Send this to Twitter” button</a>.

</p><p>Enjoy!</p><img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/JS2uTpn4tH4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/wordpress/create-a-send-to-twitter-button-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/wordpress/create-a-send-to-twitter-button-for-wordpress/</feedburner:origLink></item>
		<item>
		<title>Amuse Resort Wear website is launched!</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/xTKAin0BQu0/</link>
		<comments>http://www.raphaelhaefeli.com/news/amuse-resort-wear-website-is-launched-2/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 07:44:06 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=174</guid>
		<description><![CDATA[My latest project has just gone live. Amuse Resort Wear is a start-up company based in Portland, Oregon dedicated in serving women with design fashion from the world&#8217;s most exciting vacation places. The simple site now serves as an online presence with many more features to come. Check them out at www.amuseresortwear.com!]]></description>
			<content:encoded><![CDATA[My latest project has just gone live. Amuse Resort Wear is a start-up company based in Portland, Oregon dedicated in serving women with design fashion from the world&#8217;s most exciting vacation places. The simple site now serves as an online presence with many more features to come. Check them out at <a href="http://www.amuseresortwear.com" target="_blank">www.amuseresortwear.com</a>!<img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/xTKAin0BQu0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/news/amuse-resort-wear-website-is-launched-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/news/amuse-resort-wear-website-is-launched-2/</feedburner:origLink></item>
		<item>
		<title>3 Simple CSS Tips you Should Know</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/As4xXNJJ_G4/</link>
		<comments>http://www.raphaelhaefeli.com/techniques/3-simple-css-tips-you-should-know/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 06:59:37 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=153</guid>
		<description><![CDATA[1. CSS Short-Hand Code: 

When writing your CSS, you may want include many properties that could make your CSS code a bit messy. You can solve this problem by using CSS short-hand code to make your code neat and clean. The most common CSS properties that allow you to use short-hand code are font, margin, [...]]]></description>
			<content:encoded><![CDATA[<h3>1. CSS Short-Hand Code: </h3>

<p>When writing your CSS, you may want include many properties that could make your CSS code a bit messy. You can solve this problem by using CSS short-hand code to make your code neat and clean. The most common CSS properties that allow you to use short-hand code are font, margin, padding, background and border. The properties must be put into a specific order for your web browser to read them.</p>

<p>In the examples below you can see how much shorter and simpler your code can get:</p>

<p><strong>Font:</strong></p>

<pre><code>#some-div{
font-family: Helvetica, Arial, Sans-Serif;
font-style: oblique; 
font-weight: bold; 
font-size: 16px; 
}

#some-div{
font: oblique bold 16px Helvetica, Arial, Sans-Serif;
}</code></pre>

<p><strong>Margin/Padding Properties:</strong></p>

<p>This example also shows how to use the short-hand code for margin and the short-hand CSS for padding works the same, just replace margin with padding. </p>

<pre><code>#some-div{
margin-top: 5px; margin-right: 10px; margin-bottom: 20px; margin-left: 15px;
}

#some-div{
margin: 5px 10px 20px 15px;
}
</code></pre>

<p>If your top and bottom have the same margin and the left and right have the same margin you can use the code below. This also works the same for padding.</p>

<pre><code>#some-div{
margin-top: 10px; margin-right: 30px; margin-bottom: 10px; margin-left: 30px;
}

#some-div{
margin: 10px 30px;
}</code></pre>

<p><strong>Background Property</strong></p>

<pre><code>#some-div{
background-color: #000;
background-image: url(image.jpg);
background-position: left top;
background-repeat: no-repeat;
}

#some-div{
background: #000 url(image.jpg) top left no-repeat;
}</code></pre>

<p><strong>Border Property</strong></p>

<pre><code>#some-div{
border-width: 2px; border-style: solid; border-color: #000;
}

#some-div{
border: 2px solid #000;
}</code></pre>

<p>You can also use this short-hand CSS with border-top, border-right, border-left, and border-bottom.</p>

<pre><code>#some-div{
border-top: 2px; border-right: 5px; border-left: 10px; border-bottom: 3px;
}

#some-div{
border: 2px 5px 10px 3px;
}</code></pre>


<h3>2. Multiple classes together in one element</h3>

If you want to apply multiple classes to a certain element of your page, you can combine them as shown in the example below. All you need is to separate the classes with a space and voilá. Remember that CSS cascades so if you have the same properties in your second class as your first it will be overwritten by your second.

<pre><code >&lt;div class="classOne classTwo"&gt;content here&lt;/div&gt;</code></pre>

<h3>3. Underscore (_) and asterix (*) to hack multiple browsers</h3>

Sometimes coding for multiple browsers can be a pain as your styles can look different in each. A simple but effective solution is to add an asterix (for Internet Explorer 6 and below) or an underscore (for Internet Explorer 7 and above) in front of your property and that fixes your problems. In the example below we can have a margin-bottom property that will work differently for Firefox, Internet Explorer 6 and 7. 

<pre><code>#some-div{
margin-top: 25px; *margin-top: 20px; _margin-top: 35px;
}</code></pre>

<p>Firefox will give the element above a top margin of 25px while Internet Explorer 6 will give a 20px margin and Internet Explorer 7 a 35px margin. Pretty cool, huh?</p>

<p>Thanks for ready and please leave some feedback!</p>
<img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/As4xXNJJ_G4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/techniques/3-simple-css-tips-you-should-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/techniques/3-simple-css-tips-you-should-know/</feedburner:origLink></item>
		<item>
		<title>Raphael Haefeli v3.0 is online!</title>
		<link>http://feedproxy.google.com/~r/raphaelhaefeli/~3/onapit0LtBg/</link>
		<comments>http://www.raphaelhaefeli.com/news/raphael-haefeli-v3-0-is-online/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 19:41:43 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.raphaelhaefeli.com/?p=151</guid>
		<description><![CDATA[I&#8217;m happy to announce that the new and improved version of my website is live! The new site features a new design and social media tools for interactivity. Check it out and leave me some feedback!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m happy to announce that the new and improved version of my website is live! The new site features a new design and social media tools for interactivity. Check it out and leave me some feedback!</p><img src="http://feeds.feedburner.com/~r/raphaelhaefeli/~4/onapit0LtBg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.raphaelhaefeli.com/news/raphael-haefeli-v3-0-is-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.raphaelhaefeli.com/news/raphael-haefeli-v3-0-is-online/</feedburner:origLink></item>
	</channel>
</rss>
