<?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>PVM Garage &#187; CSS</title>
	<atom:link href="http://www.pvmgarage.com/tags/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pvmgarage.com</link>
	<description>Web Design and Development with passion. Free template, tutorials, html, css, freebies for web and graphic designer</description>
	<lastBuildDate>Tue, 08 May 2012 22:48:09 +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>Design a One Page Portfolio Site in Photoshop &#8211; Part 2 Coding</title>
		<link>http://www.pvmgarage.com/2011/11/design-a-one-page-portfolio-site-in-photoshop-part-2-coding/</link>
		<comments>http://www.pvmgarage.com/2011/11/design-a-one-page-portfolio-site-in-photoshop-part-2-coding/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 01:52:24 +0000</pubDate>
		<dc:creator>Mohammad Jeprie</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/?p=3867</guid>
		<description><![CDATA[This is second part of designing a one page portfolio tutorial series. In the first tutorial, we had created a simple and elegant Portfolio PSD mockup. Now, we&#8217;ll convert the PSD to a HTML5 and CSS3 with some jQuery goodness. Make sure you have read the first tutorial and make the design in Photoshop, or you can just grab the final PSD mockup from there.
Take a look at our PSD mockup first. Our portfolio design has a simple one column ...]]></description>
			<content:encoded><![CDATA[<p>This is second part of designing a one page portfolio tutorial series. In the first tutorial, we had created a simple and elegant Portfolio PSD mockup. Now, we&#8217;ll convert the PSD to a HTML5 and CSS3 with some jQuery goodness. Make sure you have read the first tutorial and make the design in Photoshop, or you can just grab the final PSD mockup from there.</p>
<p>Take a look at our PSD mockup first. Our portfolio design has a simple one column page with a large white-space, big and bold header, a slider to put some portfolio items, and a contact form on the footer. We&#8217;ll play around with some fancy CSS3 effects like text-shadow on the header, semi-transparent background on the navigation menu and border-radius on the portfolio slider and contact form. We&#8217;ll also use a jQuery slider plugin named <em>slides.js</em> to create the slider. Let&#8217;s get started!</p>
<h3>Final Result</h3>
<p>Click on the image below to see the final design in HTML.</p>
<p><a href="html/index.html"><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/portfolio-preview.jpg" width="600" height="554" alt="One Page Portfolio Site Preview" /></a></p>
<h3>Step 1:  File Structure</h3>
<p>Create a new directory in your computer and give it a name whatever you like. Inside this newly created directory, create another directory called <em>img</em> to put all the images that we extracted from PSD file.</p>
<p>		Grab <a href="http://slidesjs.com/">Slides.js</a> and place it inside the directory.
</p>
<h3>Step 2: Exporting the image files from PSD</h3>
<p>Before we started coding, we need to export all  the necessary images from the mockup such as background, portfolio items, and social media icon.</p>
<h4><strong>1. Background</strong></h4>
<p>Activate Zoom tool and click several times on the canvas to maximum magnification. Create a selection using crop tool. Click menu File &gt; Save for Web and Device (Ctrl + Shift + Alt + S) and save it as <em>bg.jpg</em> in the <em>img</em> directory.</p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/1.jpg" alt="" /></p>
<h4><strong>2. Slider Background</strong></h4>
<p>Head over tothe slider area and make a selection on the portfolio background using crop tool. Save it as <em>detail_bg.png</em>.</p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/2.jpg" alt="" /></p>
<h4><strong>3. Portfolio Items</strong></h4>
<p>Create selection around the portfolio image and save it as <em>items1.jpg</em>. Grab the other image by switching the layer visibility on the item and save each item as <em>items2.jpg</em> and <em>items3.jpg</em>.</p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/3.jpg" alt="" /></p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/4.jpg" alt="" /></p>
<h4><strong>4. Slider Navigation</strong></h4>
<p>First, convert the circle shape to smart object by right clicking on the layer and select Convert to Smart Object. This way, we can select the layer and its layer styles. Create guide around our newly created smart object. Make selection with crop tool along the guide. Hide background layer to get a transparent background and save it as PNG-transparent file named <em>nav.png</em>. Repeat this step on the active state circle shape, save it as <em>nav_a.png</em>.</p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/5.jpg" alt="" /></p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/5a.jpg" alt="" /></p>
<h4><strong>5. Separator</strong></h4>
<p>Merge all layers inside layer group &#8220;separator&#8221; by right clicking it and select Merge Layers. Then create guide around the merged layer. Create selection with crop tool and then hide the background layer. Save it as <em>separator.png</em>.</p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/5b.jpg" alt="" /></p>
<h4><strong>6. Social Icon</strong></h4>
<p>We will export all social icons as a single image instead of separate images, we&#8217;ll then use CSS sprite to separate the icons in the webpage. Shift the position of each icon until there are no gap between each icon, then create selection with crop tool after hiding the background layer. Save it as <em>social.png</em>.</p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/6.jpg" alt="" /></p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/7.jpg" alt="" /></p>
<h4><strong>7. Submit Button</strong></h4>
<p>Merge submit button shape and text into a single layer and then create guide around the new layer. Create selection with crop tool after hiding the background layer and save as <em>submit.png</em>.</p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/8.jpg" alt="" /></p>
<h3>Step 3: Basic Structure</h3>
<p>We&#8217;re done with the images, now grab a coffee and let&#8217;s start on the coding. Open up your favorite code editor and write our first HTML markup.</p>
<pre>&lt;!DOCTYPE HTML&gt;
&lt;html lang=&quot;en-US&quot;&gt;
&lt;head&gt;
	&lt;meta charset=&quot;UTF-8&quot;&gt;
	&lt;title&gt;My Awesome Portfolio&lt;/title&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; /&gt;
	&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot; src=&quot;slides.min.jquery.js&quot;&gt;&lt;/script&gt;
	&lt;!--[if lt IE 9]&gt;
	&lt;script src=&quot;http://html5shiv.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;
	&lt;![endif]--&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
		WebFontConfig = {
			google: { families: [ 'Lobster::latin' ] }
		};
		(function() {
			var wf = document.createElement('script');
			wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
			wf.type = 'text/javascript';
			wf.async = 'true';
			var s = document.getElementsByTagName('script')[0];
			s.parentNode.insertBefore(wf, s);
		})();
	&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Our HTML begins with typical document structure consisting of doctype, link to stylesheet file, link to jQuery slider and jQuery library from Google API, and an HTML5 hacks script for IE. We&#8217;re also embedding a google webfont, Lobster, with WebFont loader (personally I like this method because I can adjust how things look during and after font loading by defining CSS rules).</p>
<p>The CSS style begins with a simple reset to get rid the browser default style, and then some basic setting such as typography, color and background image.</p>
<pre>
/* ----- Resetting CSS ------ */

* {
	vertical-align: baseline;
	font-weight: inherit;
	font-family: inherit;
	font-style: inherit;
	font-size: 100%;
	border: 0 none;
	outline: 0;
	padding: 0;
	margin: 0;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}

/* ----- Layout ------ */

body {
	background:#c6c6c6 url(img/bg.png);
	color:#444;
	font-family:helvetica,arial,sans-serif;
}
</pre>
<h3>Step 4: The Navigation</h3>
<p>Our first element in the markup is the top navigation. We&#8217;ll use <code>&lt;nav&gt;</code> element as our navigation wrapper and then place the menu as an unordered list. Since our page is just a single page, the menu works as a shortcut to jump to element that matched with the ID&#8217;s that we specify in the menu.</p>
<pre>
&lt;nav id=&quot;top&quot;&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href=&quot;#head&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#portfolio&quot;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#about&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#contact&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/nav&gt;
</pre>
<p><strong>Step 5: CSS</strong></p>
<p>As in the mockup, our navigation menu has 37 px height and 5 px border in the bottom with a semi-transparent background. We&#8217;ll also make the navigation position static, to keep the navigation at the top of page when we scroll down the page.</p>
<pre>
nav#top {
	background:rgba(68,68,68,.5);
	filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#55444444', EndColorStr='#55444444'); /* IE specific hacks to make transparent background */
	background-clip:content-box;
	border-bottom:5px solid rgba(255,255,255,.5);
	box-shadow:0 0 5px rgba(0,0,0,.5);
	font-size:16px;
	height: 37px;
	line-height:37px;
	position:fixed;
	top:0;
	width:100%;
	z-index:100;
}
	nav#top ul {
		list-style:none;
		margin:0 auto;
		text-align:center;
		width:780px;
	}
		nav#top li {
			display:inline;
			padding:0 20px;
		}
		nav#top a {
			color:#fff;
			text-decoration:none;
		}
</pre>
<h3>Step 6: The Header</h3>
<p>The next element is the header and a short introductory sentence. The syntax is pretty simple, we&#8217;ll use a <code>&lt;header&gt;</code> element to wrap the title and tagline, and then use <code>&lt;p&gt;</code> on the introductory sentence.</p>
<pre>
&lt;header id=&quot;head&quot;&gt;
	&lt;h1&gt;&lt;a href=&quot;#&quot;&gt;John Doe&lt;/a&gt;&lt;/h1&gt;
	&lt;h2 class=&quot;desc&quot;&gt;designer by day, superhero by night&lt;/h2&gt;
&lt;/header&gt;

&lt;p class=&quot;hello&quot;&gt;I am a web and graphic designer. I design interface for web and mobile apps.&lt;/p&gt;
</pre>
<p>Our site title design have a nice 1 px border and text-shadow to make the title stand out. Fortunately, we can make this effect with just using CSS3 text-shadow. We&#8217;ll also use text-shadow to make letterpress effect on the rest of the design.</p>
<pre>
header {
	padding:102px 0 130px;
	text-align:center;
}
header h1 {
	font-family:'Lobster', Georgia, Serif;
	font-size:64px;
}
header h1 a {
	color:#fff;
	text-decoration:none;
	text-shadow:
		3px 3px 0 #444,
		1px 1px 0 #444,
		-1px 1px 0 #444,
		1px -1px 0 #444,
		-1px -1px 0 #444
	;
}
header h1:hover {
	opacity:.8;
	filter:alpha(opacity=80);
}
header h2 {
	font-size:14px;
	line-height:2;
	text-shadow:1px 1px 0 #fff;
}

p.hello {
	font-size:30px;
	font-weight:bold;
	line-height:1.2;
	margin:0 auto 100px;
	text-align:center;
	text-shadow:1px 1px 0 #fff;
	width:620px;
}
</pre>
<h3>Step 7: The Slider</h3>
<p>Now, we move to Slider section. We&#8217;ll use a <code>&lt;section&gt;</code> as a container of the slider. Inside this container we&#8217;ll place an <code>&lt;h3&gt;</code> title and a series of our slider items. Don&#8217;t forget to add separator before and after the slider.</p>
<pre>
&lt;span class=&quot;separator&quot;&gt;&lt;/span&gt;

&lt;section id=&quot;portfolio&quot;&gt;
	&lt;h3&gt;Featured Project&lt;/h3&gt;
	&lt;div class=&quot;slider&quot;&gt;
		&lt;div class=&quot;items&quot;&gt;
			&lt;figure&gt;
				&lt;img src=&quot;img/items1.jpg&quot; alt=&quot;Portfolio Items&quot; /&gt;
			&lt;/figure&gt;
			&lt;div class=&quot;details&quot;&gt;
				&lt;a href=&quot;#&quot; class=&quot;name&quot;&gt;News Icon&lt;/a&gt;
				&lt;a href=&quot;#&quot; class=&quot;category&quot;&gt;Icon Design&lt;/a&gt;
			&lt;/div&gt;
		&lt;/div&gt;
		&lt;div class=&quot;items&quot;&gt;
			&lt;figure&gt;
				&lt;img src=&quot;img/items2.jpg&quot; alt=&quot;Portfolio Items&quot; /&gt;
			&lt;/figure&gt;
			&lt;div class=&quot;details&quot;&gt;
				&lt;a href=&quot;#&quot; class=&quot;name&quot;&gt;Go Design&lt;/a&gt;
				&lt;a href=&quot;#&quot; class=&quot;category&quot;&gt;Logo Design&lt;/a&gt;
			&lt;/div&gt;
		&lt;/div&gt;
		&lt;div class=&quot;items&quot;&gt;
			&lt;figure&gt;
				&lt;img src=&quot;img/items3.jpg&quot; alt=&quot;Portfolio Items&quot; /&gt;
			&lt;/figure&gt;
			&lt;div class=&quot;details&quot;&gt;
				&lt;a href=&quot;#&quot; class=&quot;name&quot;&gt;Desain Digital&lt;/a&gt;
				&lt;a href=&quot;#&quot; class=&quot;category&quot;&gt;Web Design&lt;/a&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/section&gt;

&lt;span class=&quot;separator&quot;&gt;&lt;/span&gt;
</pre>
<p>To make the slider works, we&#8217;ll need to initialize Slidejs by adding a script inside the <code>&lt;head&gt;</code> element. Place this following script below the Google Webfont script.</p>
<pre>
$(function(){
	$(&quot;#portfolio&quot;).slides({
		container: 'slider',
		slideSpeed: 500,
		play: 4000
	});
  });
</pre>
<p>Let&#8217;s add style to the slider. Our slider container will have an 8 px rounded corner and a little shadow. We&#8217;ll also add a 70 px top and bottom padding to create large white-space. Slidejs automatically generate pagination to the slider, so we also need to style them using graphic circle from our PSD.</p>
<pre>
.separator {
	background:transparent url(img/separator.png);
	display:block;
	margin:0 auto;
	height:28px;
	width:780px;
}
section#portfolio {
	margin:0 auto;
	padding:70px 0;
	width:778px;
}
h3 {
	font-family:'Lobster', Georgia, Serif;
	font-size:36px;
	margin-bottom:25px;
	text-align:center;
	text-shadow:1px 1px 0 #fff;
}
section#portfolio .slider {
	border-radius:8px;
	box-shadow:0 0 5px rgba(0,0,0,.5);
	display:block;
	height:414px;
	width:778px;
	margin-bottom:30px;
}
section#portfolio .items {
	background:#444;
	border-radius:8px;
	border:5px solid #fff;
	margin-bottom:30px;
	height:404px;
	width:768px;
}
section#portfolio .items figure img {
	display:block;
}
section#portfolio .items .details {
	background:#7e7e7e url(img/detail_bg.png);
	height:49px;
	line-height:55px;
}
section#portfolio .items .details a {
	color:#fff;
	font-size:16px;
	font-weight:bold;
	text-decoration:none;
	text-shadow: 1px 1px 1px rgba(0,0,0,.5);
}
section#portfolio .items .details a.name {
	float:left;
	margin-left:10px;
}
section#portfolio .items .details a.category {
	float:right;
	margin-right:10px;
}
ul.pagination {
	list-style:none;
	text-align:center;
}
ul.pagination li {
	display:inline-block;
}
ul.pagination li a {
	background:transparent url(img/nav.png);
	display:block;
	height:18px;
	margin:0 5px;
	width:15px;
	text-indent:-9999px;
}
ul.pagination li.current a {
	background:transparent url(img/nav_a.png);
}
</pre>
<p>Here&#8217;s a preview of our current work.</p>
<p><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/9.jpg" alt="" /></p>
<h3>Step 8: About Section</h3>
<p>We&#8217;re done with the slider, so let&#8217;s jump to About Section. We&#8217;ll use <code>&lt;section&gt;</code> again as the wrapper of the content and place some text and social media link inside the wrapper. Don&#8217;t forget to place separator after the section.
</p>
<pre>
&lt;section id=&quot;about&quot;&gt;
	&lt;h3&gt;Meet The Hero&lt;/h3&gt;
	&lt;p&gt;I'm John Doe, a web &amp;amp; graphic designer. As a web designer, I am best known for making some kickass website. As a graphic designer, especially icon design, my work was used by one of the largest social network on earth, Twitter.&lt;/p&gt;
	&lt;p&gt;If you want to know more about me, you can reach me via contact form below or one of these social network.&lt;/p&gt;
	&lt;div class=&quot;social&quot;&gt;
		&lt;a href=&quot;#&quot; class=&quot;fb&quot;&gt;Facebook&lt;/a&gt;
		&lt;a href=&quot;#&quot; class=&quot;linkedin&quot;&gt;LinkedIn&lt;/a&gt;
		&lt;a href=&quot;#&quot; class=&quot;twitter&quot;&gt;Twitter&lt;/a&gt;
		&lt;a href=&quot;#&quot; class=&quot;lastfm&quot;&gt;Last FM&lt;/a&gt;
		&lt;a href=&quot;#&quot; class=&quot;wp&quot;&gt;Blog&lt;/a&gt;
	&lt;/div&gt;
&lt;/section&gt;

&lt;span class=&quot;separator&quot;&gt;&lt;/span&gt;
</pre>
<p>We&#8217;ll transform the social media link into a nice icon that we have created before. Since the icons is wrapped in a single file, we need to configure each icon position to match the correct link by modify the background position. This method is called CSS Sprite.</p>
<pre>
section#about {
	margin:auto;
	padding:70px 0;
	text-align:center;
	width:460px;
}
section#about p {
	font-size:14px;
	line-height:18px;
	margin-bottom:18px;
	text-align:center;
	text-shadow:1px 1px 0 #fff;
}
.social {
	display:block
}
.social a {
	background:transparent url(img/social.png);
	display:inline-block;
	height:30px;
	width:33px;
	text-indent:-9999px;
}
.social a:hover {
	opacity:.7;
}

/* CSS Sprite */
.social a.fb {
	background-position:0 0;
}
.social a.linkedin {
	background-position:133px 0;
}
.social a.twitter {
	background-position:100px 0;
}
.social a.lastfm {
	background-position:67px 0;
}
.social a.wp {
	background-position:33px 0;
}
</pre>
<h3>Step 9: Contact Form</h3>
<p>Our last element is the contact form. As usual, contact form is just a series of some input text, a text area and a submit button wrapped in a <code>&lt;section&gt;</code> container.</p>
<pre>
&lt;section id=&quot;contact&quot;&gt;
	&lt;h3&gt;Drop Me a Line&lt;/h3&gt;
	&lt;form action=&quot;#&quot; method=&quot;post&quot;&gt;
		&lt;div&gt;
			&lt;label for=&quot;name&quot;&gt;Your Name&lt;/label&gt;
			&lt;input type=&quot;text&quot; id=&quot;name&quot; /&gt;
		&lt;/div&gt;
		&lt;div&gt;
			&lt;label for=&quot;email&quot;&gt;Your Email Adress&lt;/label&gt;
			&lt;input type=&quot;text&quot; id=&quot;email&quot; /&gt;
		&lt;/div&gt;
		&lt;div&gt;
			&lt;label for=&quot;subject&quot;&gt;Message Subject&lt;/label&gt;
			&lt;input type=&quot;text&quot; id=&quot;subject&quot; /&gt;
		&lt;/div&gt;
		&lt;div&gt;
			&lt;label for=&quot;message&quot;&gt;Message Text&lt;/label&gt;
			&lt;textarea name=&quot;message&quot; id=&quot;message&quot; cols=&quot;30&quot; rows=&quot;10&quot;&gt;&lt;/textarea&gt;
		&lt;/div&gt;
		&lt;input name=&quot;submit&quot; id=&quot;submit&quot; type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
	&lt;/form&gt;
&lt;/section&gt;
</pre>
<p>Each form will have a rounded corners and dark grey background, while the submit button is replaced with graphic image that we exported from photoshop earlier.</p>
<pre>
section#contact {
	margin:auto;
	padding:70px 0;
	width:460px;
	text-align:center;
}
section#contact form div {
	display:block;
	margin-bottom:35px;
}
section#contact form div label {
	display:block;
	font-size:14px;
	margin-bottom:8px;
	text-shadow:1px 1px 0 #fff;
}
section#contact form div input {
	background:#444;
	border-radius:5px;
	color:#fff;
	margin:auto;
	padding:0 5px;
	height:35px;
	text-align:center;
	width:290px;
}
section#contact form div textarea {
	background:#444;
	border-radius:5px;
	color:#fff;
	margin:auto;
	padding:5px;
	text-align:left;
	height:240px;
	width:450px;
}
section#contact form input {
	background:transparent url(img/submit.png);
	cursor:pointer;
	display:block;
	margin:auto;
	height:38px;
	text-align:center;
	text-indent:-9999px;
	width:145px;
}
section#contact form input:hover, section#contact form input:focus {
	opacity:.7;
}
</pre>
<h3>Step 10: Final Touch</h3>
<p>Actually, our portfolio is already done and works well. But we still need to add one final touch to make our site more fancy. We&#8217;ll add a jQuery scrolling effect to make a smooth scrolling on our navigation menu. Place this script inside <code>&lt;head&gt;</code> element.</p>
<pre>
$(document).ready(function(){
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,&quot;) == this.pathname.replace(/^\//,&quot;)
		&amp;&amp; location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length &amp;&amp; $target
			|| $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body')
				.animate({scrollTop: targetOffset}, 1000);
				return false;
			}
		}
	});
});
</pre>
<h3>Final Result</h3>
<p>We&#8217;re finally finished coding this portfolio. I hope you enjoy the tutorial. Click on the image below to see the final design in HTML.</p>
<p><a href="html/index.html"><img src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/12/portfolio-preview.jpg" width="600" height="554" alt="One Page Portfolio Site Preview" /></a></p>
<h3>Download Link</h3>
<p><a href="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2011/11/one-page-portfolio-html.zip">Download One Page Portfolio (HTML)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2011/11/design-a-one-page-portfolio-site-in-photoshop-part-2-coding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Worlds top 10 fashion brands and their websites</title>
		<link>http://www.pvmgarage.com/2010/07/worlds-top-10-fashion-brands-and-their-websites/</link>
		<comments>http://www.pvmgarage.com/2010/07/worlds-top-10-fashion-brands-and-their-websites/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 12:00:20 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[fashion websites]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/?p=2224</guid>
		<description><![CDATA[Recently I was working on a design project for a high-end fashion company. I thought it would be great inspiration for everyone to have the top 10 fashion brands in the world presented PVM Garage. View the designs below for excellent inspiration on your next fashion design project.

Chanel

Polo Ralph Lauren

Louis Vuitton

Givenchy

Tommy Hilfiger

Juicy Couture

Lacoste

Gap

Brooks Brothers

]]></description>
			<content:encoded><![CDATA[<p>Recently I was working on a design project for a high-end fashion company. I thought it would be great inspiration for everyone to have the top 10 fashion brands in the world presented PVM Garage. View the designs below for excellent inspiration on your next fashion design project.</p>
<p><span id="more-2224"></span></p>
<h2>Chanel</h2>
<p><a href="http://www.chanel.com/"><img class="alignnone size-full wp-image-2223" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/chanel.jpg" alt="" width="670" height="280" /></a></p>
<h2>Polo Ralph Lauren</h2>
<p><a href="http://www.ralphlauren.com/home/index.jsp?ab=int_fd_unitedstates"><img class="alignnone size-full wp-image-2225" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/ralphlauren.jpg" alt="" width="670" height="280" /></a></p>
<h2>Louis Vuitton</h2>
<p><a href="http://www.louisvuitton.com/"><img class="alignnone size-full wp-image-2226" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/louisvuitton.jpg" alt="" width="670" height="280" /></a></p>
<h2>Givenchy</h2>
<p><a href="http://www.givenchy.com/"><img class="alignnone size-full wp-image-2227" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/givenchy.jpg" alt="" width="670" height="280" /></a></p>
<h2>Tommy Hilfiger</h2>
<p><a href="http://usa.tommy.com/tommy/"><img class="alignnone size-full wp-image-2228" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/tommy.jpg" alt="" width="670" height="280" /></a></p>
<h2>Juicy Couture</h2>
<p><a href="http://www.juicycouture.com/"><img class="alignnone size-full wp-image-2229" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/juicy.jpg" alt="" width="670" height="280" /></a></p>
<h2>Lacoste</h2>
<p><a href="http://www.lacoste.com/"><img class="alignnone size-full wp-image-2230" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/lacoste.jpg" alt="" width="670" height="280" /></a></p>
<h2>Gap</h2>
<p><a href="http://www.gap.com/"><img class="alignnone size-full wp-image-2231" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/gap.jpg" alt="" width="670" height="280" /></a></p>
<h2>Brooks Brothers</h2>
<p><a href="http://www.brooksbrothers.com/"><img class="alignnone size-full wp-image-2232" src="http://www.pvmgarage.com/pvmenglishcontent4984/uploads/2010/07/brooksbrothers.jpg" alt="" width="670" height="280" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2010/07/worlds-top-10-fashion-brands-and-their-websites/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Interview with CapsisMedia.com</title>
		<link>http://www.pvmgarage.com/2010/07/interview-with-capsismedia-com/</link>
		<comments>http://www.pvmgarage.com/2010/07/interview-with-capsismedia-com/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 23:15:06 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Online Industry]]></category>
		<category><![CDATA[capsis media]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[custom website design]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[website design]]></category>
		<category><![CDATA[website development]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/2010/07/interview-with-capsismedia-com/</guid>
		<description><![CDATA[Recently we had the pleasure of meeting with the owner of Capsis Media, a custom website design and development company based out of Toronto, Canada. The company caught our attention for their quality and pricing for custom websites. The “short” interview took nearly 1 hour, however we are thrilled to have had the opportunity to talk with the owner. 
Who is Capsis Media?
Capsis Media is a company, which I established back in April 2004. The company has been through several ...]]></description>
			<content:encoded><![CDATA[<p>Recently we had the pleasure of meeting with the owner of Capsis Media, a custom website design and development company based out of Toronto, Canada. The company caught our attention for their quality and pricing for custom websites. The “short” interview took nearly 1 hour, however we are thrilled to have had the opportunity to talk with the owner.<strong> </strong></p>
<p><strong>Who is Capsis Media?</strong></p>
<p>Capsis Media is a company, which I established back in April 2004. The company has been through several transformations with the ultimate goal of becoming a world class website design and development company mainly catering to the small business, personal and outsourcing market. We’ve dedicated our lives to growing this growing from zero to six figures in a short period, and been successful at our efforts. Capsis has grown to become a world class company in the development sector.<strong> </strong></p>
<p><strong>Why would someone choose Capsis Media?</strong></p>
<p>Simple… we get done what no one else can. What do I mean by that? Well we have fully trained staffed that is capable of producing custom designs, php programming, graphic design, marketing or hosting solutions. If you provide us with the opportunity to quote your project we will provide you with a very competitive price which 99% of competitors can not match, and deliver quality far beyond your expectation. Let us quote your project online, free! with no obligation to order, <a href="http://www.capsismedia.com/manager/place-quotation-step1.php">click here!</a></p>
<p><strong>How did you start the business?</strong></p>
<p>6 years ago, I started the business with a partner. Myself being the sales brain and my partner being the designer/developer. After our company was able to secure more than a few orders, my partner wasn’t able to keep up. After butting heads, I decided to acquire the company solo and head off on my own to form Capsis Media. Since then, I’ve acquired the most talented staff in website design and website programming in the world. Since the split with my partner (5+ years) I’ve focused on growing the business with one mind frame… deliver quality websites at affordable prices… and it has worked.</p>
<p><strong>What do you least like about the business?</strong></p>
<p>I’m involved in a few businesses; my main line of business is real estate development. With Capsis, it has provided me with the freedom to live life as I’ve always wanted to, going anywhere in the world I desire, yet running a successful online business at the same time. Capsis Media doesn’t have any down falls, however my lifestyle does, considering I’m involved in 3 full time businesses, it does get very hectic sometimes.</p>
<p><strong>Do you run your business 9 to 5?</strong></p>
<p>Absolutely not! I don’t think any successful business now a days can honestly say they do. I run my business 24 hours per day… you ask how? From my smart phone! My Blackberry has been the best office tool in my life, I’m able to respond to staff, clients and keep projects up to date from the comfort of my blackberry from anywhere in the world. The great thing about an internet business is that if you structure the business correctly, you can have the ability to work only a few hours per day from your smart phone, while automating everything in the back end. A lot of people ask me how I do it and I say, contact me I’ll be happy to share my experiences with you!</p>
<p><strong>Your based in Canada, does that have any down falls?</strong></p>
<p>No, the only downfall is time zones with my clients. However, most clients realize that we’re based in Canada and don’t have a problem with the time difference in response times.</p>
<p><strong>What is the one sales pitch you can leave us with?<br />
</strong></p>
<p>Give us a try! Capsis Media has a fully staffed team of designers and developers that can produce any website you desire. Our one goal is to ensure we can produce the best service within your budget. Visit us online at <a href="http://www.capsismedia.com/manager/place-quotation-step1.php">capsismedia.com</a> and we&#8217;ll be pleased to provide you with an <a href="http://www.capsismedia.com/manager/place-quotation-step1.php">online no-obligation quote</a>.</p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2010/07/interview-with-capsismedia-com/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Touch The Future: Create An Elegant Website With HTML 5 And CSS3</title>
		<link>http://www.pvmgarage.com/2010/04/touch-the-future-create-an-elegant-website-with-hmtl-5-and-css3/</link>
		<comments>http://www.pvmgarage.com/2010/04/touch-the-future-create-an-elegant-website-with-hmtl-5-and-css3/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 15:48:04 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=1830</guid>
		<description><![CDATA[I&#8217;m sure that who chooses to work as web designer makes a choice of heart, a choice of love. He/she decides to bet any given day on his creativity and his ability of producing an idea and of making it tangible, visible and perceptible for all. These crazy men have my respect. But, also when the creative side is very important for a work, there exists a logical (and technical) part in all creative process.

There are some moments and situations ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure that who chooses to work as web designer makes a<strong> choice of heart</strong>, a choice of love. He/she decides to bet any given day on his creativity and his ability of producing an idea and of making it tangible, visible and perceptible for all. These crazy men have my respect. But, also when the creative side is very important for a work, there exists a logical (and technical) part in all creative process.<br />
<span id="more-1830"></span><br />
There are some moments and situations in which the creative mind needs an analytical method to achieve the objective, that is, for us, the creation of a well-done website. </p>
<p>In his article on <a href="http://designinformer.com/">Design Informer</a> titled <a href="http://designinformer.com/web-design-iterations-algorithms/">&#8220;Web Design Iterations And Algorithm,&#8221;</a> Adit Gupta explains how we can approach a web design work and how a website project can be processed in a number of iterations following a main algorithm. Well, generally it&#8217;s just how Adit has described.<br />
Our brain works well, in order to solve a big problem, if we can divide the main issue in <em>N</em> operations that solve <em>N</em> little difficulties, and the total sum of these <em>N</em> little steps provides the solution for our big problem. Perfect, &#8216;Houston, we have a big problem!&#8217; We should create a working web design. Actually the common routine requires the following main steps:</p>
<ul>
<li><strong>Step 1:</strong> understand the theme and the topics of the website and decode the client&#8217;s requests</li>
<li><strong>Step 2:</strong> choose the right style and sketch your ideas</li>
<li><strong>Step 3:</strong> draw a clean and clear wireframe to summarize the structure of the website</li>
<li><strong>Step 4:</strong> design the website (in pixels) through an image editor, like Photoshop, to create a real-scale mockup</li>
<li><strong>Step 5:</strong> convert your </em>psd</em> mockup to HTML and CSS</li>
</ul>
<p>Five macro-steps to build an effective website using brain, pencil, paper, Photoshop, HTML and CSS. But technology doesn&#8217;t stop, luckily, and we have other two great allies for the future to design better website: HTML 5 and CSS3.</p>
<h2>How HTML 5 And CSS3 Can Change Web Design</h2>
<p>If you were to ask me which is the greatest change that HTML 5 and CSS3 could bring about, I&#8217;d focalize my answer on the <strong>use of the image editors</strong>. Sure, we can talk about the power of the semantic web or about the reduction of the plugin-based rich internet applications (such as Flash or Java); but as web designer the first, big, change is just within my design process. In fact the new features of <strong>CSS3 allow us a complete control of some properties able to create nice effects</strong> without the use of <em>jpgs</em>, <em>pngs</em> or <em>gifs</em>. New properties of CSS3, such as <em class="code">box-shadow</em>, avoid creating pixel-perfect images to make precious your web design.<br />
For a long time I&#8217;ve thought about Photoshop (or other image editors) &#8216;it is an <strong>essential</strong> tool to develope a website.&#8217; Actually I&#8217;m changing this point of view to &#8216;it is an <strong>useful</strong> tool to develope a website.&#8217;<br />
From the routine described in the introduction of the article it&#8217;s evident how the psd mockup and PSD-to-HTML conversion are needful things, but, digging into new features of CSS3, a question hires my brain: &#8216;do you really need a psd mockup?&#8217;<br />
The answer, in my opinion, is &#8217;sometimes.&#8217; When you have a clear concept and a good wireframe you may code instantly an HTML-based mockup for a browser; to save your time (and your money) avoiding an almost-absolete step.<br />
Note: I am not saying that you don&#8217;t need Photoshop. I am just saying that, sometimes, a psd mockup could be a superflous step, however you could need an image editor to create stunning graphic details.<br />
Megan Fisher explains in wonderful way her point of view about HTML-based mockup with her article on <a href="http://24ways.org/">24ways</a> titled <a href="http://24ways.org/2009/make-your-mockup-in-markup">&#8220;Make Your Mockup in Markup.&#8221;</a></p>
<h3 id="html5">Quick Overview On HTML 5</h3>
<p>HTML 5 borns to improve interoperability and to reduce development costs for websites and web applications. It is not a W3C recommendation yet, and for this reason you have to read information contained in the article like a simple overview on how we might work with new technologies in the (next) future.</p>
<p>HTML 5 is aimed to create a <strong>comprehensive and all-in-one markup language</strong> for front-end development, able to provide a qualitative information on the different elements of the page; all this introducing new media elements (and their attributes), such as <em class="code">&lt;video&gt;</em> and <em class="code">&lt;audio&gt;</em>, and semanthic elements (that reflect modern usage of the website), such as <em class="code">&lt;article&gt;</em>, <em class="code">&lt;header&gt;</em> and <em class="code">&lt;footer&gt;</em>.<br />
We focalize our attention on the new elements that make easier to structure a web page. Take a look to the following elements, which are all new features of HTML 5 (information from <a href="http://whatwg.org/html5">HTML 5 | Working Draft</a>).</p>
<p><em class="code">&lt;section&gt;</em> &#8211; section element is a generic section of a document or application, a thematic grouping of content that contains a heading. The section element is not a generic container element like a <em class="code">&lt;div&gt;</em>. If you create a section for styling purposes or as a convenience for scripting, you should use a <em class="code">&lt;div&gt;</em>. A section element is the right choice when you want that the element&#8217;s contents are listed explicitly in the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#outline">document&#8217;s outline</a> (read <a href="http://blog.whatwg.org/is-not-just-a-semantic">&#8220;&lt;section&gt; is not just a &#8220;semantic &lt;div&gt;&#8221;</a> to learn more).</p>
<p><em class="code">&lt;aside&gt;</em> &#8211; aside element is a section of a page that consists of content that is tangentially related to the content around the aside element. We can use aside element for sidebars, for advertising, for groups of nav elements, and for other content that we can consider separate from the main content of the page.</p>
<p><em class="code">&lt;article&gt;</em> &#8211; article element is a self-contained composition (a forum post, a magazine or newspaper article, a blog entry) in a web page or web application and that is intended to be distributable or reusable. You should use the article element, instead of the section element, when it would make sense to syndicate the contents of the element.</p>
<p><em class="code">&lt;footer&gt;</em> &#8211; footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. It can contain information about its section, links to related documents, copyright dataansd so on. Footer element used for a general site-wide footer and for a article (or section) footer.</p>
<p><em class="code">&lt;header&gt;</em> &#8211; header element represents a group of introductory or navigational aids, it is intended to usually contain the section&#8217;s heading (an h1–h6 element or an hgroup element)</p>
<p><em class="code">&lt;nav&gt;</em> &#8211; nav element is a section with navigation links. Not all groups of links on your web page need to be within a nav element, only sections that consist of major navigation blocks are appropriate for the nav element.</p>
<p><em class="code">&lt;address&gt;</em> &#8211;  address element represents  the contact information for its nearest article.</p>
<p><em class="code">&lt;time&gt;</em> &#8211;  it is used to represent a date and/or the time.</p>
<h3>Quick Overview On CSS3</h3>
<p>Like HTML 5 also Cascading Style Sheet Level 3 is under development and it is not a W3C recommendation yet. However we can start to use some new features and properties, which work in modern browser, to improve and optimize our web design projects.<br />
There are some properties that you may experiment, such as <em class="code">border-radius</em> and <em class="code">box-shadow</em>, but realistically you have to fight with <a href="http://www.findmebyip.com/litmus#target-selector">browsers compatibility</a> to create a CSS3-based style sheet for a client project.<br />
Below, at any rate, you can take a look at some new features and techniques that you may put into practice immediately.</p>
<p><em class="code">RGBa</em> &#8211; <a href="http://www.w3.org/TR/css3-color/#rgba-color">RGBa</a> is the standard RGB model (0,0,0 – 255,255,255) and it adds the last option (a) for the opacity. We can use this model also for other properties and it works with the new browser. </p>
<pre style="width:652px;">
background: rgba(196,89,30,0.65);
</pre>
<p><em class="code">box-shadow</em> &#8211; the <a href="http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-box-shadow">box-shadow</a> CSS property accepts one or more shadow effects as a comma-separated list, to attach one or more drop-shadows to a box.</p>
<pre style="width:652px;">
-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
-khtml-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
-webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
</pre>
<p><em class="code">border-radius</em> &#8211; other great new property: <a href="http://www.w3.org/TR/2009/CR-css3-background-20091217/#the-border-radius">border-radius</a>, that allows us to add nice rounded corners on box-items.</p>
<pre style="width:652px;">
-moz-border-radius: 10px; /*radius of 10px*/
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
</pre>
<p><em class="code">text-shadow</em> &#8211; the <a href="http://www.w3.org/TR/css3-text/#text-shadow">text-shadow</a> new property accepts a comma-separated list of shadow effects to be applied to the text of the element.</p>
<pre style="width:652px;">
text-shadow: 1px 1px 1px #2c0306;
</pre>
<h2>An Elegant Web Design With HTML 5 And CSS3 &#8211; Live Preview and Download</h2>
<p>Now, after a quick overview on the technologies that we will use, we can start to design our website. The aim is to create an elegant blog/portfolio for an efficient professional (graphic and web designer or photographer).<br />
Below you can see the final resul of our efforts; don&#8217;t forget that it is coded through two new great technologies, HTML 5 and CSS3. You may see a <a href="http://www.pvmgarage.com/downloads/portfolio">live preview</a> of the template and <a href="http://www.pvmgarage.com/downloads/portfolio">download the archive</a> with all source files. </p>
<p><a href="http://www.pvmgarage.com/downloads/portfolio"><img src="http://www.pvmgarage.com/contenuti/2010/04/eleg_prev.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></a></p>
<div style="float: left; width:185px; height: 64px; margin-right: 15px; margin-top:10px;"><a href="http://www.pvmgarage.com/downloads/portfolio" target="_blank"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/anteprima-but.jpg" alt="Download Source" /></a></div>
<div style="float: left; width:185px; height: 64px;margin-top:10px;"><a href="http://www.pvmgarage.com/downloads/mrhurley_PVMGARAGE.zip"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/downloadbut.jpg" alt="Download Source" /></a></div>
<div style="width: 100%; clear: both; height: 15px;"></div>
<p>The template can be used and edited without any restrictions or limitations. Feel free to modify the template in private or commercial projects. It is absolutely free to use and released under <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>. We love our readers!</p>
<h2>How To Create A Nice Blog Design Touching The Future</h2>
<p>During the introduction I&#8217;ve described a scenario in which we don&#8217;t need Photoshop to make a good work and create a nice web design. It&#8217;s possible, but the initial steps are very important in this case. You need to focus and formalize the requests of the client and create a good plan to work directly with the code.<br />
I suggest to use <strong>pencil and paper to sketch your ideas</strong>. You should create a working wireframe, not 100% complete, however able to synthesize the client&#8217;s necessities and explain your plan for a comfortable work with the code.</p>
<h3>Sketch Your Ideas</h3>
<p>After a revision of the goals (from client&#8217;s requests) I decide to create a clean layout with a simple header, a container for recent posts, a column for archive (that contains a list of posts) and a &#8217;sidebar&#8217; with personal info, a preview of the portfolio and contact info.<br />
Below you can see my row wireframe.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/sketch_wi.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<h3>Graphic Details</h3>
<p>Did I say &#8216;you don&#8217;t need Photoshop?&#8217; No my friend, I just said &#8216;you don&#8217;t need psd mockup.&#8217; High-quality graphic details are useful to design a great website. So, start from color palette and then draw good details in order to make precious your design. Below you can take a look to the graphics, created through Photoshop, that help us in building our blog design. </p>
<p><strong>Color palette</strong><br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/color_palette.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><strong>Graphics</strong><br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/graphics.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p>I&#8217;ll use the square pattern to create a nice background for the main container; for the header I&#8217;ll use the red-gradient image with a soft noise-effect. I&#8217;ve create the logo using French Script MT font, a soft gradient effect and a drop-shadow, I&#8217;ve also arranged in advance the image to apply, in due course, the CSS sprite techniques. There also two nice, minimal, icons to create &#8217;subscribe to blog&#8217; buttons.</p>
<h3>Code Your Website With HTML 5</h3>
<p>As evident, we have the following elements: header, last posts container, archive with a list of posts and blocks that usually we find in the sidebar of website, such as personal information, blogroll and contact details.<br />
You may check out complete code here: <a href="http://www.pvmgarage.com/downloads/portfolio/index.txt">index.html</a> &#8211; <a href="http://www.pvmgarage.com/downloads/portfolio/style.txt">style.css</a>.</p>
<p><strong>Step 1 &#8211; Basic Structure</strong><br />
First of all I define the basic structure of the HTML page, including Doctype, links to stylesheets, the title of the page and charset details. The following image explains the structure and highlights the tag that I use to create the basic structure.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/structure.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p>And now it&#8217;s time for the code.</p>
<pre style="width:652px;">
&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
	&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;
	&lt;title&gt;mr. hurley | personal blog&lt;/title&gt;
	&lt;link href="style.css" rel="stylesheet" type="text/css" media="screen" /&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;header id="site_head"&gt;
		&lt;div class="header_cont"&gt;&lt;!--useful to create the 960px limit--&gt;
		&lt;!--header stuff--&gt;
		&lt;/div&gt;
	&lt;/header&gt;

	&lt;div id="main_content"&gt;&lt;!--useful to create the 960px limit--&gt;

		&lt;section id="last_posts"&gt;
		&lt;!--last posts here--&gt;
		&lt;/section&gt;

		&lt;div class="left_cont"&gt;
		&lt;section id="archive"&gt;
		&lt;!--list od posts here--&gt;
		&lt;/section&gt;

		&lt;aside class="friends"&gt;
		&lt;!--blogroll--&gt;
		&lt;/aside&gt;
		&lt;/div&gt;

		&lt;aside&gt;
		&lt;section class="about"&gt;
		&lt;!--personal info here--&gt;
		&lt;/section&gt;		

		&lt;nav&gt;
		&lt;!--links for the portfolio--&gt;
		&lt;/nav&gt;

		&lt;section class="contact"&gt;
		&lt;!--contact details here--&gt;
		&lt;/section&gt;
		&lt;/aside&gt;

		&lt;footer class="bottom"&gt;
		&lt;!--footer info here--&gt;
		&lt;/footer&gt;
		&lt;/footer&gt;

	&lt;/div&gt;&lt;!--/main_container--&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><strong>Step 2 &#8211; The Header</strong><br />
According to the definitions of the paragraph titled <a href="#html5">&#8220;Quick Overview On HTML 5&#8243;</a>, we can code the header section of our page as shown below.</p>
<pre style="width:652px;">
&lt;header id="site_head"&gt;
		&lt;div class="header_cont"&gt;
		&lt;h1&gt;&lt;a href="#"&gt;mr. hurley&lt;/a&gt;&lt;/h1&gt;

		&lt;nav class="head_nav"&gt;
		&lt;ul&gt;
			&lt;li class="rss"&gt;&lt;a href="#"&gt;Subscribe&lt;/a&gt;&lt;/li&gt;
			&lt;li class="twitter"&gt;&lt;a href="#"&gt;Follow Me&lt;/a&gt;&lt;/li&gt;
			&lt;li class="home"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="#"&gt;About Me&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="#"&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/nav&gt;
		&lt;/div&gt;
	&lt;/header&gt;
</pre>
<p>Create the <em>style.css</em>, linked in our <em class="code">&lt;head&gt;</em> section, and start to add the style for elements (and nested blocks) of the <em class="code">&lt;header&gt;</em>. Note: The first couple of lines in the CSS are used to reset any default browser styling and to set-up the style for &#8216;general&#8217; tag, such us <em class="code">a</em> or <em class="code">:focus</em>.</p>
<pre style="width:652px;">
@charset "utf-8";
/* CSS Document */

/*  Reset for some default browser CSS - General */

body, div, h1, h2, h3, p, ul, ol, li, img, header, section, aside, footer, button {
	margin: 0; padding: 0; border: 0; list-style: none;
}

a {
	text-decoration: none;
	color: #961b25;
}

a:hover {
	color: #6f92a7;
}

:focus {
	outline: 0;
}

h1, h2, h3 {
	font-family: Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif;
	font-weight: normal;
} 

h2 {
	font-size: 22px;
	line-height: 28px;
}

.float {
		float:left;
	}

body {
	background: #f6f6ee url(images/bck.jpg);
	font-family : "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	}	

/* Header */

header#site_head {
	background: url(images/bck_head.jpg);
	-moz-box-shadow: inset 0px -2px 3px #480508;
	-khtml-box-shadow: inset 0px -2px 3px #480508;
	-webkit-box-shadow: inset 0px -2px 3px #480508;
	box-shadow: inset 0px -2px 3px #480508;
	border-bottom: 1px solid #fffffb;
	height: 70px;
	width: 100%;
	display: block;
}

	.header_cont {
		width: 960px;
		margin: 0 auto;
		padding-top: 15px;
	}

		.header_cont h1 {
			text-indent:-9999px;
			float: left;
		}

		.header_cont h1 a {
			background: url(images/logo.png) no-repeat;
			width: 143px;
			height: 45px;
			display: block;
		}

		.header_cont h1 a:hover {
			background-position: 0px -45px;
		}

		nav.head_nav {
			float: right;
			margin-top: 13px;
		}

		nav.head_nav ul li {
			display: inline;
			margin: 0px 5px;
		}	

			nav.head_nav ul li a {
				color: #f6f6ee;
				font-size: 12px;
				font-weight: normal;
				text-transform: lowercase;
				padding: 5px 8px;
			}

			nav.head_nav ul li.home a {
				background: #4f1d1e;
				-moz-border-radius: 10px;
				-khtml-border-radius: 10px;
				-webkit-border-radius: 10px;
				border-radius: 10px;
			}

			nav.head_nav ul li a:hover {
				text-shadow: 1px 1px 1px #2c0306;
				background: #4f1d1e;
				-moz-border-radius: 10px;
				-khtml-border-radius: 10px;
				-webkit-border-radius: 10px;
				border-radius: 10px;
				-moz-box-shadow: inset 0px 0px 2px #2c0306;
				-khtml-box-shadow: inset 0px 0px 2px #2c0306;
				-webkit-box-shadow: inset 0px 0px 2px #2c0306;
				box-shadow: inset 0px 0px 2px #2c0306;
				color: #f6f6ee;
			}

			nav.head_nav ul li.rss, nav.head_nav ul li.twitter  {
				position: relative;
				left: -355px;
				margin: 0;
				}

			nav.head_nav ul li.rss a {
				color: #b4676c;
				border-right: 1px solid #903f43;
				margin: 0;
				padding-left: 20px;
				background: url(images/rss.png) left no-repeat;
				font-size:10px;
		}

			nav.head_nav ul li.twitter a {
				color: #b4676c;
				margin-left: 3px;
				padding-left: 20px;
				background: url(images/twitter.png) left no-repeat;
				font-size:10px;
			}

			nav.head_nav ul li.rss a:hover, nav.head_nav ul li.twitter a:hover  {
				color: #f6f6ee;
				-moz-border-radius: 0;
				-khtml-border-radius: 0;
				-webkit-border-radius: 0;
				border-radius: 0;
				-moz-box-shadow: none;
				-khtml-box-shadow: none;
				-webkit-box-shadow: none;
				box-shadow: none;
			}
</pre>
<p>The result of the code.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/header.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><strong>Step 3 &#8211; Last posts container</strong><br />
As usual, I describe directly showing the code how to build a well-done HTML section aimed to enclose recent posts. The <em class="code">&lt;section class=&#8221;last_posts&#8221;r&gt;</em> is within <em class="code">&lt;div class=&#8221;main_container&#8221;&gt;</em> (which defines the 960px limit). Here we use the new tags <em class="code">&lt;article&gt;</em>, <em class="code">&lt;address&gt;</em> and <em class="code">&lt;time&gt;</em> for the first time, in order to create a &#8217;semanthic&#8217; single post section. Note: <a href="http://www.pvmgarage.com/downloads/mrhurley_PVMGARAGE.zip">download the archive</a> with the source files, there you can find all used images. </p>
<pre style="width:652px;">
&lt;div id="main_content"&gt;&lt;!--useful to create the 960px limit--&gt;

		&lt;section id="last_posts"&gt;&lt;!--section for recent posts--&gt;
		&lt;header class="section_tit"&gt;
			&lt;h3&gt;Last posts&lt;/h3&gt;
		&lt;/header&gt;

			&lt;div class="single_post"&gt;&lt;!--single post container--&gt;
				&lt;article&gt;
				&lt;div class="float"&gt;
					&lt;figure&gt;
						&lt;img src="images/test3.jpg" alt="test" /&gt;
					&lt;/figure&gt;
					&lt;footer&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;time datetime="2010-04-14" pubdate&gt;April 14, 2010&lt;/time&gt;&lt;/li&gt;
							&lt;li&gt;written by &lt;a href="#"&gt;Mr. Hurley&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;posted in &lt;a href="#"&gt;Web Design&lt;/a&gt;, &lt;a href="#"&gt;Article&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href="#"&gt;Comments (15)&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/footer&gt;
				&lt;/div&gt;

				&lt;div class="art"&gt;
					&lt;header class="post_head"&gt;
						&lt;h2&gt;&lt;a href="#"&gt;Options To Consider When Your Client Is Driving You Mad&lt;/a&gt;&lt;/h2&gt;
					&lt;/header&gt;
					&lt;p&gt;I guess I would be speaking on your behalf when I say that I feel so grateful for my clients. After all, they put their trust in me and gladly compensate me for my efforts. I guess I would be...&lt;/p&gt;
					&lt;span class="more"&gt;&lt;a href="#"&gt;Read more&lt;/a&gt;&lt;/span&gt;
				&lt;/div&gt;
				&lt;/article&gt;

			&lt;/div&gt;

			&lt;div class="single_post"&gt;
				&lt;article&gt;
				&lt;div class="float"&gt;
					&lt;figure&gt;
						&lt;img src="images/test1.jpg" alt="test" /&gt;
					&lt;/figure&gt;
					&lt;footer&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;time datetime="2010-04-14" pubdate&gt;April 14, 2010&lt;/time&gt;&lt;/li&gt;
							&lt;li&gt;written by &lt;a href="#"&gt;Mr. Hurley&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;posted in &lt;a href="#"&gt;Web Design&lt;/a&gt;, &lt;a href="#"&gt;Article&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href="#"&gt;Comments (15)&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/footer&gt;
				&lt;/div&gt;

				&lt;div class="art"&gt;
					&lt;header class="post_head"&gt;
						&lt;h2&gt;&lt;a href="#"&gt;Purple In Web Design: A New Trend?&lt;/a&gt;&lt;/h2&gt;
					&lt;/header&gt;
					&lt;p&gt;For a long time purple has been the least used colour in web design. In recent months I noticed the number of websites...&lt;/p&gt;
					&lt;span class="more"&gt;&lt;a href="#"&gt;Read more&lt;/a&gt;&lt;/span&gt;
				&lt;/div&gt;
				&lt;/article&gt;
			&lt;/div&gt;

			&lt;div class="single_post"&gt;
				&lt;article&gt;
				&lt;div class="float"&gt;
					&lt;figure&gt;
						&lt;img src="images/test4.jpg" alt="test" /&gt;
					&lt;/figure&gt;
					&lt;footer&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;time datetime="2010-04-14" pubdate&gt;April 14, 2010&lt;/time&gt;&lt;/li&gt;
							&lt;li&gt;written by &lt;a href="#"&gt;Mr. Hurley&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;posted in &lt;a href="#"&gt;Web Design&lt;/a&gt;, &lt;a href="#"&gt;Article&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href="#"&gt;Comments (15)&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/footer&gt;
				&lt;/div&gt;

				&lt;div class="art"&gt;
					&lt;header class="post_head"&gt;
						&lt;h2&gt;&lt;a href="#"&gt;How To Design A Better Blog? Break Down The Rules&lt;/a&gt;&lt;/h2&gt;
					&lt;/header&gt;
					&lt;p&gt;Once upon a time in World Wide Web a private and personal diary, where recording daily activities and reflections, called Weblog. &lt;/p&gt;
					&lt;span class="more"&gt;&lt;a href="#"&gt;Read more&lt;/a&gt;&lt;/span&gt;
				&lt;/div&gt;
				&lt;/article&gt;
			&lt;/div&gt;

			&lt;div class="single_post"&gt;
				&lt;article&gt;
				&lt;div class="float"&gt;
					&lt;figure&gt;
						&lt;img src="images/test2.jpg" alt="test" /&gt;
					&lt;/figure&gt;
					&lt;footer&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;time datetime="2010-04-14" pubdate&gt;April 14, 2010&lt;/time&gt;&lt;/li&gt;
							&lt;li&gt;written by &lt;address&gt;&lt;a href="#"&gt;Mr. Hurley&lt;/a&gt;&lt;/address&gt;&lt;/li&gt;
							&lt;li&gt;posted in &lt;a href="#"&gt;Web Design&lt;/a&gt;, &lt;a href="#"&gt;Article&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href="#"&gt;Comments (15)&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/footer&gt;
				&lt;/div&gt;

				&lt;div class="art"&gt;
					&lt;header class="post_head"&gt;
						&lt;h2&gt;&lt;a href="#"&gt;Options To Consider When Your Client Is Driving You Mad&lt;/a&gt;&lt;/h2&gt;
					&lt;/header&gt;
					&lt;p&gt;I guess I would be speaking on your behalf when I say that I feel so grateful for my clients.&lt;/p&gt;
					&lt;span class="more"&gt;&lt;a href="#"&gt;Read more&lt;/a&gt;&lt;/span&gt;
				&lt;/div&gt;
				&lt;/article&gt;
			&lt;/div&gt;

		&lt;/section&gt;

&lt;/div&gt;
</pre>
<p>Below the style for this section.</p>
<pre style="width:652px;">
/* Main container */	

#main_content {
	width: 960px;
	margin: 0 auto;
	padding-top: 15px;
}

	/* Last posts section */	

	.section_tit {
		clear: both;
	}

		.section_tit h3 {
			background: url(images/line.png) no-repeat center center;
			text-align: center;
			font-size: 34px;
			margin: 10px 0 25px 0;
			color: #c9c9c0;
			text-shadow: 1px 1px 0px #fff;
		}

	div.single_post {
		float: left;
		width: 447px;
		height: 345px;
		margin: 0 16px 35px 16px;
	}

		img {
			border: 5px solid rgba(255,255,255,0.75);
			-moz-border-radius: 5px;
			-khtml-border-radius: 5px;
			-webkit-box-border-radius: 5px;
			border-radius: 5px;
			-moz-box-shadow: 0px 0px 5px #c6c6bf;
			-khtml-box-shadow: 0px 0px 5px #c6c6bf;
			-webkit-box-shadow: 0px 0px 5px #c6c6bf;
			box-shadow: 0px 0px 5px #c6c6bf;
		}

		div.single_post footer {
			color: #2b2b28;
			text-align:right;
			font-size: 10px;
		}

		div.single_post ul  {
			margin-top: 10px;
			border-right: 3px solid #dbdbd4;
		}

		div.single_post ul  li {
			padding: 1px 13px 1px 0px;
		}

		div.single_post ul  li a {
			font-weight: bold;
		}

		div.art {
			width: 250px;
			display: block;
			background: rgba(255,255,255,0.75);
			border: 1px solid rgba(255,255,255,1);
			-moz-border-radius: 10px;
			-khtml-border-radius: 10px;
			-webkit-border-radius: 10px;
			border-radius: 10px;
			-moz-box-shadow: 0px 0px 5px #c6c6bf;
			-khtml-box-shadow: 0px 0px 5px #c6c6bf;
			-webkit-box-shadow: 0px 0px 5px #c6c6bf;
			box-shadow: 0px 0px 5px #c6c6bf;
			margin-left: 15px;
			overflow: auto;
			float:left;
		}

		div.art:hover {
			background: rgba(255,255,255,1);
		}

		div.single_post header h2 {
			border-bottom: 1px solid #dbdbd4;
			margin: 20px;
			padding-bottom: 20px;
			text-align: center;
		}

		div.single_post p {
			padding: 0 20px;
			font-size: 12px;
			line-height: 20px;
		}

		span.more {
			float: right;
			margin: 30px 20px 30px 0px;
		}

		span.more a {
			background: #8badc2;
			-moz-border-radius: 15px;
			-khtml-border-radius: 15px;
			-webkit-border-radius: 15px;
			border-radius: 15px;
			padding: 8px 12px;
			color: #fff;
			text-shadow: 1px 1px 1px #546d7c;
			-moz-box-shadow: inset 0px 0px 2px #3f5867;
			-khtml-box-shadow: inset 0px 0px 2px #3f5867;
			-webkit-box-shadow: inset 0px 0px 2px #3f5867;
		}

		span.more a:hover {
			background: #b8ccd7;
			text-shadow: none;
			-moz-box-shadow: none;
			-khtml-box-shadow: none;
			-webkit-box-shadow: none;
			box-shadow: none;
		}
</pre>
<p>The result of our efforts.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/last_posts.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><strong>Step 4 &#8211; Archive and aside sections</strong><br />
Now I add an archive with an ordered list of posts and other information organized in <em class="code">&lt;aside&gt;</em> blocks. Take a look at the code to understand how I&#8217;ve built the two-columns structure.</p>
<pre style="width:652px;">
&lt;div id="main_content"&gt;&lt;!--useful to create the 960px limit--&gt;

		&lt;section id="last_posts"&gt;
		&lt;!--...--&gt;
		&lt;/section&gt;

		&lt;div class="left_cont"&gt;&lt;!--left container fo archive and blogroll--&gt;
		&lt;section id="archive"&gt;
		&lt;header class="section_tit"&gt;
			&lt;h3&gt;Archive&lt;/h3&gt;
		&lt;/header&gt;

		&lt;ol&gt;&lt;!--list of posts--&gt;
			&lt;li&gt;&lt;article&gt;
				&lt;figure class="float"&gt;
				&lt;img src="images/test3.jpg" width="110" alt="test" /&gt;
				&lt;/figure&gt;
				&lt;header&gt;
				&lt;h2&gt;&lt;a href="#"&gt;Options To Consider When Your Client Is Driving You Mad&lt;/a&gt;&lt;/h2&gt;
				&lt;/header&gt;
				&lt;p&gt;I guess I would be speaking on your behalf when I say that I feel so grateful for my clients.&lt;/p&gt;
				&lt;footer&gt;
				&lt;p&gt;&lt;time datetime="2010-04-14" pubdate&gt;April 14, 2010&lt;/time&gt; | &lt;a href="#"&gt;Comments (14)&lt;/a&gt; | &lt;a href="#"&gt;Read more&lt;/a&gt;
				&lt;/footer&gt;
			&lt;/article&gt;&lt;/li&gt;

			&lt;li&gt;&lt;article&gt;
				&lt;figure class="float"&gt;
				&lt;img src="images/test5.jpg" width="110" alt="test" /&gt;
				&lt;/figure&gt;
				&lt;header&gt;
				&lt;h2&gt;&lt;a href="#"&gt;Purple In Web Design: A New Trend?&lt;/a&gt;&lt;/h2&gt;
				&lt;/header&gt;
				&lt;p&gt;For a long time purple has been the least used colour in web design.&lt;/p&gt;
				&lt;footer&gt;
				&lt;p&gt;&lt;time datetime="2010-04-14" pubdate&gt;April 14, 2010&lt;/time&gt; | &lt;a href="#"&gt;Comments (14)&lt;/a&gt; | &lt;a href="#"&gt;Read more&lt;/a&gt;
				&lt;/footer&gt;
			&lt;/article&gt;&lt;/li&gt;

			&lt;li&gt;&lt;article&gt;
				&lt;figure class="float"&gt;
				&lt;img src="images/test4.jpg" width="110" alt="test" /&gt;
				&lt;/figure&gt;
				&lt;header&gt;
				&lt;h2&gt;&lt;a href="#"&gt;How To Design A Better Blog? Break Down The Rules&lt;/a&gt;&lt;/h2&gt;
				&lt;/header&gt;
				&lt;p&gt;Once upon a time in World Wide Web a private and personal diary, where recording daily activities and reflections, called Weblog.&lt;/p&gt;
				&lt;footer&gt;
				&lt;p&gt;&lt;time datetime="2010-04-14" pubdate&gt;April 14, 2010&lt;/time&gt; | &lt;a href="#"&gt;Comments (14)&lt;/a&gt; | &lt;a href="#"&gt;Read more&lt;/a&gt;
				&lt;/footer&gt;
			&lt;/article&gt;&lt;/li&gt;

		&lt;/ol&gt;
		&lt;span class="more_arch"&gt;&lt;a href="#"&gt;More posts&lt;/a&gt;&lt;/span&gt;
		&lt;/section&gt;

		&lt;aside class="friends"&gt;&lt;!--blogroll--&gt;
		&lt;nav&gt;
		&lt;div class="section_tit"&gt;
			&lt;h3&gt;Friends&lt;/h3&gt;
		&lt;/div&gt;

			&lt;ul&gt;
				&lt;li&gt;&lt;a href="#"&gt;PV.M Garage&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;Web Is Love&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;Web Expedition&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href="#"&gt;Web Blend&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;Just Test&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;Another Test&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href="#"&gt;Random Link&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;Black Rock&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;The Hydra&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href="#"&gt;The Orchid&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;The Pearl&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;The Flame&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/nav&gt;
		&lt;/aside&gt;
		&lt;/div&gt;

		&lt;aside&gt;&lt;!--sidebar--&gt;
		&lt;section class="about"&gt;
		&lt;header class="section_tit"&gt;
			&lt;h3&gt;About me&lt;/h3&gt;
		&lt;/header&gt;
			&lt;div class="about_left"&gt;
				&lt;figure&gt;
					&lt;img src="images/test6.jpg" width="120" alt="test" /&gt;
				&lt;/figure&gt;
				&lt;ul&gt;
					&lt;li&gt;&lt;a href="#"&gt;follow me on twitter&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href="#"&gt;be my friend&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href="#"&gt;my bookmarks&lt;/a&gt;&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/div&gt;

			&lt;div class="about_right"&gt;
			&lt;p&gt;Hi, this is M. Hurley, a web designer and developer strangely based in Italy. On this blog I want to share with you my experiences and my works. I won't teach, I just want to provide useful information to learn how to deal with the wonderful world of web design.&lt;/p&gt;
			&lt;p&gt;Thanks for reading,&lt;/p&gt;
			&lt;p&gt;&lt;em&gt;Mr Hurley&lt;/em&gt;&lt;/p&gt;
			&lt;/div&gt;
		&lt;/section&gt;		

		&lt;nav&gt;
		&lt;div class="section_tit"&gt;
			&lt;h3&gt;Portfolio&lt;/h3&gt;
		&lt;/div&gt;
		&lt;div class="portfolio"&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/test1.jpg" width="110" alt="test" /&gt;&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/test2.jpg" width="110" alt="test" /&gt;&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/test3.jpg" width="110" alt="test" /&gt;&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/test4.jpg" width="110" alt="test" /&gt;&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/test5.jpg" width="110" alt="test" /&gt;&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/test1.jpg" width="110" alt="test" /&gt;&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/div&gt;
		&lt;/nav&gt;

		&lt;section class="contact"&gt;
		&lt;header class="section_tit"&gt;
			&lt;h3&gt;Contact&lt;/h3&gt;
		&lt;/header&gt;

			&lt;p&gt;If you are interested in advertising on this blog, you can purchase a banner directly from &lt;a href="http://buysellads.com/buy/detail/7791"&gt;BuySellAds.com&lt;/a&gt;, a great service to buy and sell ads.
Feel free to follow us on Twitter and to subscribe to our RSS feed. You can also contact directly Mr Hurley, the mind behind, through an email to &lt;a href="mailto:pier.made@gmail.com"&gt;pier.made@gmail.com&lt;/a&gt;&lt;/p&gt;
		&lt;/section&gt;
		&lt;/aside&gt;

	&lt;/div&gt;
</pre>
<p>I have to style all these elements, so let&#8217;s go with CSS rules.</p>
<pre style="width:652px;">
/* Archive - Sidebar */

	.left_cont {
		float: left;
		width: 447px;
		margin: 0 16px 16px 16px;
	}

	aside {
		float: right;
		width: 447px;
		margin: 0 16px 16px 16px;
	}

		section#archive ol li {
			width: 385px;
			min-height: 130px;
			background: rgba(255,255,255,0.75);
			border: 1px solid rgba(255,255,255,1);
			-moz-border-radius: 10px;
			-khtml-border-radius: 10px;
			-webkit-border-radius: 10px;
			border-radius: 10px;
			-moz-box-shadow: 0px 0px 5px #c6c6bf;
			-khtml-box-shadow: 0px 0px 5px #c6c6bf;
			-webkit-box-shadow: 0px 0px 5px #c6c6bf;
			box-shadow: 0px 0px 5px #c6c6bf;
			margin: 30px 15px 20px 15px;
			padding: 15px;
		}

		section#archive ol li:hover {
			background: rgba(255,255,255,1);
		}

		section#archive h2 {
			font-size: 16px;
			line-height: 22px;
			margin: 0 0 10px 0;
		}

		section#archive figure {
			margin-right: 15px;
		}

		section#archive footer p {
			font-size: 10px;
			margin-top: 15px;
			text-align: right;
		}

		section#archive footer p a {
			color: #6f92a7;
			font-weight: bold;
		}

		section#archive footer p a:hover{
			color: #961b25;
		}

		aside.friends ul {
			float: left;
			padding-left: 15px;
			width: 95px;
		}

		aside.friends ul li {
			margin-bottom: 10px;
			border-bottom: 1px solid #dbdbd4;
		}

		span.more_arch {
			font-size: 30px;
			margin: 15px 15px 10px 0;
		}	

		section.about, section#archive, aside.friends {
			display: block;
			overflow: auto;
			margin-bottom: 30px;
		}

		div.portfolio {
			margin-bottom: 45px;
			display: block;
		}

		.about_right {
			float: right;
			width: 265px;
			margin-right: 15px;
		}

		.about_left {
			float: left;
			margin-left: 15px;
			padding-top: 5px;
		}	

		section.about p, section.contact p  {
			font-size: 14px;
			line-height: 22px;
			margin-bottom: 18px;
		}

		section.contact p  {
			margin: 0 15px;
		}

		.about_left ul li a {
			width:130px;
			display: block;
			text-align: center;
			padding: 6px 0;
			margin: 13px 0;
		}

		div.portfolio ul {
			margin: 0 15px -8px 15px;
		}

			div.portfolio ul li  {
				display: inline-block;
				margin: 8px 8px 0 8px;
			}
</pre>
<p>To optimize, I add style for <em class="code">section#archive p</em>, <em class="code">span.more_arch a</em> and <em class="code">.about_left ul li</em> modifying previous rules as shown below.</p>
<pre style="width:652px;">
		div.single_post p, section#archive p {
			padding: 0 20px;
			font-size: 12px;
			line-height: 20px;
		}

		span.more, span.more_arch {
			float: right;
			margin: 30px 20px 30px 0px;
		}

		span.more a, span.more_arch a, .about_left ul li a {
			background: #8badc2;
			-moz-border-radius: 15px;
			-khtml-border-radius: 15px;
			-webkit-border-radius: 15px;
			border-radius: 15px;
			padding: 8px 12px;
			color: #fff;
			text-shadow: 1px 1px 1px #546d7c;
			-moz-box-shadow: inset 0px 0px 2px #3f5867;
			-khtml-box-shadow: inset 0px 0px 2px #3f5867;
			-webkit-box-shadow: inset 0px 0px 2px #3f5867;
			box-shadow: inset 0px 0px 2px #3f5867;
		}

		span.more a:hover, span.more_arch a:hover, .about_left ul li a:hover {
			background: #b8ccd7;
			text-shadow: none;
			-moz-box-shadow: none;
			-khtml-box-shadow: none;
			-webkit-box-shadow: none;
			box-shadow: none;
		}
</pre>
<p>Below you can see how our code appears on a web browser.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/archive.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><strong>Step 7 &#8211; Finally, just a simple footer</strong><br />
I add a simple footer with credits and some information.</p>
<pre style="width:652px;">
	&lt;div id="main_content"&gt;

		&lt;!--...--&gt;

		&lt;footer class="bottom"&gt;
			&lt;p&gt;Contents and resources released under Creative Commons License.&lt;/p&gt;
			&lt;p&gt;Design and code by Piervincenzo Madeo - 2010 Mr Hurley Theme - A free HTM5 and CSS3 template.&lt;/p&gt;
		&lt;/footer&gt;
	&lt;/div&gt;
</pre>
<p>The relative CSS rules for the footer.</p>
<pre style="width:652px;">
/* Footer */

	footer.bottom  {
		clear: both;
		display:block;
		margin: 30px 15px;
		border-top: 1px solid #c9c9c0;
		padding-top: 20px;
	}

		footer.bottom p {
			text-align: center;
			color: #b6b6ab;
		}
</pre>
<p>See the following image to understand how our footer appears.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/header.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><strong>Step 8 &#8211; We have a problem: browser compatibility</strong><br />
HTML 5 and CSS3 are two new technologies, so the works actually are in progress. A great issue to use today the new available features is the disparate browser support. Browsers like Firefox 3.6+ and Opera 10.5+ are very promising, but there are many softwares, such as Internet Explorer and Chrome, that present bugs and an incomplete support.<br />
<a href="http://www.findmebyip.com/litmus#target-selector">&#8220;Web Designers&#8217; Browser Support Checklist&#8221;</a> offers a panoramical view about browser support for HTML 5 and CSS3.<br />
I can assert, at any rate, that there are useful solutions to help us to &#8216;modernize&#8217; our web projects.</p>
<p>First of all we need something that help us to take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies. The solution? <a href="http://www.modernizr.com/">Modernizr</a>, a small and simple JavaScript library that allow us to use new properties and elements of HTML 5 and CSS3 in clever way.<br />
Download the library <a href="http://www.modernizr.com/">here</a>, add the file <em>modernizr-1.1.min.js</em> into your template folder and activate the script adding the following line within <em class="code">&lt;head&gt;</em> tag in <em>index.html</em>:</p>
<pre style="width:652px;">
&lt;script src="modernizr-1.1.min.js"&gt;&lt;/script&gt;
</pre>
<p>Modernizr runs through a little loop in JavaScript to enable the various elements from HTML 5 for styling in Internet Explorer, below we can see how this allow us a complete control of HTML 5 also in IE.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/IE_modernizr.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p>It&#8217;s still evident that there are some problems. Where the background-color for <em class="code">div.art</em> and <em class="code">div.art</em> is? Well, IE doesn&#8217;t support RGBa. We have two possible ways.<br />
First: we may use the Modernizr method; it allow us to filter the style rules for browsers that doesn&#8217;t support RGBa using the classes <em class="code">.rgba</em> and <em class="code">.norgba</em> for activating the filter (read <a href="http://www.modernizr.com/docs/#rgba">Modernizr Docs</a> to learn more).<br />
Second (my method): I choose, however, of solving this problem adding a simple RGB property where necessary; below you can see how I modify some CSS classes to add the &#8216;correct&#8217; (big word) background-color for IE too.</p>
<pre style="width:652px;">
		img {
			border: 5px solid rgb(255,255,255); /*rgba ie fix*/
			border: 5px solid rgba(255,255,255,0.75);
			-moz-border-radius: 5px;
			-khtml-border-radius: 5px;
			-webkit-box-border-radius: 5px;
			border-radius: 5px;
			-moz-box-shadow: 0px 0px 5px #c6c6bf;
			-khtml-box-shadow: 0px 0px 5px #c6c6bf;
			-webkit-box-shadow: 0px 0px 5px #c6c6bf;
			box-shadow: 0px 0px 5px #c6c6bf;
		}

		/*...*/

		div.art {
			width: 250px;
			display: block;
			background: rgb(255,255,255); /*rgba ie fix*/
			background: rgba(255,255,255,0.75);
			border: 1px solid rgb(255,255,255); /*rgba ie fix*/
			-moz-border-radius: 10px;
			-khtml-border-radius: 10px;
			-webkit-border-radius: 10px;
			border-radius: 10px;
			-moz-box-shadow: 0px 0px 5px #c6c6bf;
			-khtml-box-shadow: 0px 0px 5px #c6c6bf;
			-webkit-box-shadow: 0px 0px 5px #c6c6bf;
			box-shadow: 0px 0px 5px #c6c6bf;
			margin-left: 15px;
			overflow: auto;
			float:left;
		}

		div.art:hover {
			background: rgb(255,255,255); /*rgba ie fix*/
		}

		/*...*/

	section#archive ol li {
		width: 385px;
		min-height: 130px;
		background: rgb(255,255,255); /*rgba ie fix*/
		background: rgba(255,255,255,0.75);
		border: 1px solid rgb(255,255,255); /*rgba ie fix*/
		-moz-border-radius: 10px;
		-khtml-border-radius: 10px;
		-webkit-border-radius: 10px;
		border-radius: 10px;
		-moz-box-shadow: 0px 0px 5px #c6c6bf;
		-khtml-box-shadow: 0px 0px 5px #c6c6bf;
		-webkit-box-shadow: 0px 0px 5px #c6c6bf;
		box-shadow: 0px 0px 5px #c6c6bf;
		margin: 30px 15px 20px 15px;
		padding: 15px;
	}

	section#archive ol li:hover {
		background: rgb(255,255,255); /*rgba ie fix*/
	}
</pre>
<p>Now we can see how IE renders our code.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/RGB.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p>Testing the template with Google Chrome I said &#8216;dammit!&#8217; Why? See how Chrome destroys our efforts in creating a nice &#8216;read more&#8217; button.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/worst_chrome.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p>This bug borns when we use at the same time <em class="code">border-radius</em> and <em>inset</em> for <em class="code">box-shadow</em>. To fix I use the following trick:</p>
<pre style="width:652px;">
	nav.head_nav ul li a:hover {
		text-shadow: 1px 1px 1px #2c0306;
		background: #4f1d1e;
		-moz-border-radius: 10px;
		-khtml-border-radius: 10px;
		-webkit-border-radius: 10px;
		border-radius: 10px;
		-moz-box-shadow: inset 0px 0px 2px #2c0306;
		-khtml-box-shadow: inset 0px 0px 2px #2c0306;
		-webkit-box-shadow: -1px -1px 2px #2c0306; /*-webkit- inset fix*/
		box-shadow: inset 0px 0px 2px #2c0306;
		color: #f6f6ee;
	}

	/* ... */

	span.more a, span.more_arch a, .about_left ul li a {
			background: #8badc2;
			-moz-border-radius: 15px;
			-khtml-border-radius: 15px;
			-webkit-border-radius: 15px;
			border-radius: 15px;
			padding: 8px 12px;
			color: #fff;
			text-shadow: 1px 1px 1px #546d7c;
			-moz-box-shadow: inset 0px 0px 2px #3f5867;
			-khtml-box-shadow: inset 0px 0px 2px #3f5867;
			-webkit-box-shadow: -1px -1px 2px #3f5867; /*-webkit- inset fix*/
			box-shadow: inset 0px 0px 2px #3f5867;
		}

	span.more a:hover, span.more_arch a:hover, .about_left ul li a:hover {
			background: #b8ccd7;
			text-shadow: none;
			-moz-box-shadow: none;
			-khtml-box-shadow: none;
			-webkit-box-shadow: none;
			box-shadow: none;
		}
</pre>
<p>Just a trick, but in this case it works fine.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/ok_chrome.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><strong>Step 9 &#8211; Rendering on different browsers and validation</strong><br />
Finally we have just to take a look to the different renderings on some browsers and we have to validate the code.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/04/IE8.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/04/FF.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/04/CH.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/04/SA.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/04/OP.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/04/validation.jpg" alt="An Elegant Web Design With HTML 5 And CSS3" /></p>
<h2>Conclusion</h2>
<p>Mission complete! We have a nice and elegant website.<br />
This post is just a practical step-by-step overview on how to use new features of HTML 5 and CSS3, but to learn more about these topics I suggest to read the following articles (and more):</p>
<p><strong>Useful readings and resources to learn more about HTML 5</strong></p>
<ul>
<li><a href="http://articles.sitepoint.com/article/html-5-snapshot-2009">Yes, You Can Use HTML 5 Today!</a></li>
<li><a href="http://en.wikipedia.org/wiki/HTML_5">HTML 5 &#8211; Wikipedia</a></li>
<li><a href="http://www.smashingmagazine.com/2009/07/06/html-5-cheat-sheet-pdf/">HTML 5 Cheat Sheet (PDF)</a></li>
<li><a href="http://html5doctor.com/">HTML 5 Doctor</a></li>
<li><a href="http://www.whatwg.org/specs/web-apps/current-work/">HTML 5 – Draft Standard</a></li>
<li><a href="http://net.tutsplus.com/tutorials/html-css-techniques/html-5-and-css-3-the-techniques-youll-soon-be-using/">HTML 5 and CSS 3: The Techniques You’ll Soon Be Using</a></li>
<li><a href="http://www.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Coding A HTML 5 Layout From Scratch</a></li>
<li><a href="http://www.alistapart.com/articles/previewofhtml5">A Preview of HTML 5</a></li>
<li><a href="http://www.alistapart.com/articles/get-ready-for-html-5/">Get Ready for HTML 5</a></li>
</ul>
<p><strong>Useful readings and resources to learn more about CSS3</strong></p>
<ul>
<li><a href="http://www.smashingmagazine.com/2009/01/08/push-your-web-design-into-the-future-with-css3/">Push Your Web Design Into The Future With CSS3</a></li>
<li><a href="http://www.css3.info/">CSS3.info</a></li>
<li><a href="http://www.w3.org/Style/CSS/current-work">CSS3 Current Work</a></li>
<li><a href="http://www.smashingmagazine.com/2009/07/13/css-3-cheat-sheet-pdf/">CSS 3 Cheat Sheet (PDF)</a></li>
<li><a href="http://24ways.org/2009/cleaner-code-with-css3-selectors">Cleaner Code with CSS3 Selectors</a></li>
<li><a href="http://24ways.org/2009/working-with-rgba-colour">Working With RGBA Colour</a></li>
<li><a href="http://www.webdesignerwall.com/tutorials/the-basics-of-css3/">The Basics of CSS3</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2010/04/touch-the-future-create-an-elegant-website-with-hmtl-5-and-css3/feed/</wfw:commentRss>
		<slash:comments>564</slash:comments>
		</item>
		<item>
		<title>How To Create Depth And Nice 3D Ribbons Only Using CSS3</title>
		<link>http://www.pvmgarage.com/2010/01/how-to-create-depth-and-nice-3d-ribbons-only-using-css3/</link>
		<comments>http://www.pvmgarage.com/2010/01/how-to-create-depth-and-nice-3d-ribbons-only-using-css3/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 11:43:33 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=1296</guid>
		<description><![CDATA[In this last period on PV.M Garage we have described many trends of the modern Web Design and many techniques for creating stunning and impressive web sites.
In one of our tutorials we learned how to realize a nice 3D ribbon and how to play with the drop shadow in Photoshop to simulate depth in a web design layout. This is a widespread trends in recent web design: creating a 3D perception in a website and simulating a &#8220;world&#8221; in three ...]]></description>
			<content:encoded><![CDATA[<p>In this last period on PV.M Garage we have described many <a href="http://www.pvmgarage.com/en/tags/inspiration/">trends of the modern Web Design</a> and many techniques for creating stunning and impressive web sites.<br />
In <a href="http://www.pvmgarage.com/en/2009/09/design-a-clean-and-fresh-company-website-in-photoshop/">one of our tutorials</a> we learned how to realize a nice 3D ribbon and how to play with the drop shadow in Photoshop to simulate depth in a web design layout. This is a widespread trends in recent web design: <strong>creating a 3D perception</strong> in a website and simulating a &#8220;world&#8221; in three dimensions are two great ways for the designers to play with their skills.<br />
Thanks to useful graphic softwares (2D) we can easily create 3D elements, like ribbons and shadows, but we can also reproduce 3D scene using perspective, focus, color shading and opacity. There is also the possibility of using 3D softwares, like Blender, to create some 3D objects and images that we can use in our designs. There is an interesting article on <a href="http://blog.creativityden.com/">CreativityDen</a> about <a href="http://blog.creativityden.com/the-six-fundamental-ways-of-adding-depth-to-your-designs/">the fundamental ways of adding depth in web design works</a>; it explains six basic techniques to simulate the 3D perception in our works and I suggest an attentive reading.</p>
<p>Many beautiful web sites have a wonderful, balanced, three-dimensional perception and it&#8217;s clear that this kind of layouts use, in a clever way, images (generally in the <em>background</em> property), lines and some CSS techniques to create the illusion of depth (there is a brilliant post, by Henry Jones on <a href="http://www.webdesignledger.com">Web Design Ledger</a>, about <a href="http://webdesignledger.com/tips/adding-depth-with-pixel-perfect-line-work">the use of 1px line to simulate the depth</a>). Below some examples.</p>
<h3>DesignM.ag</h3>
<p><a href="http://www.designm.ag" title="designm.ag"><img src="http://www.pvmgarage.com/contenuti/2010/01/designmag.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a> </p>
<h3>Blogof.FrancescoMugnai.com</h3>
<p><a href="http://www.blogof.francescomugnai.com" title="Blogof.FrancescoMugnai.com"><img src="http://www.pvmgarage.com/contenuti/2010/01/mugnai.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a> </p>
<h3>Yoast.com</h3>
<p><a href="http://yoast.com" title="Yoast.com"><img src="http://www.pvmgarage.com/contenuti/2010/01/yoast.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a> </p>
<h3>From-The-Couch.com</h3>
<p><a href="http://from-the-couch.com/" title="From-The-Couch.com"><img src="http://www.pvmgarage.com/contenuti/2010/01/couch.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a> </p>
<p>Wait, wait, wait. We are web designers, right? We have two great allies to realize our daily projects: HTML and CSS.<br />
The improvements for these languages have been considerable and now the question in my mind is: could we build 3D elements and create depth only using HTML and CSS?<br />
Barack Obama could say &#8220;Yes, we can!&#8221;</p>
<p>Sure? Yes, <strong>it&#8217;s possible to create a simple and nice (3D) layout playing with some CSS3 properties</strong>, only using code and without the help of Photoshop.</p>
<h2>We Want to Make 3D Elements Without Images</h2>
<p>There are some properties of the CSS3 languages that can help us to accomplish this mission.<br />
We will use <a href="http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-box-shadow">box-shadow</a> to create a drop-shadow with <em>RGBa</em>, a color model that allows an optimized contrast with any kind of backgrounds.<br />
RGBa is the standard RGB model (0,0,0 &#8211; 255,255,255) and it adds the last option (a) for the opacity. We can use this model also for other properties and it works with the new browser. </p>
<pre>
background: rgba(196,89,30,0.65);
</pre>
<pre>
-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
-khtml-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
-webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
</pre>
<p>Other great new property: <a href="http://www.w3.org/TR/2009/CR-css3-background-20091217/#the-border-radius">border-radius</a>, that allows us to add nice rounded corners on box-items.</p>
<pre>
-moz-border-radius: 10px; /*radius of 10px*/
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
</pre>
<p>We will also use particular borders to create useful triangles for building a nice ribbon. Below the CSS code to draw an arrow (read <a href="http://www.dinnermint.org/css/creating-triangles-in-css/">Creating Triangles in CSS</a> to know more about this techinque).  </p>
<pre>
.triangle {
	border-color: transparent #7d90a3 transparent transparent;
	border-style:solid;
	border-width:15px;
	height:0px;
	width:0px;
}
</pre>
<p>The arrow is useful to reproduce the depth for some 3D elements, like a ribbon. Box-shadow helps us to create depth through shadows. Border-radius, instead, is just to add rounded corners where we want to utilize this solution.<br />
See the image below to deduce how we will use the CSS triangles, the shadows and the rounded corners.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3dexp.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>We will create a simple menu, through an unordered list, using the <a href="http://www.w3.org/TR/css3-2d-transforms/#transform-property">transform</a> property for the single items of the list to make a nice effect.</p>
<pre>
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
</pre>
<p>Below you can see the final result of our efforts. You can also download the archive with the source files and see the live demo.<br />
<a href="http://www.pvmgarage.com/downloads/ribbon"><img src="http://www.pvmgarage.com/contenuti/2010/01/ribbonrev.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a></p>
<div style="float: left; width:185px; height: 64px; margin-right: 15px; margin-top:0px;"><a href="http://www.pvmgarage.com/downloads/ribbon" target="_blank"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/anteprima-but.jpg" alt="Download Source" /></a></div>
<div style="float: left; width:185px; height: 64px;"><a href="http://www.pvmgarage.com/downloads/ribbon.zip"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/downloadbut.jpg" alt="Download Source" /></a></div>
<div style="width: 100%; clear: both; height: 45px;"></div>
<h2>How To Make a CSS Based 3D Layout</h2>
<p>First of all we set up our files. We create a new folder with <em>index.html</em> and <em>style.css</em>. </p>
<p>We prepare the HTML document.</p>
<pre>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;CSS Ribbon&lt;/title&gt;
&lt;link href="style.css" rel="stylesheet" type="text/css" /&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;!-- 3D Stuff --&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Take a look at the following image to understand how we will realize the &#8220;structure&#8221; in our <em>index.html</em> file.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3dpx.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>Well, as you have just seen in the picture we need a main container (centered), a bubble for the contents, and three elements for the ribbon: a rectangle and two triangles.</p>
<pre>
&lt;div id="container"&gt; &lt;!-- Main Container --&gt;    

&lt;div class="bubble"&gt; &lt;!-- Bubble --&gt;
&lt;div class="rectangle"&gt;&lt;h2&gt;3D CSS Ribbon&lt;/h2&gt;&lt;/div&gt; &lt;!-- Rectangle with a title --&gt;
&lt;div class="info"&gt;
&lt;h2&gt;I Have Used Only CSS, friends!&lt;/h2&gt;
&lt;p&gt;
For this tutorial I have used some new properties of the CSS3. You can realize a nice 3D effect using only CSS, it's really fantastic.&lt;br /&gt;It doesn't work with IE!
&lt;/p&gt;
&lt;p&gt;
&lt;a href="#"&gt;Go to the tutorial!&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
</pre>
<p>The CSS code to style the basic elements (container, bubble and rectangle) is the following.</p>
<pre>
/* Reset */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, font, img, ul, li {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}

:focus {
	outline: 0;
}
/* // Reset */

body {
	background: url(bck.jpg); /* image for body made with Photoshop using noise filter (gaussian monochromatic) on #ccc */
	font-family: Georgia, Verdana, “Lucida Sans Unicode”, sans-serif;
	font-size: 12px;
	color: #999;
}

h2 {
	font-style: italic;
	font-weight: normal;
	line-height: 1.2em;
}

div#container {
	margin: 50px auto 0px auto; /* centered */
	width: 400px;
}

.bubble {
	clear: both;
	margin: 0px auto;
	width: 350px;
	background: #fff;
	-moz-border-radius: 10px;
  -khtml-border-radius: 10px;
  -webkit-border-radius: 10px;
	-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
  -khtml-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
  -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
	position: relative;
	z-index: 90; /* the stack order: displayed under ribbon rectangle (100) */
}

.rectangle {
	background: #7f9db9;
	height: 50px;
	width: 380px;
	position: relative;
	left:-15px;
	top: 30px;
	float: left;
	-moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
  -khtml-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
  -webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
	z-index: 100; /* the stack order: foreground */
}

.rectangle h2 {
	font-size: 30px;
	color: #fff;
	padding-top: 6px;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
	text-align: center;
}
</pre>
<p>Below the result of these statements.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3d1.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>We add the two classes to make and place the triangles in <em>style.css</em>&#8230; and we also add the style for the content (class <em>info</em>).</p>
<pre>
&lt;div id="container"&gt;

&lt;div class="bubble"&gt;
&lt;div class="rectangle"&gt;&lt;h2&gt;3D CSS Ribbon&lt;/h2&gt;&lt;/div&gt;
&lt;div class="triangle-l"&gt;&lt;/div&gt; &lt;!-- Left triangle --&gt;
&lt;div class="triangle-r"&gt;&lt;/div&gt; &lt;!-- Right triangle --&gt;
&lt;div class="info"&gt;
&lt;h2&gt;I Have Used Only CSS, friends!&lt;/h2&gt;
&lt;p&gt;
For this tutorial I have used some new properties of the CSS3. You can realize a nice 3D effect using only CSS, it's really fantastic.&lt;br /&gt;It doesn't work with IE!
&lt;/p&gt;
&lt;p&gt;
&lt;a href="#"&gt;Go to the tutorial!&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
</pre>
<p>We add the two classes to make and place the triangles in <em>style.css</em>&#8230; and the style for the content (class <em>info</em>).</p>
<pre>
.triangle-l {
	border-color: transparent #7d90a3 transparent transparent;
	border-style:solid;
	border-width:15px;
	height:0px;
	width:0px;
	position: relative;
	left: -30px;
	top: 65px;
	z-index: -1; /* displayed under bubble */
}

.triangle-r {
	border-color: transparent transparent transparent #7d90a3;
	border-style:solid;
	border-width:15px;
	height:0px;
	width:0px;
	position: relative;
	left: 350px;
	top: 35px;
	z-index: -1; /* displayed under bubble */
}

.info {
	padding: 60px 25px 35px 25px;
}

.info h2 {
	font-size: 20px;
}

.info p {
	padding-top: 10px;
	font-size: 14px;
	line-height: 22px;
}

.info p a {
	color: #c4591e;
	text-decoration: none;
}

.info p a:hover {
	text-decoration: underline;
}
</pre>
<p>Here the result.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3d2.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>We create a nice menu on the top. Below the markup.</p>
<pre>
&lt;div id="container"&gt;

&lt;div class="menu"&gt;
&lt;ul&gt;
&lt;li class="l1"&gt;&lt;a href="#"&gt;CSS3&lt;/a&gt;&lt;/li&gt;
&lt;li class="l2"&gt;&lt;a href="#"&gt;is really&lt;/a&gt;&lt;/li&gt;
&lt;li class="l3"&gt;&lt;a href="#"&gt;powerful&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span&gt;by PV.M Garage&lt;/span&gt;
&lt;/div&gt;

&lt;div class="bubble"&gt;
&lt;div class="rectangle"&gt;&lt;h2&gt;3D CSS Ribbon&lt;/h2&gt;&lt;/div&gt;
&lt;div class="triangle-l"&gt;&lt;/div&gt;
&lt;div class="triangle-r"&gt;&lt;/div&gt;
&lt;div class="info"&gt;
&lt;h2&gt;I Have Used Only CSS, friends!&lt;/h2&gt;
&lt;p&gt;
For this tutorial I have used some new properties of the CSS3. You can realize a nice 3D effect using only CSS, it's really fantastic.&lt;br /&gt;It doesn't work with IE!
&lt;/p&gt;
&lt;p&gt;
&lt;a href="#"&gt;Go to the tutorial!&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
</pre>
<p>The style for our top-menu.</p>
<pre>
.menu {
	position: relative;
	top:3px;
	left: 50px;
	z-index: 80; /* the stack order: displayed under bubble (90) */
}

.menu ul li {
	-webkit-transform: rotate(-45deg); /* rotate the list item */
	-moz-transform: rotate(-45deg); /* rotate the list item */
	width: 50px;
	overflow: hidden;
	margin: 10px 0px;
	padding: 5px 5px 5px 18px;
	float: left;
	background: #7f9db9;
	text-align: right;
}

.menu ul li a {
	color: #fff;
	text-decoration: none;
	display:block;
}

.menu ul li.l1 {
	background: rgba(131,178,51,0.65);
}

.menu ul li.l1:hover {
	background: rgb(131,178,51);
}

.menu ul li.l2 {
	background: rgba(196,89,30,0.65);
}

.menu ul li.l2:hover {
	background: rgb(196,89,30);
}

.menu ul li.l3 {
	background: rgba(65,117,160,0.65);
}

.menu ul li.l3:hover {
	background: rgb(65,117,160);
}

.menu span {
	margin: 15px 80px 0px 0px;
	float:right;
}
</pre>
<p>Here you can se the simple menu.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3d3.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>Our 3D layout is ready. It&#8217;s so sexy, I hope you find the final result attractive and inspiring. </p>
<h2>Conclusions</h2>
<p>I think this kind of solution is useful to improve the performance of the website holding a great 3D effect. There is great question: Internet Explorer and Opera have some problems with CSS3. But this is not an impediment because we are looking to the future. So, if you are browsing the web with IE, please consider to install <a href="http://www.mozilla-europe.org/en/firefox/">Mozilla Firefox</a> or <a href="http://www.google.com/chrome/">Google Chrome</a> or <a href="http://www.apple.com/safari/download/">Safari</a>. Some screenshots from different browsers (Windows 7 OS).<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3dexplorer.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/01/3dopera.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/01/3dchrome.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/01/3dsafari.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/01/3dfirefox.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /> </p>
<p>Finally, it’s a good idea to validate the code.</p>
<h3>W3C Validation</h3>
<p>Response: “This document was successfully checked as XHTML 1.0 Strict!”<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3dvalidation.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2010/01/how-to-create-depth-and-nice-3d-ribbons-only-using-css3/feed/</wfw:commentRss>
		<slash:comments>384</slash:comments>
		</item>
		<item>
		<title>Nice And Simple Toolbar For Your Website With CSS3 And jQuery</title>
		<link>http://www.pvmgarage.com/2009/12/nice-and-simple-toolbar-for-your-website-with-css3-and-jquery/</link>
		<comments>http://www.pvmgarage.com/2009/12/nice-and-simple-toolbar-for-your-website-with-css3-and-jquery/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 21:40:31 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=1081</guid>
		<description><![CDATA[During these months I&#8217;ve learned an important lesson as blogger. If you want to start an activity on the web with a blog, magazine or a general website, you must plan a clever action on the Social Networking and Bookmarking websites.
Often it&#8217;s an hard thing to interface a website with the many available social services, but recently there are some famous blogs, like Abduzeedo and Mashable, that are using a fixed toolbar on the bottom of the page with useful ...]]></description>
			<content:encoded><![CDATA[<p>During these months I&#8217;ve learned an important lesson as blogger. If you want to start an activity on the web with a blog, magazine or a general website, you must plan a clever action on the Social Networking and Bookmarking websites.<br />
Often it&#8217;s an hard thing to interface a website with the many available social services, but recently there are some famous blogs, like <a href="http://abduzeedo.com">Abduzeedo</a> and <a href="http://mashable.com">Mashable</a>, that are using a <strong>fixed toolbar on the bottom of the page</strong> with useful button for the sharing.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/11/toolbar1.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /></p>
<p>There are services, like <a href="http://www.wibiya.com">Wibiya</a>, that allow to add a toolbar in a few steps, but why don&#8217;t you create a really custom panel using your CSS and jQuery skills?<br />
In this tutorial we&#8217;ll learn <strong>how to build a nice toolbar for our website using some CSS3 properties and basic jQuery techniques</strong>.</p>
<h2>The Idea Behind</h2>
<p>Our goal is to realize a fixed panel, on the bottom of the page, to improve interaction with our users.<br />
Well, below you can see my idea in &#8220;visible status&#8221; (I&#8217;ve designed it using Photoshop). In this post we&#8217;ll use some basic techniques to realize the panel, after the reading only your fantasy could be a limit to enhance the toolbar for you purposes.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/11/toolbar2.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2009/11/toolbar3.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /></p>
<p>So a panel with social icons and their tooltip bubbles on the left side and a quick menu on the right. Some features we want for our bar:</p>
<ul>
<li>Hide/Show toolbar clicking on specific buttons</li>
<li>Adaptive width during the resizing of the window</li>
<li>Tooltip Bubble when the mouse is moved over an icon</li>
<li>Quick Menu Panel on the right side</li>
<li>Cross Browser Compatibility</li>
</ul>
<h2>Live Demo and Source Files</h2>
<p>To view in action the <a href="http://www.pvmgarage.com/downloads/newsaggregator_toolbar">final result</a> click below on preview button. You can also <a href="http://www.pvmgarage.com/downloads/Toolbar_PVMGARAGE.zip">download the source files</a>.<br />
The toolbar has been thought to be added to the News Aggregator that we built in a previous tutorial, <a href="http://www.pvmgarage.com/en/2009/07/how-to-realize-a-news-aggregator-using-simple-in-an-adaptive-layout/">&#8220;How To Realize A News Aggregator Using Simple Pie In An Adaptive Layout&#8221;</a> (if you want to see only the toolbar in action, please <a href="http://www.pvmgarage.com/downloads/toolbar/">click here</a>).</p>
<p><a href="http://www.pvmgarage.com/downloads/newsaggregator_toolbar"><img src="http://www.pvmgarage.com/contenuti/2009/11/toolbarprev.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /></a></p>
<div style="float: left; width:185px; height: 64px; margin-right: 15px; margin-top:0px;"><a href="http://www.pvmgarage.com/downloads/newsaggregator_toolbar" target="_blank"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/anteprima-but.jpg" alt="Download Source" /></a></div>
<div style="float: left; width:185px; height: 64px;"><a href="http://www.pvmgarage.com/downloads/Toolbar_PVMGARAGE.zip"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/downloadbut.jpg" alt="Download Source" /></a></div>
<div style="width: 100%; clear: both; height: 45px;"></div>
<h2>The Basic Structure</h2>
<p>We&#8217;ll update the HTML code of <em>index.php</em> and the CSS code of <em>style.css</em> of the News Aggregator. </p>
<p>We build a fixed panel (div with id <em>toolbar</em>) with two floating sides where we will add in a second step the list with the icons and their tip bubbles (left), a quick menu and the &#8220;hide button&#8221; (to hide the toolbar ).<br />
We can also expect a &#8220;show button&#8221;, it is useful when the panel is hidden and we want to re-activate it. For this reason we add the <em>div</em> tag with id <em>toolbarbut</em>. </p>
<h3>HTML and CSS code</h3>
<p>Here the html basic structure.</p>
<pre class="brush: html;">
&lt;div id="toolbarbut"&gt;
  &lt;!-- hide button --&gt;
&lt;/div&gt;

&lt;div id="toolbar"&gt; &lt;!-- toolbar container --&gt;

  &lt;div class="leftside"&gt;
    &lt;!-- all icons in floating left side --&gt;
  &lt;/div&gt;

  &lt;div class="rightside"&gt; &lt;!-- all things in floating right side --&gt;
    &lt;!-- hide button --&gt;
    &lt;!-- quick menu list --&gt;
  &lt;/div&gt;

&lt;/div&gt;
</pre>
<p>Update <em>style.css</em> using the following lines of code (take a look at the comments).</p>
<pre class="brush: css;">
div#toolbar, div#toolbarbut {
  position: fixed; /* set fixed position for the bar */
  bottom: 0px;
  right: 0px;
  z-index: 9999; /* keep the bar on top  */
  height: 36px;
  background: url(images/bcktool.png);
  /* CSS3 */
  -moz-border-radius-topleft: 8px;
	-khtml-border-radius-topleft: 8px;
	-webkit-border-top-left-radius: 8px;
	-moz-border-radius-topright: 8px;
	-khtml-border-radius-topright: 8px;
	-webkit-border-top-right-radius: 8px;
	-moz-box-shadow: 0px 1px 10px #666, inset 1px 1px 0px #a4a4a4; /* inset creates a inner-shadow */
  -khtml-box-shadow: 0px 1px 10px #666;
  -webkit-box-shadow: 0px 1px 10px #666;
  /* CSS3 end */
	border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

div#toolbar {
  width: 85%;
  min-width: 700px; /* to limit the width when there is an excessive window resize */
  margin: 0px auto; /* centered toolbar */
  left: 0px;
}

div#toolbar a:hover {
  border: none; /* fix 'hover' (a:hover {border-bottom: 1px dotted #666;}) border in the News Aggregator */
}

div#toolbarbut { /* div for the 'hide status' */
  width: 60px;
  height: 15px;
  margin-right: 3%;
  display: none;
}

.leftside {
  float: left;
}

.rightside {
  float: right;
}
</pre>
<p>It&#8217;s important to note that we have just added a nice shadow effect and rounded borders <strong>exclusively using CSS code</strong>.</p>
<h3>Show/Hide Buttons</h3>
<p>Now we can add the code for the &#8220;show button&#8221;.</p>
<pre class="brush: html;">
&lt;div id="toolbarbut"&gt; &lt;!-- hide button --&gt;
&lt;span class="showbar"&gt;&lt;a href="#"&gt;show bar&lt;/a&gt;&lt;/span&gt;
&lt;/div&gt;
</pre>
<p>Below the properties for the relative CSS class.</p>
<pre class="brush: css;">
span.showbar a { /* show button */
  padding: 5px;
  font-size: 10px;
  color: #989898;
}
</pre>
<p>We complete the right side later, but now we can add the &#8220;hide button&#8221; within the <em>div</em> with id <em>rightside</em>, as shown.</p>
<pre class="brush: html;">
&lt;div class="rightside"&gt;
  &lt;span class="downarr"&gt; &lt;!-- hide button --&gt;
  &lt;a href="#"&gt;&lt;/a&gt;
  &lt;/span&gt;

  &lt;!-- other stuff in floating right side --&gt;

&lt;/div&gt;
</pre>
<p>Properties for the relative CSS class.</p>
<pre class="brush: css;">
/*-- Right Side --*/

span.downarr { /* hide button */
  float: right;
  border-left: 1px solid #a4a4a4;
}

span.downarr a {
  display: block;
  width: 36px;
  height: 26px;
  padding: 25px 0 0 10px;
  background: url(images/downarrow.png) no-repeat 5px 7px;
}
</pre>
<h3>Show/Hide Effect with jQuery</h3>
<p>First of all we need to <a href="http://jquery.com">download jQuery</a> (copy it in the right folder) and activate it in <em>head</em> tag of <em>index.php</em>.</p>
<pre class="brush: html;">
&lt;head&gt;
&lt;!-- ... --&gt;
&lt;script type="text/javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
</pre>
<p>We want to hide the panel clicking on &#8220;hide button&#8221;, when the toolbar isn&#8217;t visible there should be the &#8220;show button&#8221; that allows us to restore the panel.<br />
We can use the following jQuery solution (add the code after the <em>&lt;body&gt;</em> tag).</p>
<pre class="brush: javascript;">
&lt;script type="text/javascript"&gt;

$(document).ready(function(){

  //hide toolbar and make visible the 'show' button
	$("span.downarr a").click(function() {
    $("#toolbar").slideToggle("fast");
    $("#toolbarbut").fadeIn("slow");
  });

  //show toolbar and hide the 'show' button
  $("span.showbar a").click(function() {
    $("#toolbar").slideToggle("fast");
    $("#toolbarbut").fadeOut();
  });

});

&lt;/script&gt;
</pre>
<p>Now we can hide and show the bar whenever we want.</p>
<h2>Left Side</h2>
<p>In this space we add a list of Social Network Icons (we use <a href="http://tydlinka.deviantart.com/art/Set-of-social-icons-109435724">&#8220;Set of social icons&#8221; by Tydlinka</a>), with a particularity: we want to show tooltip when the mouse is moved over a list element.</p>
<h3>HTML and CSS code for the Left Side</h3>
<p>Update the index with the following XHTML code. We add a general unordered list (with id <em>social</em>) to create the sequence of the icons and a <em>div</em> tag (with class <em>tip</em>) nested within the <em>li</em> tag of the general list to realize the tooltip bubble.</p>
<pre class="brush: html;">
&lt;div class="leftside"&gt; &lt;!-- all things in floating left side --&gt;
  &lt;ul id="social"&gt;
    &lt;li&gt;&lt;a class="rss" href="#"&gt;&lt;/a&gt;&lt;!-- icon --&gt;
      &lt;div id="tiprss" class="tip"&gt;&lt;!-- tooltip --&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;580 Readers&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;&lt;small&gt;[Subscribe]&lt;/small&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a class="facebook" href="#"&gt;&lt;/a&gt;
      &lt;div id="tipfacebook" class="tip"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Share Page&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;| Profile&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a class="twitter" href="#"&gt;&lt;/a&gt;
      &lt;div id="tiptwitter" class="tip"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;ReTweet&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;| Profile&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a class="delicious" href="#"&gt;&lt;/a&gt;
      &lt;div id="tipdelicious" class="tip"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Bookmark&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;| Profile&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a class="digg" href="#"&gt;&lt;/a&gt;
      &lt;div id="tipdigg" class="tip"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Digg&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;| Profile&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a class="stumble" href="#"&gt;&lt;/a&gt;
      &lt;div id="tipstumble" class="tip"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Stumble&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;| Profile&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
</pre>
<p>And now the CSS code. We use <em>position: absolute;</em> to set-up a custom position for the tip bubble.</p>
<pre class="brush: css;">
/*-- Left Side --*/

ul#social li {
  display: inline;
}

a.rss {
  display: inline-block;
  width: 104px;
  height: 35px;
  margin-left: 5px;
  background: url(images/rss.png) no-repeat;
}

a.facebook, a.twitter, a.digg, a.delicious, a.stumble {
  display: inline-block;
  width: 40px;
  height: 35px;
  margin-top: 1px;
}

a.rss:hover, a.facebook:hover, a.twitter:hover, a.digg:hover, a.delicious:hover, a.stumble:hover {
  background-position: 1px 1px; /* simple css hover effect */
}

a.facebook {
  background: url(images/facebook.png) no-repeat;
}

a.twitter {
  background: url(images/twitter.png) no-repeat;
}

a.delicious {
  background: url(images/delicious.png) no-repeat;
}

a.digg {
  background: url(images/digg.png) no-repeat;
}

a.stumble {
  background: url(images/stumble.png) no-repeat;
}

.tip {
  position: absolute; /* important */
  top: -75px;
  width: 250px;
  height: 78px;
  background: url(images/tip.png) no-repeat;
  float: left;
  display: none;
}

/* custom distances for the icons */
#tipfacebook {
  left: 75px;
}

#tiptwitter {
  left: 120px;
}

#tipdelicious {
  left: 165px;
}

#tipdigg {
  left: 210px;
}

#tipstumble {
  left: 255px;
}

.tip ul {
  padding: 22px 0 0 25px;
}

.tip ul li {
  display: inline;
  padding-left: 3px;
}

.tip ul li a {
  font-size: 18px;
  color: #989898;
}       

.tip ul li a:hover {
  color: #666;
}

.tip ul li small {
  font-size: 10px;
}
</pre>
<h3>Use jQuery to Set-up the Hover Effect for Tooltip Bubbles</h3>
<p>It&#8217;s time to add a nice effect for our bubbles. As usual, with some lines of code, jQuery allows us to create a nice menu for sharing our pages on the Social Networking and Bookmarking websites.</p>
<pre class="brush: javascript;">
//show tooltip when the mouse is moved over a list element
  $("ul#social li").hover(function() {
		$(this).find("div").fadeIn("fast").show(); //add 'show()'' for IE
    $(this).mouseleave(function () { //hide tooltip when the mouse moves off of the element
        $(this).find("div").hide();
    });
  });
</pre>
<h2>Right Side</h2>
<p>Now near the &#8220;hide button&#8221; we add a useful quick menu. </p>
<h3>HTML and CSS code for the Right Side</h3>
<p>Here the complete code. We use a <em>span</em> for the menu title and a new <em>div</em> (with id <em>quickmenu</em>) for the new panel.</p>
<pre class="brush: html;">
&lt;div class="rightside"&gt; &lt;!-- all things in floating right side --&gt;
  &lt;span class="downarr"&gt; &lt;!-- hide button --&gt;
  &lt;a href="#"&gt;&lt;/a&gt;
  &lt;/span&gt;
  &lt;span class="menu_title"&gt;
    &lt;a class="menutit" href="#"&gt;quick menu&lt;/a&gt; &lt;!-- quick menu title --&gt;
  &lt;/span&gt;
  &lt;div class="quickmenu"&gt;
    &lt;ul&gt; &lt;!-- quick menu list --&gt;
      &lt;li&gt;&lt;a href="#"&gt;Premium Member&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Become Author&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Submit News&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Send Feedback&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Privacy Policy&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  &lt;/div&gt;
</pre>
<p>And now the style!</p>
<pre class="brush: css;">
/*-- Right Side --*/

span.downarr { /* hide button */
  float: right;
  border-left: 1px solid #a4a4a4;
}

span.downarr a {
  display: block;
  width: 36px;
  height: 26px;
  padding: 25px 0 0 10px;
  background: url(images/downarrow.png) no-repeat 5px 7px;
}

span.menu_title {
  background: #e4e4e4;
  border-left: 1px solid #a4a4a4;
  padding: 10px;
}

span.menu_title a {
  font-size: 16px;
  line-height: 34px;
  color: #9a9a9a;
}

.quickmenu {
  position: absolute; /* important */
  top: -251px;
  right: 46px;
  width: 260px;
  height: 250px;
  background: #e4e4e4;
	border-top: 1px solid #a4a4a4;
  border-left: 1px solid #a4a4a4;
  border-right: 1px solid #a4a4a4;
  /* CSS3 */
  -moz-box-shadow: 2px -3px 5px #c5c5c5, -3px 0px 5px #cdcdcd;
  -khtml-shadow: 2px -3px 5px #c5c5c5, -3px 0px 5px #cdcdcd;
  -webkit-box-shadow: 2px -3px 5px #c5c5c5, -3px 0px 5px #cdcdcd;
  /* CSS3 end */
  display: none; /* important */
}

.quickmenu ul {
  padding-top: 20px;
}

.quickmenu ul li {
  border-bottom: 1px solid #989898;
  padding: 5px 10px;
  margin: 0 15px 0 15px;
}

.quickmenu ul li a {
  font-size: 18px;
  color: #989898;
  display: block;
}

.quickmenu ul li a:hover {
  color: #666;
}
</pre>
<h3>Show/Hide QuickMenu Panel on Click Event</h3>
<p>Below you can see the jQuery code used to make visible or hidden the menu panel clicking on menu title (tag <em>a</em> with class <em>menutit</em>). We also add a little fix to avoid the jump to link anchor (#).  </p>
<pre class="brush: javascript;">
//show quick menu on click
	$("span.menu_title a").click(function() {
		if($(".quickmenu").is(':hidden')){ //if quick menu isn't visible
			$(".quickmenu").fadeIn("fast"); //show menu on click
		}
		else if ($(".quickmenu").is(':visible')) { //if quick menu is visible
      $(".quickmenu").fadeOut("fast"); //hide menu on click
    }
	});

	//hide menu on casual click on the page
	$(document).click(function() {
			$(".quickmenu").fadeOut("fast");
	});
	$('.quickmenu').click(function(event) {
		event.stopPropagation(); //use .stopPropagation() method to avoid the closing of quick menu panel clicking on its elements
	});

	//don't jump to #id link anchor
  $(".facebook, .twitter, .delicious, .digg, .rss, .stumble, .menutit, span.downarr a, span.showbar a").click(function() {
   return false;
	});
</pre>
<p>That&#8217;s all friend! <a href="http://www.pvmgarage.com/downloads/toolbar.txt">Click here to visualize the complete code</a>.</p>
<h2>Conclusions</h2>
<p>I think this kind of solution is useful to enhance interaction with your users, it can simplify the sharing of the contents and it could be really useful to improve your presence on the Social Networking websites. Think also at the possibility of providing quick-links for your readers to increase the page views .</p>
<p>It&#8217;s a good idea to validate the toolbar code and to test the browser compatibility.</p>
<h3>W3C Validation</h3>
<p>Response: &#8220;This document was successfully checked as XHTML 1.0 Strict!&#8221;<br />
<a href="http://validator.w3.org/check?uri=http://www.pvmgarage.com/downloads/toolbar/"><img src="http://www.pvmgarage.com/contenuti/2009/11/toolbar4.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /></a></p>
<h3>Browser Compatibility</h3>
<p>Some screenshots from different browsers (Windows 7 OS).<br />
<img src="http://www.pvmgarage.com/contenuti/2009/11/toolbarprevfirefox.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /><br />
<img src="http://www.pvmgarage.com/contenuti/2009/11/toolbarprevsafari.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /><br />
<img src="http://www.pvmgarage.com/contenuti/2009/11/toolbarprevchrome.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /><br />
<img src="http://www.pvmgarage.com/contenuti/2009/11/toolbarprevie.jpg" alt="Nice And Simple Toolbar For Your Website with CSS3 And jQuery" /> </p>
<p>A little note: the images for this tutorial are in <em>images</em> folder in the archive with the source files, where you can also find a complete layered psd file of the toolbar. <a href="http://www.pvmgarage.com/downloads/Toolbar_PVMGARAGE.zip">Download it</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/12/nice-and-simple-toolbar-for-your-website-with-css3-and-jquery/feed/</wfw:commentRss>
		<slash:comments>168</slash:comments>
		</item>
		<item>
		<title>Overview On Our Sponsor SEO Semantic XHTML</title>
		<link>http://www.pvmgarage.com/2009/11/overview-on-our-sponsor-seo-semantic-xhtml/</link>
		<comments>http://www.pvmgarage.com/2009/11/overview-on-our-sponsor-seo-semantic-xhtml/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 13:29:51 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Inspiration]]></category>

		<guid isPermaLink="false">http://91.194.90.123/en/?p=1021</guid>
		<description><![CDATA[Seo-Semantic-xhtml came to me as godsend. I was involved in a project of large magnitude and the deadline of the project was nearing. Time constraints and fear of losing a great client forced me to outsource PSD to HTML / XHTML &#038; CSS work. I would like to share my professional journey with seo-semantic-xhtml.

 
Seo-semantic-xhtml.com &#8211; a friend in deed
An impressive clientele with some highlights like Sony Pictures, Best of the Web and The Walt Disney Company stuck me to ...]]></description>
			<content:encoded><![CDATA[<p><strong>Seo-Semantic-xhtml</strong> came to me as godsend. I was involved in a project of large magnitude and the deadline of the project was nearing. Time constraints and fear of losing a great client forced me to outsource <a href="http://www.seo-semantic-xhtml.com/">PSD to HTML / XHTML &#038; CSS</a> work. I would like to share my professional journey with <strong>seo-semantic-xhtml</strong>.<br />
<span id="more-1021"></span><br />
<a href="http://www.seo-semantic-xhtml.com/"><img src="http://www.pvmgarage.com/contenuti/2009/11/seo-semantic-xhtml.jpg" alt="SEO Semantic XHTML" /></a> </p>
<h2>Seo-semantic-xhtml.com &#8211; a friend in deed</h2>
<p>An impressive clientele with some highlights like <strong>Sony Pictures, Best of the Web</strong> and <strong>The Walt Disney Company</strong> stuck me to this website. <a href="http://www.seo-semantic-xhtml.com/portfolio.html">The coding samples and portfolio</a> leaves a remarkable impression on the visitor. Within half an hour of discussion via online customer service I was sorted. I showed them my designs, talked about the course of action and the Money Back guarantee.  </p>
<h2>The X-factor</h2>
<p>Similar time zone added to the convenience of both the parties. The quality guidelines issued by them include w3c validation, compatibility with operating systems like IE, Firefox, Opera and Chrome. 100% Money Back guarantee is like an icing on the top. The turnaround time and compatibility with different browsers are of high standards. </p>
<h2>Leading by trust</h2>
<p>The whole process is simple and customer friendly. I filled up the <a href="http://www.seo-semantic-xhtml.com/order.php">online order form</a> wherein I chose a suitable package and uploaded my design. Later I received a confirmation message soon after the processing of the form. My order was confirmed and I received a delivery schedule for personal records. Adding to my surprise, I was delivered the first file within 8 hours and it assured me that the claim was not just a marketing gimmick. </p>
<h2>Reasonable Pricing</h2>
<p>The packages are quite reasonable, <strong>starting from $89</strong>. Different markup selections offer different options like: HTML strict, XHTML transitional and XHTML strict. If you wish to choose a professional package, you can opt for a great deal at $179. </p>
<h2>Great Customer Support</h2>
<p><strong>Seo-semantic-xhtml</strong> swears to keep their customers happy. The customer support is immense with a helpful, cheerful staff. Their support is available 24*7 and the response time is quite reduced. I was impressed by the constant track kept on my project. They are spread all over IMs, emails or SMSes.  </p>
<h2>Portfolio</h2>
<p>To peep into their previous work, please visit: <a href="http://www.seo-semantic-xhtml.com/portfolio.html">seo-semantic-xhtml.com/portfolio</a></p>
<h2>The final product</h2>
<p>The task was finished before the expected delivery date which left me quite impressed. The quality of the work was intact as the coding didn’t distort my designs, and w3c validation helped the website maintain compatibility with all the browsers. </p>
<h2>Word of mouth</h2>
<p><a href="http://www.seo-semantic-xhtml.com/portfolio.html">www.seo-semantic-xhtml.com</a> is highly recommended for <a href="http://www.seo-semantic-xhtml.com/portfolio.html">HTML coding</a>. Great quality, fast delivery, reasonable charges and Money Back guarantee are enough reasons for me to go back again. I consider seo-semantic-xhtml as my true, reliable friend.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/11/overview-on-our-sponsor-seo-semantic-xhtml/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>MakingSEO coded, Free CSS Template with PSD-to-HTML tips</title>
		<link>http://www.pvmgarage.com/2009/09/makingseo-coded-free-css-template-with-psd-to-html-tips/</link>
		<comments>http://www.pvmgarage.com/2009/09/makingseo-coded-free-css-template-with-psd-to-html-tips/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 11:54:02 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=952</guid>
		<description><![CDATA[By this time I&#8217;m sure, the superheroes don&#8217;t have particular superpowers. The crisis are still running and I certainly cannot save the world, dammit! But&#8230; I&#8217;ve coded the PSD Template makingSEO and in this post you can read some quick tips used in the psd-to-html conversion (in case you missed the first part, please read Design A Clean And Fresh Company Website In Photoshop). 
In previous tutorials we have learned some techniques on how to convert a design mockup into ...]]></description>
			<content:encoded><![CDATA[<p>By this time I&#8217;m sure, the superheroes don&#8217;t have particular superpowers. The crisis are still running and I certainly cannot save the world, dammit! But&#8230; I&#8217;ve coded the <a href="http://www.pvmgarage.com/en/2009/09/design-a-clean-and-fresh-company-website-in-photoshop/">PSD Template makingSEO</a> and in this post you can read some quick tips used in the psd-to-html conversion (in case you missed the first part, please read <a href="http://www.pvmgarage.com/en/2009/09/design-a-clean-and-fresh-company-website-in-photoshop/">Design A Clean And Fresh Company Website In Photoshop</a>). </p>
<p>In previous tutorials we have learned some techniques on <strong>how to convert a design mockup into a complete web-page using xhtml and css</strong>, so the following information will be only a quick review on code. If you want more suggestions on psd-to-html conversion you can take a look at these articles:</p>
<ul style="margin: 20px 0 20px 0;">
<li><a href="http://www.pvmgarage.com/en/2009/07/sportnewspvm-coded-how-to-plan-a-web-layout-for-a-wordpress-theme/">SportNewsPvm Coded, How To Plan A Web Layout For A WordPress Theme</a></li>
<li><a href="http://www.pvmgarage.com/en/2009/06/create-a-nice-web-portfolio-design-with-a-watercolored-background-in-photoshop/">Create a Nice Web Portfolio Design with a Watercolored Background in Photoshop</a></li>
<li><a href="http://www.pvmgarage.com/en/2009/05/designschool-coded-free-css-template-with-psd-to-html-tutorial/">DesignSchool Coded, Free CSS Template With PSD to HTML Tutorial</a></li>
</ul>
<p>Below there are the final result of the <a href="http://www.pvmgarage.com/downloads/makingseo">makingSEO psd-to-html conversion</a> and the link to download the complete CSS Template. Don&#8217;t forget, the source files are released under the <a href="http://creativecommons.org/licenses/by/3.0/">Creative Common License (CC 3.0 Attribution)</a> also for commercial use. </p>
<h2>Final Result, Css Template</h2>
<p>Here you can see a preview image and a live demo. You can also download the zip archive with the complete CSS template.<br />
<a href="http://www.pvmgarage.com/downloads/makingseo" target="_blank"><img src="http://www.pvmgarage.com/contenuti/2009/09/makingseo_preview_css.jpg" alt="makingSEO CSS Template" /></a></p>
<div style="float: left; width:185px; height: 64px; margin-right: 15px; margin-top:0px;"><a href="http://www.pvmgarage.com/downloads/makingseo" target="_blank"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/anteprima-but.jpg" alt="Download Source" /></a></div>
<div style="float: left; width:185px; height: 64px; margin-top:0px;"><a href="http://www.pvmgarage.com/downloads/makingSEO_Coded_PVMGARAGE.zip"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/downloadbut.jpg" alt="Download Source" /></a></div>
<div style="width: 100%; clear: both; height: 45px;"></div>
<h2>Coding makingSEO</h2>
<p>We can partition the layout in five sections: <strong>header</strong>, <strong>down-header</strong>, <strong>contents</strong>, <strong>sidebar</strong> and <strong>footer</strong>. Besides we can use two general <em>div</em>, <strong>main_container</strong> and <strong>container</strong>. The first to add the top-background and the second to keep in 960 px the segments (header, down header, contents and sidebar).<br />
<img src="http://www.pvmgarage.com/contenuti/2009/09/makingseo_wireframe.jpg" alt="makingSEO CSS Template" /> </p>
<p>Now is time for the code. This section of the post will show the essential steps to code the psd template.<br />
In the folder &#8220;makingseo&#8221; we put in &#8220;images&#8221; folder and the necessary files: &#8220;index.html&#8221; and &#8220;style.css&#8221; and &#8220;reset.css&#8221; (generally I use the <a href="http://developer.yahoo.com/yui/reset/">Yahoo! YUI Reset CSS</a>, but in this case we test the reset file included in <a href="http://www.blueprintcss.org/">Blueprint CSS Framework</a>).</p>
<p>Below the complete &#8220;reset.css&#8221; file (you can optimize it for your needs).</p>
<pre class="brush: css;">
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, code,
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  line-height: 1.5;
}

table { border-collapse: separate; border-spacing: 0; }
caption, th, td { text-align: left; font-weight: normal; }
table, td, th { vertical-align: middle; }

blockquote:before, blockquote:after, q:before, q:after { content: ""; }
blockquote, q { quotes: "" ""; }

a img { border: none; }
</pre>
<h3>Step 1 &#8211; Main Structure</h3>
<p>The markup for the main structure (edit &#8220;index.html&#8221;).</p>
<pre class="brush: html;">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;makingSEO - Improve Your Business | A free CSS Template | made in PV.M Garage&lt;/title&gt;
&lt;link href="reset.css" rel="stylesheet" type="text/css" /&gt;&lt;!-- blueprint css reset --&gt;
&lt;link href="style.css" rel="stylesheet" type="text/css" /&gt;&lt;!-- css style for makingSEO --&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id="main_container"&gt;&lt;!-- for general background --&gt;
&lt;div class="container clearfix"&gt;&lt;!-- to keep in 960 pixels the segments --&gt;

  &lt;div id="header"&gt;&lt;!-- here we'll add logo and menu --&gt;
  &lt;/div&gt;

  &lt;div id="down_header"&gt;&lt;!-- here we'll add slogan, screenshot and call-to action button --&gt;
  &lt;/div&gt;

  &lt;div class="contents"&gt;&lt;!-- here we'll add the info boxes --&gt;
  &lt;/div&gt;

  &lt;div class="sidebar"&gt;&lt;!-- here some side information --&gt;
  &lt;/div&gt;

&lt;/div&gt;&lt;!-- end container --&gt;

&lt;div id="footer"&gt;&lt;!-- here the footer --&gt;
&lt;/div&gt;

&lt;/div&gt;&lt;!-- end main_container --&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>To reproduce background we use the following image.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/09/general_bck.jpg" alt="makingSEO CSS Template" /></p>
<p>Below the css rules.</p>
<pre class="brush: css;">
@charset "utf-8";
/* CSS Document */

body {
  background: #f5f5f5;
  font-family: Verdana, Georgia, “Lucida Sans Unicode”, sans-serif;
  font-size: 12px;
  color: #666;
}

/* General */

:focus {
	outline: 0;
}

a {
  text-decoration: none;
}

ul {
	list-style-type:none;
	color: #fff;
}

/* Container */

#main_container {
  background: url("images/bck.jpg") repeat-x top; /* General Background */
}

.container {
  width: 960px; /* here the width for the segments */
  margin: auto;
}

.clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
  overflow: hidden;
}
</pre>
<h3>Step 2 &#8211; Header with Logo and Menu</h3>
<p>Now we add logo and menu in the header. Below there are the images exported from psd.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/09/imgs_header.jpg" alt="makingSEO CSS Template" /></p>
<p>Below the (x)html code for header.</p>
<pre class="brush: html;">
&lt;div id="header"&gt;
    &lt;div class="logo"&gt;
      &lt;h1&gt;&lt;a href="#"&gt;makingSEO - Improve Your Business&lt;/a&gt;&lt;/h1&gt;
    &lt;/div&gt;
    &lt;div class="menu"&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;Services&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Tools&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Strategies&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Prices&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</pre>
<p>And now, the style.</p>
<pre class="brush: css;">
/* Header */

#header {
  height: 156px;
}

.logo {
  float: left;
  background: url("images/light_head.png") no-repeat top left;
  height: 156px;
}

.logo h1 {
  text-indent: -9999px;
  margin-top: 40px;
}

.logo h1 a {
  display: block;
  background: url("images/logo.png") no-repeat top;
  width: 398px;
  height: 61px;
}

.menu ul {
  float: right;
  margin-top: 5px;
  padding-bottom: 10px;
  width: 377px;
  text-align: center;
  background: url("images/dashed_h.png") no-repeat bottom;
}

.menu ul li {
  display: inline;
  padding: 10px 10px 70px 10px;
  background: url("images/dashed_v.png") no-repeat top right;
  margin-left: -5px;
}

.menu ul li a {
  color: #fff;
  padding-bottom: 70px;
}

.menu ul li:hover {
  background: url("images/menu_hov.png") repeat-x top right;
}
</pre>
<h3>Step 3 &#8211; Slogan and Screenshot in Down-Header</h3>
<p>In Down-Header segment we add a direct slogan, a screenshot of a website that rocks with the help of makingSEO team and a call-to-action button. Below the pictures used to complete this section of the web-page.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/09/down_header_imgs.jpg" alt="makingSEO CSS Template" /></p>
<p>Below you can see the html code for the down-header. </p>
<pre class="brush: html;">
  &lt;div id="down_header"&gt;
    &lt;div class="d_h_left"&gt;
    &lt;/div&gt;
    &lt;div class="d_h_right"&gt;
      &lt;span class="button"&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</pre>
<p>The style for this segment.</p>
<pre class="brush: css;">
/* Down Header */

#down_header {
   height: 320px;
   padding-top: 25px;
}

.d_h_left {
  float: left;
  width: 520px;
  height: 308px;
  margin-left: -14px;
  background: url("images/screenshot.png") repeat-x top left;
}

.d_h_right {
  float: right;
  width: 450px;
  height: 138px;
  margin: 16px 0 0 4px;
  background: url("images/slogan.png") no-repeat top left;
}

.button a {
  display: block;
  width: 324px;
  height: 70px;
  position: relative;
  top: 145px;
  left: 61px;
  background: url("images/call-but.png") no-repeat 0px -70px;
}

.button a:hover {
  background: url("images/call-but.png") no-repeat 0px 0px; /* CSS Sprites technique for the button*/
}
</pre>
<h3>Step 4 &#8211; The Contents</h3>
<p>The left side is the core of the web-page in which the visitors have the opportunity to know more about the Company. We use some icones and a soft dashed grid.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/09/contents_imgs.jpg" alt="makingSEO CSS Template" /><br />
<img src="http://www.pvmgarage.com/contenuti/2009/09/content_imgs.jpg" alt="makingSEO CSS Template" /></p>
<p>We write the html code&#8230;</p>
<pre class="brush: html;">
&lt;div class="contents"&gt;
    &lt;div class="post_cont"&gt;
      &lt;h1 class="top_left"&gt;&lt;a href="#"&gt;We Study the Best Solutions to Improve Your Visibility&lt;/a&gt;&lt;/h1&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="post_cont"&gt;
      &lt;h1 class="top_right"&gt;&lt;a href="#"&gt;In One Month You Could Be in the First Page of Google&lt;/a&gt;&lt;/h1&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.&lt;/p&gt;
      &lt;span class="button_post_g"&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="post_cont"&gt;
      &lt;h1 class="down_left"&gt;&lt;a href="#"&gt;Organize Your Business with our Experts&lt;/a&gt;&lt;/h1&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="post_cont"&gt;
      &lt;h1 class="down_right"&gt;&lt;a href="#"&gt;We Study the Best Solutions to Improve Your Visibility&lt;/a&gt;&lt;/h1&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.&lt;/p&gt;
      &lt;span class="button_post_o"&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</pre>
<p>&#8230; and the rules for the style of the contents.</p>
<pre class="brush: css;">
/* Contents */

.contents {
  float: left;
  width: 690px;
}

.post_cont {
  width: 310px;
  float: left;
  margin: 0 30px 30px 0;
  background: url("images/dashed_v_g.png") no-repeat right;
  height: 300px;
}

.post_cont h1 a {
  padding-bottom: 0px;
  font-size: 14px;
  color: #424242;
  display: block;
}

.post_cont h1 a:hover {
  color: #d5943f;
}

.post_cont p {
  margin-left: 10px;
  padding: 15px 10px 30px 0;
  background: url("images/dashed_h_g.png") no-repeat top right;
}

h1.top_left a {
  background: url("images/ico_top_left.png") no-repeat left center;
  padding: 20px 5px 20px 85px;
}

h1.top_right a {
  background: url("images/ico_top_right.png") no-repeat left center;
  padding: 20px 5px 20px 70px;
}

h1.down_left a {
  background: url("images/ico_down_left.png") no-repeat left center;
  padding: 20px 5px 20px 72px;
}

h1.down_right a {
  background: url("images/ico_down_right.png") no-repeat left center;
  padding: 20px 5px 20px 72px;
}

span.button_post_g a, span.button_post_o a {
  display: block;
  width: 256px;
  height: 46px;
  position: relative;
  top: -10px;
  left: 83px;
}

span.button_post_g a {
  background: url("images/call-but-post.png") no-repeat right top;
}

span.button_post_o a {
  background: url("images/call-but-post_o.png") no-repeat right top;
}
</pre>
<h3>Step 5 &#8211; The Sidebar</h3>
<p>Side information for our page. Below the (x)html code and the style.</p>
<pre class="brush: html;">
  &lt;div class="sidebar"&gt;
    &lt;div class="sidecont"&gt;
      &lt;h2&gt;Side Info&lt;/h2&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="sidecont"&gt;
      &lt;h2&gt;Blog Posts&lt;/h2&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;Donec quam felis, ultricies nec, pellentesque eu.&lt;/a&gt;&lt;span class="side_meta_info"&gt;posted by piervix - 12.08&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Donec quam felis, ultricies nec, pellentesque eu.&lt;/a&gt;&lt;span class="side_meta_info"&gt;posted by piervix - 12.08&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Donec quam felis, ultricies nec, pellentesque eu.&lt;/a&gt;&lt;span class="side_meta_info"&gt;posted by piervix - 12.08&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Donec quam felis, ultricies nec, pellentesque eu.&lt;/a&gt;&lt;span class="side_meta_info"&gt;posted by piervix - 12.08&lt;/span&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div class="sidecont"&gt;
      &lt;h2&gt;Working on...&lt;/h2&gt;
       &lt;p&gt;Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.&lt;/p&gt;
      &lt;a href="#"&gt;&lt;img src="images/img_side.jpg" alt="" /&gt;&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</pre>
<p>We update the &#8220;style.css&#8221; files with this lines of code.</p>
<pre class="brush: css;">
/* Sidebar */

.sidebar {
  float: right;
  margin-top: -50px;
  width: 220px;
  background: #fff;
  border: 1px solid #dcdcdc;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
}

.sidecont {
  margin: 18px 10px;
  font-size: 11px;
}

.sidecont img {
  margin-top: 10px;
  border: 3px solid #bdbdbd;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
}

.sidecont h2 {
  font-size: 18px;
}

.sidecont p, .sidecont ul li {
  padding-top: 7px;
}

.sidecont ul li a {
  display: block;
  font-weight: bold;
  color: #666;
}

.sidecont ul li a:hover {
  color: #d5943f;
}

.side_meta_info {
  color: #d5943f;
}
</pre>
<h3>Step 6 &#8211; The Footer</h3>
<p>This segment isn&#8217;t included in the main-container div, this for adding the background in the right way. Take a look at the images used.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/09/footer_imgs.jpg" alt="makingSEO CSS Template" /></p>
<p>Finally the code for the footer and the credits.</p>
<pre class="brush: html;">
&lt;div id="footer"&gt;
  &lt;div class="foot_info"&gt;
    &lt;div class="foot_col_l_c"&gt;
      &lt;h2&gt;Our Tweets &lt;a href="#"&gt;/ Follow Us&lt;/a&gt;&lt;/h2&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;strong&gt;@virtuosoblogger&lt;/strong&gt; 400+ Beautifully Designed Twitter Icons http://ow.ly/oBb6&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;strong&gt;@bkmacdaddy&lt;/strong&gt; Bit.ly lowers the bar on URL shortening - http://bit.ly/cMBAc&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;strong&gt;@gaksdesigns&lt;/strong&gt; Retro Design and Typography http://bit.ly/1TRunk&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div class="foot_col_l_c"&gt;
      &lt;h2&gt;Work in progress&lt;/h2&gt;
      &lt;ul class="foot_center"&gt;
        &lt;li class="foot_ico_1"&gt;&lt;a href="#"&gt;Sed ut perspiciatis unde omnis iste natus error sit &lt;/a&gt;&lt;/li&gt;
        &lt;li class="foot_ico_2"&gt;&lt;a href="#"&gt;At enim ad minima veniam, quis nostrum&lt;/a&gt;&lt;/li&gt;
        &lt;li class="foot_ico_3"&gt;&lt;a href="#"&gt;At vero eos et accusamus et iusto odio dignissimos ducimus qui&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div class="foot_right"&gt;
      &lt;h2&gt;Work in progress&lt;/h2&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/img1.jpg" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/img2.jpg" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/img3.jpg" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;img src="images/img4.jpg" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="credits"&gt;
    &lt;p&gt;&lt;a href="#"&gt;makingSEO&lt;/a&gt; is released under a &lt;a href="#"&gt;&lt;em&gt;Creative Common License&lt;/em&gt;&lt;/a&gt; also for Commercial Use. We hope you'll support &lt;a href="#"&gt;PV.M Garage&lt;/a&gt;, it is an awesome place for sharing!&lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
<p>We update the CSS file with the following rules.</p>
<pre class="brush: css;">
/* Footer */

#footer {
  background: url("images/bck_foot.jpg") repeat-x top; /* general background for footer */
}

.foot_info {
  margin: auto;
  width: 960px; /* keep in 960 pixels the footer contents */
}

.foot_col_l_c {
  width: 285px;
  float: left;
  margin: 20px 35px -30px 0px;
  padding: 0px 10px 0px 10px;
  height: 300px;
}

.foot_info h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
  padding: 8px 0px;
  background: url("images/dashed_f.png") no-repeat center bottom;
}

.foot_info h2 a {
  color: #306e8f;
  background: url("images/ico_foot.png") no-repeat top right;
  padding: 10px 45px 10px 0;
}

.foot_info h2 a:hover {
  color: #fff;
}

.foot_col_l_c ul li {
  padding: 8px 0px;
  background: url("images/dashed_f.png") no-repeat center bottom;
}

.foot_col_l_c ul li a {
  color: #fff;
  display: block;
}

.foot_col_l_c ul li a:hover {
  color: #c3dd6c;
}

ul.foot_center li a:hover { /* change hover color */
  color: #d5943f;
}

li.foot_ico_1 a {
  padding-right: 50px;
  margin-right: 11px;
  background: url("images/ico_foot_1.png") no-repeat center right;
}

li.foot_ico_2 a {
  padding-right: 50px;
  margin-right: 8px;
  background: url("images/ico_foot_2.png") no-repeat center right;
}

li.foot_ico_3 a {
  padding-right: 50px;
  margin-right: 12px;
  background: url("images/ico_foot_3.png") no-repeat center right;
}

.foot_right {
  width: 221px;
  float: right;
  margin-top: 20px;
}

.foot_right ul {
  background: url("images/foot_img_bck.png") no-repeat top left;
  margin-left: 5px;
}

.foot_right ul li {
  display: inline;
}

.foot_right img {
  border: 3px solid #fff;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  margin: 10px 20px 8px 0px;
}

#credits {
  clear: both;
  margin-bottom: 10px;
}

#credits p {
  width: 600px;
  text-align: center;
  margin: auto;
}

#credits p a {
  font-weight: bold;
  color: #666;
  width: 600px;
  text-align: center;
  margin: auto;
  font-size: 11px;
}

#credits p a:hover {
  border-bottom: 1px dotted #666;
}
</pre>
<h2>Conclusions</h2>
<p>Yes, this layout is released under the <a href="http://creativecommons.org/licenses/by/3.0/">Creative Common License (CC 3.0 Attribution)</a> also for commercial use and you can copy, edit, sell, eat, drink, re-publish it. Remeber it is only a basic xhtml and css template if you have some ideas on how to improve the layout, please share them through the comments (e.g. <em>maybe a slideshow for the screenshit section could be a good solution, but can it save the worls?</em>).</p>
<p>The template has been tested on IE8, Firefox 3.5, Opera and Safari. It have a valid <a href="http://validator.w3.org/check?uri=referer">XHTML code</a>. </p>
<p>Thanks fo reading dear friends!</p>
<h2>PSD to HTML Services Sponsored on PV.M Garage</h2>
<p>I&#8217;m sure! You have the necessary skill to convert a PSD mockup in a wonderful website, but if you have many projects in progress you could consider a PSD to HTML Service.</p>
<h3>Pixel Crayons</h3>
<p><a href="http://xhtml.pixelcrayons.com/">XHTML.pixelcrayons.com</a> (a specialized division of Pixelcrayons) offers high quality hand coded pixel-precise markup services and implementation into skins, themes, CMS, shopping carts and more. They accept files in all common formats (PSD/AI/PNG/PDF) and even existing markup.</p>
<p>Their online Order page details various markup packages offered along with a variety of options for markup and software implementation.<br />
<a href="http://xhtml.pixelcrayons.com/"><img src="http://www.pvmgarage.com/contenuti/2009/09/pixelcrayons.jpg" alt="Pixel Crayons" /></a></p>
<h3>Rapid XHTML</h3>
<p><a href="http://www.rapidxhtml.com/">RapidxHTML</a> is a small team of designers and developers, with a wide range of skills and experience. Each of us know our strengths and weaknesses and how these fit into the big picture.<br />
<a href="http://www.rapidxhtml.com/"><img src="http://www.pvmgarage.com/contenuti/2009/09/rapidxhtml.jpg" alt="Rapid XHTML" /></a></p>
<h3>XHTML Chop</h3>
<p><a href="http://www.xhtmlchop.com/">XHTML Chop</a> is a team of experienced web design and web programming professionals. They specialize in providing the state-of-the-art PSD to HTML conversion services. they have a talented team that is capable of handling all types of conversion requirements.<br />
<a href="http://www.xhtmlchop.com/"><img src="http://www.pvmgarage.com/contenuti/2009/09/xhtmlchop.jpg" alt="XHTML Chop" /></a></p>
<h3>XHTMLiT</h3>
<p><a href="http://www.xhtmlit.com/">XHTMLiT</a> service is simple! They are W3C Web Standards experts and they have been building and coding website for over 5 years now. XHTMLiT provide coding services to designers, taking the dirty job away so you can do what you are best at, Design!<br />
<a href="http://www.xhtmlit.com/"><img src="http://www.pvmgarage.com/contenuti/2009/09/xhtmlit.jpg" alt="XHTMLiT" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/09/makingseo-coded-free-css-template-with-psd-to-html-tips/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Overview On Our Sponsor Pixel Crayons, Hand-Coded Markup Services</title>
		<link>http://www.pvmgarage.com/2009/07/overview-on-our-sponsor-pixel-crayons-hand-coded-markup-services/</link>
		<comments>http://www.pvmgarage.com/2009/07/overview-on-our-sponsor-pixel-crayons-hand-coded-markup-services/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 08:53:08 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Showcase]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=523</guid>
		<description><![CDATA[There comes a time when designers and developers are burdened with so much work that their quality of end-product considerably deteriorates. In such scenario, they may not able to produce things as per clients’ expectations. Here is the right time to look for a professional who can put its effort to produce something incredible for you. Hiring a professional for PSD to XHTML conversion gives you a flawless end-product especially when you have number of web designs ready for coding, ...]]></description>
			<content:encoded><![CDATA[<p>There comes a time when designers and developers are burdened with so much work that their quality of end-product considerably deteriorates. In such scenario, they may not able to produce things as per clients’ expectations. Here is the right time to look for a professional who can put its effort to produce something incredible for you. <strong>Hiring a professional for PSD to XHTML conversion</strong> gives you a flawless end-product especially when you have number of web designs ready for coding, overloading inbox with more web design orders or approaching submission dates of your projects. </p>
<p>While Browsing on Internet, You may get hundreds of sites that proclaim to fulfill all your requirements. Now don’t waste your precious time in browsing and allow Pixelcrayons to give you a helping hand. This is one of the few sites that few sites that actually deliver professionally designed XHTML design in just 8 hours. Trust me! Converting <a href="http://xhtml.pixelcrayons.com/">PSD to XHTML</a> had never been so simple and convenient before. The dedication to deliver quality projects on time, certainly releases you from the pressure of meeting the impassable deadlines.  </p>
<p>The greatest feature <a href="http://xhtml.pixelcrayons.com/">PixelCrayons</a> has its easy, linear and lucid <a href="http://xhtml.pixelcrayons.com/about-us.html">order process</a>. You have to follow five simple steps to avail its incomparable services. They are:</p>
<ul>
<li>Mail Order</li>
<li>Order Review</li>
<li>Conversion</li>
<li>Quality assurance</li>
<li>Delivery</li>
</ul>
<p>To understand it correctly, let me give you some introductory detail about PixelCrayons. It is an online service that offers effortless manual conversion of static design files into high quality XHTML. The <strong>designs can be sent in any format</strong>, whether PSD, JPG, GIF, PNG, AI or even in HTML markup. They normally offer two <a href="http://xhtml.pixelcrayons.com/order-now.html">coding packages</a>, however, they can also customize a variety of add-ons like markup options, integration services, rollovers, drop down menus, transparent PNGs and layout options.<br />
<a href="http://xhtml.pixelcrayons.com"><img src="http://www.pvmgarage.com/contenuti/2009/07/pixelcrayons.jpg" alt="pixelcrayons" /></a></p>
<h2>The basic package-starting at $99</h2>
<p>Markups: HTML 4.01 Transitional, XHTML 1.0 Transitional</p>
<p>W3C Validation: CSS, XHTML &#038; HTML</p>
<p>I.E 6.x / 7.x, Mozilla Firefox, Safari</p>
<p>50% Discout on any additional pages</p>
<h2>The Professional Package-starting at $199</h2>
<p>Markups: HTML 4.01 Transitional, HTML 4.01 Strict, XHTML 1.0 Transitional, XHTML 1.0 Strict</p>
<p>W3C Validation: CSS2 (Advanced CSS Code Structure), XHTML &#038; HTML Browsers Compatibility: I.E 6.x / 7.x, Mozilla Firefox, Safari 2.x/3.x, Opera, Konqueror</p>
<p>Includes: SEO Semantic Code, Load Speed Optimization, Complete Presentation Separation, Maximum Cross-Browser Compatibility</p>
<h2>Work Quality</h2>
<p>You can comfortably customize the layout options and customize your orders accordingly the way you want. Also, you can easily specify your profile preferences while using ‘Special Comment Box’. </p>
<p>You will see that Markup quality speaks for itself, as the coding done is in the clean and semantic manner, and also there is a systematic organization of the CSS files.  </p>
<h2>Conclusion</h2>
<p><a href="http://xhtml.pixelcrayons.com/">XHTML.PixelCrayons.com</a> is a site that provides excellent and customizable services for PSD to XHTML conversion process. It is not at all difficult for you to get an SEO friendly, valid CSS/XHTML and W3C Validated code that too in pre-stated budget and time-period. You are here to get your manual coding done with 8-hour promise, 24*7 personnel support and good quality output. </p>
<p>So, if you want a friend who can give you cost-efficient, time saving and convenient conversion from PSD to XHTML, XHTML.PixelCrayons.com qualifies for the recommendation. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/07/overview-on-our-sponsor-pixel-crayons-hand-coded-markup-services/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>SportNewsPvm Coded, How To Plan A Web Layout For A WordPress Theme</title>
		<link>http://www.pvmgarage.com/2009/07/sportnewspvm-coded-how-to-plan-a-web-layout-for-a-wordpress-theme/</link>
		<comments>http://www.pvmgarage.com/2009/07/sportnewspvm-coded-how-to-plan-a-web-layout-for-a-wordpress-theme/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 17:13:59 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=384</guid>
		<description><![CDATA[To create a basic WordPress theme the essential steps, in my personal approach, are four: sketch, PSD template, (X)HTML/CSS layout and, finally, WordPress code.
In this post will learn how to make a web layout (xhtml/css from a psd template) that will become a WP theme (the third step).
If you want to learn the basic techniques to make a PSD template, you can read Create a Nice Web Portfolio Design with a Watercolored Background in Photoshop.
For our purpose we&#8217;ll use SportNewsPvm ...]]></description>
			<content:encoded><![CDATA[<p>To create a basic WordPress theme the essential steps, in my personal approach, are four: sketch, PSD template, (X)HTML/CSS layout and, finally, WordPress code.<br />
<strong>In this post will learn how to make a web layout (xhtml/css from a psd template) that will become a WP theme</strong> (the third step).</p>
<p>If you want to learn the basic techniques to make a PSD template, you can read <a href="http://www.pvmgarage.com/en/2009/06/watercolored-portfolio-coded-free-css-template-with-psd-to-html-tutorial/">Create a Nice Web Portfolio Design with a Watercolored Background in Photoshop</a>.</p>
<p>For our purpose we&#8217;ll use <a href="http://www.pvmgarage.com/en/2009/05/sportnewspvm-free-psd-template-free-for-a-sport-magazine/">SportNewsPvm template</a>, the reasons for this choice are explained below.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/05/sportnewspvm_anteprima.jpg" alt="SportNewsPvm" /></p>
<h2>Why SportNewsPvm template can become a WP theme</h2>
<p>We&#8217;re going to take a look at the relevant elements you need when you develope a template that will be used for a WordPress theme. In this case we have a preset target: <strong>a sport magazine with a weekly updates</strong>. </p>
<p>The SportNewsPvm layout was thought to accomplish this goal. A soft grunge magazine template with a large header and featured news box.<br />
As you can see the structure is really valid for our purpose, in fact the basic elements are: <strong>top-menu, header, featured news box, posts container, sidebar and footer</strong>.<br />
We can also divide the structure in four macro-areas that are <strong>top, left-container, right-container and bottom</strong>. This partition is useful for a visual representation of content layout that help us during all the steps of our work.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_01.jpg" alt="SportNewsPvm" /><br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_02.jpg" alt="SportNewsPvm" /></p>
<p>In this way, with this kind of structure, we are trying to consider all the needful containers for the main components of a WordPress theme. Basically, a WordPress theme is composed by <strong>the header, the post loop, the sidebar and the footer</strong>. Now it&#8217;s clear that our template have all spaces to host them.</p>
<p>Other important elements, in the theme development, are single post page, comments structure, category template, page template and archive. Right now, however, we just want to understand how to prepare the basic (x)html/css layout for the home page and these last elements listed will be considered at a later time.  </p>
<h2>Final Result, Css Template</h2>
<p>Here you can see a preview image and a live demo. You can also download the zip archive with the complete CSS template.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewspvm_anteprima2.jpg" alt="SportNewsPvm CSS Template" /></p>
<div style="float: left; width:185px; height: 64px; margin-right: 15px; margin-top:0px;"><a href="http://www.pvmgarage.com/downloads/sportnews" target="_blank"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/anteprima-but.jpg" alt="Download Source" /></a></div>
<div style="float: left; width:185px; height: 64px; margin-top:0px;"><a href="http://www.pvmgarage.com/downloads/SportNewsPvm_Coded_PVMGARAGE.zip"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/downloadbut.jpg" alt="Download Source" /></a></div>
<div style="width: 100%; clear: both; height: 45px;"></div>
<h2>Coding SportNewsPvm</h2>
<p>A little summary.<br />
<strong>In top of the structure</strong> we insert the top-menu and the header with the logo.<br />
<strong>The left-container</strong> expects the featured news box and the posts container.<br />
<strong>The right-container</strong> is useful to put in sponsors and other information like blogroll or recent posts list.<br />
<strong>In the bottom</strong> there is a simple footer with credits.</p>
<p>Now is time for the code. This section of the post will show the essential steps to code the psd template using the techniques explained in <a href="http://www.pvmgarage.com/en/2009/06/watercolored-portfolio-coded-free-css-template-with-psd-to-html-tutorial/">WaterColored Portfolio Coded, Free CSS Template With PSD to HTML Tutorial</a> and <a href="http://www.pvmgarage.com/en/2009/05/designschool-coded-free-css-template-with-psd-to-html-tutorial/">DesignSchool Coded, Free CSS Template With PSD to HTML Tutorial</a>.</p>
<p>In the folder &#8220;sportnews&#8221; we put in &#8220;images&#8221; and &#8220;js&#8221; folders and the necessary files: &#8220;index.html&#8221; and &#8220;style.css&#8221;.</p>
<h3>Step 1 &#8211; Main Structure</h3>
<p>For the general background we use a repeatable image.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_03.jpg" alt="SportNewsPvm" /><br />
The markup for the main structure (edit &#8220;index.html&#8221;).</p>
<pre class="brush: html;">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Sport News Design | A free CSS Template | made in PV.M Garage&lt;/title&gt;
&lt;link href="style.css" rel="stylesheet" type="text/css" /&gt;&lt;!-- stylesheet --&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id="top"&gt;&lt;!-- top menu --&gt;
  &lt;div class="top_left"&gt;
    &lt;!-- categories menu --&gt;
  &lt;/div&gt;

  &lt;div class="top_right"&gt;
    &lt;!-- pages menu --&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div id="header"&gt;
&lt;!-- header --&gt;
&lt;/div&gt;

&lt;div id="container"&gt;

  &lt;div id="left_cont"&gt;
    &lt;!-- left container --&gt;
  &lt;/div&gt;

  &lt;div id="sidebar"&gt;
    &lt;!-- right container --&gt;
  &lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;div id="footer"&gt;
&lt;!-- footer container --&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>To initialize Cascading Style Sheet (edit &#8220;style.css&#8221;) we write the following rules.</p>
<pre class="brush: css;">
/*Yahoo! Reset CSS*/
body,div,dl,dt,dd,ul,ol,li,
h1,h2,h3,h4,h5,h6,pre,form,
fieldset,input,textarea,p,
blockquote,th,td {
	margin:0;
	padding:0;
}
table {
	border-collapse:collapse;
	border-spacing:0;
}
fieldset,img {
	border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
	font-style:normal;
	font-weight:normal;
}
ol,ul {
	list-style:none;
}
caption,th {
	text-align:left;
}
h1,h2,h3,h4,h5,h6 {
	font-size:100%;
	font-weight:normal;
}
q:before,q:after {
	content:'';
}
abbr,acronym { border:0;
}
/*End Yahoo! Reset CSS*/

body {
  background: #fff url("images/bck.jpg") repeat-x top;
  font-family: Verdana, Georgia, “Lucida Sans Unicode”, sans-serif;
  font-size: 14px;
  color: #333;
  margin-top: 15px;
}

:focus {
	outline: 0;
}

a {
  text-decoration: none;
  color: #ca5235;
}

a:hover {
  color: #75a7b4;
}

small {
  font-size: 10px;
}

h1 {
  color: #ca5235;
  font-size: 28px;
}

h2 {
  color: #ca5235;
  font-size: 28px;
}
</pre>
<h3>Step 2 &#8211; Top menu and Header</h3>
<p>Now we add all elements of the design for the menu and header. Below there are the background images exported from psd.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_04.jpg" alt="SportNewsPvm" /></p>
<p>The following images are for the logo and the down-header elements.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_05.jpg" alt="SportNewsPvm" /></p>
<p>Note: in the down-header section there are the search form and the button to subscribe RSS feed. Below the (x)html code for header and top-nav bar.</p>
<pre class="brush: html;">
&lt;div id="top"&gt;
  &lt;div class="top_left"&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;Football&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Basket&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Volley&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;MotorSports&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Special&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Interview&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;

    &lt;div class="top_right"&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Write for us&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div id="header"&gt;
  &lt;div id="logo"&gt;
    &lt;a href="#"&gt;&lt;/a&gt;
  &lt;/div&gt;

  &lt;div id="search_box"&gt;
      &lt;input name="textfield" type="text" class="search_input" id="textfield" value="Search" /&gt;
  &lt;/div&gt;

  &lt;div id="feed"&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#" class="rss_icon"&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#" class="rss_mail"&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
<p>And now, the style.</p>
<pre class="brush: css;">
#top {
  background: url("images/bck_top.png") no-repeat center left;
  height: 53px;
  width: 1030px;
  margin: auto;
}

  .top_left {
    position: relative;
    float: left;
  }

  .top_left ul {
    margin: 23px 0 0 105px;
  }

  .top_left ul li {
    padding:0 5px;
    display: inline;
    font-size: 12px;
  }

  .top_left ul li a {
    color: #706d67;
    font-weight: bold;
    text-transform: uppercase;
  }

  .top_left ul li a:hover {
    color: #ca5235;
    font-weight: bold;
    border-bottom: 1px dotted #ca5235;
  }

  .top_right {
    position: relative;
    float: right;
  }

  .top_right ul {
    margin: 20px 60px 0 0;
  }

  .top_right ul li {
    padding:0 2px;
    display: inline;
    font-size: 10px;
  }

  .top_right ul li a {
    color: #706d67;
  }

  .top_right ul li a:hover {
    color: #ca5235;
    border-bottom: 1px dotted #ca5235;
  }

#header {
  background: url("images/bck_head.png") no-repeat center left;
  height: 244px;
  width: 1030px;
  margin: auto;
}

  #logo {
    background: url("images/logo.png") no-repeat center left;
    margin: 0 0 0 50px;
    padding: 26px;
  }

  #logo a {
    width: 463px;
    height: 167px;
    display: block;
  }

  #search_box {
    position:relative;
    float: left;
    top: -18px;
    margin-left: 40px;
    width: 260px;
    background: url("images/search.png") no-repeat center right;
    margin-right: 10px;
  }

  .search_input {
    border: 1px solid #c8c9d0;
    width: 150px;
    color: #c8c9d0;
    padding: 8px;
  }

  #feed {
    position:relative;
    float: left;
    top: -18px;
    border-left: 2px solid #c8c9d0;
    padding: 0px 5px;
    background: url("images/subscribe.png") no-repeat center right;
    width: 340px;
  }

  #feed ul li {
    display: inline;
    padding: 0 5px;
  }

  .rss_icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url("images/rss.png") no-repeat;
  } 

  .rss_mail {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url("images/rss_mail.png") no-repeat;
  }
</pre>
<h3>Step 3 &#8211; The Main Container</h3>
<p>Below the repeteable image used for the main container of the layout. We use a graphic with a height of 375px to emphasize the grunge effect.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_06.jpg" alt="SportNewsPvm" /></p>
<p>In this step we don&#8217;t forget to use a clearfix technique to give a cross browser float clearing solution. So the html code for the main container is the following.</p>
<pre class="brush: html;">
&lt;div id="container" class="clearfix"&gt;

  &lt;div id="left_cont"&gt;
    &lt;!-- left container --&gt;
  &lt;/div&gt;

  &lt;div id="sidebar"&gt;
    &lt;!-- right container --&gt;
  &lt;/div&gt;

&lt;/div&gt;
</pre>
<pre class="brush: css;">
#container {
  background: url("images/bck_container.png") repeat-y top left;
  width: 1030px;
  margin: auto;
}

  .clearfix:after {
    content: "";
    display: block;
    clear: both;
  }
</pre>
<h3>Step 4 &#8211; Left Container</h3>
<p>In this section there are two important elements: featured news and post container. Below you can see the images for this section.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_07.jpg" alt="SportNewsPvm" /></p>
<p>In the featured news box there are three sliding elements, so we must write a correct (x)html code to prepare document for <strong>UI jQuery Tabs</strong>.<br />
In post container we have title, post-image, the excerpt and the &#8220;meta-info&#8221; boxes. Below you can see the code.</p>
<pre class="brush: html;">
&lt;div id="container" class="clearfix"&gt;

  &lt;div id="left_cont"&gt;
  &lt;div id="featured_title"&gt;&lt;/div&gt;
  &lt;div id="featured" class="clearfix"&gt;

    &lt;ul class="nav"&gt;
      &lt;li&gt;
          &lt;a href="#featured-1"&gt;
          &lt;span class="imag_list"&gt;&lt;img src="images/image1-small.jpg" alt="" /&gt;&lt;/span&gt;
          &lt;span class="meta_info_list"&gt;Category - 07.11&lt;/span&gt;&lt;br /&gt;
          &lt;span class="title_list"&gt;Lorem ipsum dolor sit amet&lt;/span&gt;

          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a href="#featured-2"&gt;
          &lt;span class="imag_list"&gt;&lt;img src="images/image2-small.jpg" alt="" /&gt;&lt;/span&gt;
          &lt;span class="meta_info_list"&gt;Category - 04.11&lt;/span&gt;&lt;br /&gt;
          &lt;span class="title_list"&gt;Etiam rhoncus&lt;/span&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a href="#featured-3"&gt;
          &lt;span class="imag_list"&gt;&lt;img src="images/image3-small.jpg" alt="" /&gt;&lt;/span&gt;
          &lt;span class="meta_info_list"&gt;Categoria - 03.11&lt;/span&gt;&lt;br /&gt;
          &lt;span class="title_list"&gt;Etiam ultricies nisi vel augue&lt;/span&gt;
          &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;

    &lt;div id="featured-1" class="featured_content"&gt;
      &lt;a href="#" &gt;&lt;img src="images/image1.jpg" alt="" /&gt;&lt;/a&gt;
			&lt;div class="info" &gt;
				&lt;h2&gt;&lt;a href="#" &gt;Lorem ipsum dolor sit amet&lt;/a&gt;&lt;/h2&gt;
			&lt;/div&gt;
    &lt;/div&gt;

    &lt;div id="featured-2" class="featured_content"&gt;
      &lt;a href="#" &gt;&lt;img src="images/image2.jpg" alt="" /&gt;&lt;/a&gt;
			&lt;div class="info" &gt;
				&lt;h2&gt;&lt;a href="#" &gt;Etiam rhoncus&lt;/a&gt;&lt;/h2&gt;
			&lt;/div&gt;
    &lt;/div&gt;

    &lt;div id="featured-3" class="featured_content"&gt;
      &lt;a href="#" &gt;&lt;img src="images/image3.jpg" alt="" /&gt;&lt;/a&gt;
			&lt;div class="info" &gt;
				&lt;h2&gt;&lt;a href="#" &gt;Etiam ultricies nisi vel augue&lt;/a&gt;&lt;/h2&gt;
			&lt;/div&gt;
    &lt;/div&gt;

  &lt;/div&gt;

  &lt;div id="news_title"&gt;&lt;/div&gt;
  &lt;div id="post_container" class="clearfix"&gt;
      &lt;h1&gt;Sed ut perspiciatis unde omnis iste&lt;/h1&gt;
      &lt;div class="post_image"&gt;
        &lt;img src="images/post1.jpg" alt="post1" /&gt;
        &lt;div class="meta_tag_comment"&gt;
        &lt;p&gt;&lt;a href="#"&gt;Commenti (10)&lt;/a&gt;&lt;/p&gt;
        &lt;p&gt;&lt;small&gt;Author: &lt;a href="#"&gt;Leo Miranda&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
        &lt;p&gt;&lt;small&gt;Tags: &lt;a href="#"&gt;football&lt;/a&gt;, &lt;a href="#"&gt;interview&lt;/a&gt;, &lt;a href="#"&gt;serie A&lt;/a&gt;, &lt;a href="#"&gt;serie B&lt;/a&gt;, &lt;a href="#"&gt;liga&lt;/a&gt;, &lt;a href="#"&gt;premier league&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="post_content"&gt;
        &lt;span class="meta_info"&gt;Category - 10.07.09&lt;/span&gt;
        &lt;p&gt;&lt;!--the excerpt--&gt;&lt;/p&gt;
        &lt;span class="more"&gt;&lt;a href="#"&gt;Read More&lt;/a&gt;&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
<p>Here the CSS rules for the &#8220;style.css&#8221; file.</p>
<pre class="brush: css;">
#left_cont {
    float: left;
    width: 650px;
    margin: 10px 10px 10px 21px;
  }

  #featured {
    width: 600px;
    background: url("images/img_feat_bck_big.png") no-repeat center left;
    margin-left: 20px;
    margin-bottom: 30px;
  }

  #featured_title {
    background: url("images/feat_tit.png") no-repeat center left;
    width: 632px;
    height: 27px;
    margin-bottom: 25px;
    margin-top: 5px;
  }

  #news_title {
    background: url("images/news_tit.png") no-repeat center left;
    width: 632px;
    height: 27px;
    margin-bottom: 18px;
  }

  ul.nav {
    float: right;
    left: 360px;
	  width: 225px;
	  padding-top: 3px;
  }

  ul.nav li {
    overflow: hidden;
    padding: 4px 1px;
  }

  ul.nav li a{
	  display: block;
	  height: 60px;
	  color: #333;
  }

  ul.nav li a:hover{
    outline: 1px dotted #ca5235;
  }

  ul.nav li img {
	  float: left;
    margin: 4px;
    padding: 5px;
    width: 75px;
    height: 40px;
  }

  span.imag_list {
  	 float: left;
     background: url("images/img_feat_bck.png") no-repeat center left;
     width: 95px;
     height: 58px;
  }

  span.title_list {
    color: #ca5235;
    font-size: 11px;
    font-weight: bold;
  }

  span.meta_info_list {
    color: #75a7b4;
    font-size: 10px;
    font-weight: bold;
  }

  .featured_content {
	  width: 350px;
    height: 205px;
  }

  .featured_content img {
	  padding: 9px 8px 8px 8px;
  }

  .featured_content .info {
    position: relative;
	  top: -61px;
    left: 5px;
	  height: 50px;
	  width: 340px;
	  margin: 0 3px;
	  background: url("images/transparent-bg.png");
	  overflow: hidden;
  }

  .info h2 {
    font-size: 18px;
    font-weight: bold;
    line-height: 20px;
    padding: 5px;
  }  

  .info h2 a {
    color: #d8d7d7;
  }

  #post_container, #post_container1, #post_container2 {
    margin: 0 23px 30px 23px;
    clear: both;
    min-height: 220px;
    background: url("images/post_sep.png") no-repeat bottom right;
  }

  .post_image {
    float: left;
    margin: 10px 25px 13px 15px;
    width: 201px;
  }

  .post_image img {
    border: 1px solid #75a7b4;
  }

  .meta_tag_comment {
    padding: 3px;
    background: #75a7b4;
  }

  .post_image p {
    font-size: 10px;
    color: #fff;
    padding: 3px;
  }

  .post_image p a {
    color: #fff;
  }

  .post_image p a:hover {
    border-bottom: 1px dotted #fff;
  }

  .post_content {
    margin-top: 15px;
  }

  span.meta_info {
    padding: 5px;
    background: #75a7b4;
    color: #fff;
    font-size: 14px;
  }

  span.meta_info a {
    color: #fff;
  }

  .post_content p {
    margin: 15px 0 10px 0;
    font-size: 12px;
    line-height: 20px;
    padding-left: 241px;
  }

  span.more {
    position: relative;
    right: 293px;
    float: right;
    margin-bottom: 10px;
  }

  span.more a {
    font-size: 12px;
    color: #ca5235;
    font-weight: bold;
  }

  span.more a:hover {
    border-bottom: 1px dotted #ca5235;
  }
</pre>
<h3>Step 5 &#8211; Activate Slider Tabs Effect</h3>
<p>Now we download the minified package of the framework from the <a href="http://docs.jquery.com/Downloading_jQuery">official download page</a> and also the <a href="http://jqueryui.com/download">UI package</a> (select UI Core, Tabs and Effects Core).</p>
<p>We copy the two files (”jquery-1.3.2.min.js” and “jquery-ui-1.7.2.custom.min.js”) in “js” folder. To use the power of jQuery for featured news box we call the library from the “index.html” with the following lines of code between head tags:</p>
<pre class="brush: html;">
&lt;head&gt;
  [...]
    &lt;script type="text/javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
		&lt;script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"&gt;&lt;/script&gt;
	[...]
&lt;/head&gt;
</pre>
<p>We place this code in &#8220;index.html&#8221; (after <em>&lt;body&gt;</em>) to activate tabs:</p>
<pre class="brush: html;">
	&lt;script type="text/javascript"&gt;
	$(function() {
		$("#featured").tabs({ fx: { width: 'toggle', opacity: 'toggle' } }).tabs("rotate", 6000, true); });
	&lt;/script&gt;
</pre>
<p>and this in css style file:</p>
<pre class="brush: css;">
.ui-tabs-hide { display: none !important; }
</pre>
<h3>Step 6 &#8211; Right Container, the sidebar</h3>
<p>For the sidebar we use only an image for the title background (general back image is in the main container).<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_08.jpg" alt="SportNewsPvm" /></p>
<p>This is the markup.</p>
<pre class="brush: html;">
&lt;div id="sidebar"&gt;
    &lt;div class="side_cont"&gt;
    &lt;h2&gt;Sponsor&lt;/h2&gt;
      &lt;div class="adv"&gt;
	       &lt;a href="#"&gt;&lt;img src="images/pvmban125.jpg" alt="pvm" /&gt;&lt;/a&gt;
	       &lt;a href="#"&gt;&lt;img src="images/ads.gif" alt="Advertisement" /&gt;&lt;/a&gt;
	       &lt;a href="#"&gt;&lt;img src="images/ads.gif" alt="Advertisement" /&gt;&lt;/a&gt;
	       &lt;a href="#"&gt;&lt;img src="images/ads.gif" alt="Advertisement" /&gt;&lt;/a&gt;
	       &lt;a href="#"&gt;&lt;img src="images/pvmban2504.jpg" alt="Advertisement" /&gt;&lt;/a&gt;
	    &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="side_cont adv"&gt;
    &lt;h2&gt;BlogRoll&lt;/h2&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;Sport Magazine - Resources for Sport Lovers&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Football Mag - We Play Football&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;BuzzerBeater Magazine - Basket Fans&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Premier Paper - Premier League News&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;European Sport - News from Europa&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Focus on Carling&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;NBA News - Do you wanna play?&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Road to South Africa 2010&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Volley World League&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/div&gt;

    &lt;div class="side_cont adv"&gt;
    &lt;h2&gt;Most Read Articles&lt;/h2&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;Nisi ut aliquid ex ea commodi consequatur?&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Nam libero tempore, cum soluta nobis&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;At vero eos et accusamus et iusto odio&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Nemo enim ipsam voluptatem quia voluptas&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</pre>
<p>Right now we write the css rules.</p>
<pre class="brush: css;">
#sidebar {
  float: left;
  width: 335px;
}

.side_cont {
  background: url("images/side_tit1.png") no-repeat top right;
  margin-bottom: 25px;
  padding-right: 35px;
  padding-left: 20px;
  width: 280px;
  font-size: 12px;
  line-height: 18px;
}

.side_cont h2 {
  font-size: 20px;
  color: #fff;
  padding-top: 3px;
  margin-bottom: 20px;
}

.adv {
  margin-top: 37px;
}

.adv img {
  margin: 0 10px 10px 0px;
  border: 1px solid #ccc;
}

.side_cont ul {
  margin-bottom: 15px;
}

.side_cont ul li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  display: block;
}

.side_cont ul li a {
  color: #333;
  padding: 10px 0;
}

.side_cont ul li a:hover {
  color: #ca5235;
}

.side_cont ul li:hover {
  background: #e1e1e1;
}
</pre>
<h3>Step 7 &#8211; Footer</h3>
<p>Below the footer background, the markup and the style.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/07/sportnewcoded_09.jpg" alt="SportNewsPvm" /></p>
<pre class="brush: html;">
&lt;div id="footer"&gt;
&lt;p&gt;SPORT NEWS PVM MAGAZINE 2009 - Creative Common License. It's a free template for you!&lt;/p&gt;
&lt;p&gt;It's a PV.M GARAGE PRODUCTION - &lt;a href="http://validator.w3.org/check?uri=referer"&gt;valid (X)HTML&lt;/a&gt; and &lt;a href="http://jigsaw.w3.org/css-validator/check/referer"&gt;valid CSS&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;
</pre>
<pre class="brush: css;">
#footer {
  background: url("images/bck_foot.png") no-repeat top left;
  height: 113px;
  width: 1030px;
  margin: auto;
  padding-top: 48px;
}

#footer p {
  font-size: 12px;
  text-align: center;
  padding: 2px;
  color: #666;
}

#footer p a {
  border-bottom: 1px dotted #666;
  color: #666;
}
</pre>
<h2>Stay tuned, the next step is WordPress Theme</h2>
<p>Yes, the next step for SportNewsPvm is WordPress Code. Soon a new post where we&#8217;ll learn the basic operations to create a WP theme, then <strong>SportNewsPvm WordPress Theme will be released</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/07/sportnewspvm-coded-how-to-plan-a-web-layout-for-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
	</channel>
</rss>

