<?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>Web design and development in London and Surrey &#187; css</title>
	<atom:link href="http://zorinweb.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://zorinweb.com</link>
	<description>Just another Web design and development weblog</description>
	<lastBuildDate>Fri, 13 Jan 2012 14:56:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Design to HTML for www.theartofservice.co.uk</title>
		<link>http://zorinweb.com/2011/04/design-to-html-for-www-theartofservice-co-uk/</link>
		<comments>http://zorinweb.com/2011/04/design-to-html-for-www-theartofservice-co-uk/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 18:51:43 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Front end coding]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design to html]]></category>
		<category><![CDATA[hospitality websites]]></category>
		<category><![CDATA[psd to html]]></category>
		<category><![CDATA[user interface]]></category>
		<category><![CDATA[web design London]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=307</guid>
		<description><![CDATA[Marked up the wonderful web designs designs in HTML for The Art of Service, a website set up to market a hospitality board game by Michel Roux Jnr&#8217;s co-host on the BBC2 series about service and hospitality, &#8216;Michel Roux&#8217;s Service&#8217;. From the site, &#8216;The Art of Service board game is a training tool for restaurant [...]]]></description>
			<content:encoded><![CDATA[<p>Marked up the wonderful web designs designs in HTML for The Art of Service, a website set up to market a hospitality board game by Michel Roux Jnr&#8217;s co-host on the BBC2 series about service and hospitality, &#8216;Michel Roux&#8217;s Service&#8217;. From the site, <em>&#8216;The Art of Service board game is a training tool for restaurant and hotel owners, F&#038;B directors and hospitality lecturers&#8217;.</em></p>
<p><span id="more-307"></span></p>
<p>It&#8217;s an engaging concept, now live on the web. To see more, go to <a href="http://www.theartofservice.co.uk">www.theartofservice.co.uk</a>.<br />
<a href="http://zorinweb.com/wp-content/uploads/2011/04/01-The-Art-of-Service-Website-Final-Home1.jpg"><img src="http://zorinweb.com/wp-content/uploads/2011/04/01-The-Art-of-Service-Website-Final-Home1-266x440.jpg" alt="" title="01 The Art of Service Website Final (Home)" width="266" height="440" class="alignnone size-large wp-image-311" /></a><br />
<a href="http://zorinweb.com/wp-content/uploads/2011/04/02-The-Art-of-Service-Website-Final.jpg"><img src="http://zorinweb.com/wp-content/uploads/2011/04/02-The-Art-of-Service-Website-Final-266x440.jpg" alt="" title="02 The Art of Service Website Final" width="266" height="440" class="alignnone size-large wp-image-309" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2011/04/design-to-html-for-www-theartofservice-co-uk/feed/</wfw:commentRss>
		<slash:comments>152</slash:comments>
		</item>
		<item>
		<title>New Site for Surrey Contact Sports Specialist</title>
		<link>http://zorinweb.com/2010/09/new-site-for-surrey-contact-sports-specialist/</link>
		<comments>http://zorinweb.com/2010/09/new-site-for-surrey-contact-sports-specialist/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 19:09:14 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Front end coding]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[London SEO]]></category>
		<category><![CDATA[psd to html]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[seo surrey]]></category>
		<category><![CDATA[surrey web design]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=282</guid>
		<description><![CDATA[Whipped up version two of a site for the guys at Nova Forca. Along with a new design, the site moves up to the much improved WordPress 3.]]></description>
			<content:encoded><![CDATA[<p>Whipped up version two of a site for the guys at Nova Forca. Along with a new design, the site moves up to the much improved WordPress 3.</p>
<p><span id="more-282"></span></p>
<p><a href="http://zorinweb.com/wp-content/uploads/2011/01/novaforca.png"><img class="alignnone size-large wp-image-283" title="novaforca" src="http://zorinweb.com/wp-content/uploads/2011/01/novaforca-440x330.png" alt="" width="440" height="330" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2010/09/new-site-for-surrey-contact-sports-specialist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yell! Microsite HTML/CSS</title>
		<link>http://zorinweb.com/2010/06/yell-microsite-htmlcss/</link>
		<comments>http://zorinweb.com/2010/06/yell-microsite-htmlcss/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 17:56:04 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Front end coding]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[microsite]]></category>
		<category><![CDATA[psd to html]]></category>
		<category><![CDATA[surrey web design]]></category>
		<category><![CDATA[web design London]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=254</guid>
		<description><![CDATA[Took designs for a Yell! campaign microsite and converted them to a functioning site. This was a pretty standard psd/design to (X)HTML job. The site is a bid from Yell! to match up local businesses with local customers. Have a look over at yelltour.co.uk.]]></description>
			<content:encoded><![CDATA[<p>Took designs for a Yell! campaign microsite and converted them to a functioning site. This was a pretty standard psd/design to (X)HTML job.</p>
<p><span id="more-254"></span></p>
<p>The site is a bid from Yell! to match up local businesses with local customers. Have a look over at <a href="http://www.yelltour.co.uk/">yelltour.co.uk</a>.</p>
<p><img class="alignnone size-large wp-image-255" title="yelling_microsite_home" src="http://zorinweb.com/wp-content/uploads/2011/01/yelling_microsite_home-411x440.jpg" alt="" width="411" height="440" /><br />
<img class="alignnone size-large wp-image-256" title="yelling_microsite_imabusiness" src="http://zorinweb.com/wp-content/uploads/2011/01/yelling_microsite_imabusiness-411x440.jpg" alt="" width="411" height="440" /></p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2010/06/yell-microsite-htmlcss/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Coding for LegionLive.org</title>
		<link>http://zorinweb.com/2010/05/wordpress-coding-for-legionlive-org/</link>
		<comments>http://zorinweb.com/2010/05/wordpress-coding-for-legionlive-org/#comments</comments>
		<pubDate>Mon, 03 May 2010 18:16:42 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Front end coding]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[psd to html]]></category>
		<category><![CDATA[psd to wordpress]]></category>
		<category><![CDATA[Royal British Legion]]></category>
		<category><![CDATA[web design London]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=264</guid>
		<description><![CDATA[I implemented a new front end design for LegionLive, The Royal British Legion’s online community. The site has a very engaging look and feel, and leverages a good number of web 2.0/social community mediums, providing a hub of activity for Royal British Legion members and friends alike. I provided an interface for CMS functions, customised [...]]]></description>
			<content:encoded><![CDATA[<p>I implemented a new front end design for LegionLive, The Royal British Legion’s online community. The site has a very engaging look and feel, and leverages a good number of web 2.0/social community mediums, providing a hub of activity for Royal British Legion members and friends alike.</p>
<p><span id="more-264"></span></p>
<p>I provided an interface for CMS functions, customised a slideshow for the home page, all the while making sure it was fully integrated with WordPress Mu.</p>
<p><a href="http://legionlive.org.uk/"><img class="alignnone size-large wp-image-265" title="LegionLive_designs_home_new_3(2)" src="http://zorinweb.com/wp-content/uploads/2011/01/LegionLive_designs_home_new_32-254x440.png" alt="" width="254" height="440" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2010/05/wordpress-coding-for-legionlive-org/feed/</wfw:commentRss>
		<slash:comments>66</slash:comments>
		</item>
		<item>
		<title>PSD to WordPress of Sharply Designed Craftsman Website</title>
		<link>http://zorinweb.com/2010/03/psd-to-wordpress-of-clean-design-craftsman-website/</link>
		<comments>http://zorinweb.com/2010/03/psd-to-wordpress-of-clean-design-craftsman-website/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 15:50:22 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[psd to html]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=229</guid>
		<description><![CDATA[Coded up a talented designer&#8217;s clean tradesman layout. The design focuses on usability and straight to point content. Images play a large role as they&#8217;re an immediate endorsement of the craftsman&#8217;s ability and skill. In order for the website owner to manage his own content, WordPress was used as a CMS (content management system). Each [...]]]></description>
			<content:encoded><![CDATA[<p>Coded up a talented designer&#8217;s clean tradesman layout. The design focuses on usability and straight to point content. Images play a large role as they&#8217;re an immediate endorsement of the craftsman&#8217;s ability and skill.</p>
<p><span id="more-229"></span></p>
<p>In order for the website owner to manage his own content, WordPress was used as a CMS (content management system). Each page is editable, while images can be uploaded to a specific category, which will then appear on the website automatically re-sized. The quotations and contact pages feature forms that check for incorrect email addresses and make sure compulsory fields are satified. Here&#8217;s a screenshot of the site:</p>
<p><img class="alignnone size-large wp-image-230" title="banyan" src="http://zorinweb.com/wp-content/uploads/2010/03/banyan-440x334.jpg" alt="" width="440" height="334" /></p>
<p>To see it in action, go to <a href="http://banyanwoodworks.com/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2010/03/psd-to-wordpress-of-clean-design-craftsman-website/feed/</wfw:commentRss>
		<slash:comments>102</slash:comments>
		</item>
		<item>
		<title>Simple Property Website Spiced up with Jquery</title>
		<link>http://zorinweb.com/2010/03/simple-propery-website-spiced-up-with-jquery/</link>
		<comments>http://zorinweb.com/2010/03/simple-propery-website-spiced-up-with-jquery/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 16:50:08 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[property website]]></category>
		<category><![CDATA[psd to html]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=223</guid>
		<description><![CDATA[Coded up a nice clean design for a property and land agency. HTML and CSS are used, as is jQuery for an intersting introduction and page transitions. To see it in action, visit: www.montrose-partnership.com]]></description>
			<content:encoded><![CDATA[<p>Coded up a nice clean design for a property and land agency. HTML and CSS are used, as is jQuery for an intersting introduction and page transitions.</p>
<p><span id="more-223"></span></p>
<p><img class="alignnone size-large wp-image-224" title="montroseShot" src="http://zorinweb.com/wp-content/uploads/2010/03/montroseShot-440x334.jpg" alt="" width="440" height="334" /></p>
<p>To see it in action, visit: <a href="http://www.montrose-partnership.com">www.montrose-partnership.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2010/03/simple-propery-website-spiced-up-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Development for London Jewellery Store</title>
		<link>http://zorinweb.com/2010/01/web-development-for-london-jewellery-store/</link>
		<comments>http://zorinweb.com/2010/01/web-development-for-london-jewellery-store/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 14:47:05 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[psd to html]]></category>
		<category><![CDATA[user interface]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=150</guid>
		<description><![CDATA[Carried out for a West London based design agency, this job entailed taking a psd design and bringing it to life via XHTML/CSS and the wonderful jQuery JavaScript library. The vertical menu is set to stay in place while the content area to the right changes to reflect whatever the user chooses to click on. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://aandsjewellers.co.uk"><img class="alignnone size-large wp-image-151" title="Front end Web development for London Jewellery Store" src="http://zorinweb.com/wp-content/uploads/2010/01/Collections1-440x323.jpg" alt="Front end Web development for London Jewellert Store" width="440" height="323" /></a></p>
<p><span id="more-150"></span></p>
<p>Carried out for a West London based design agency, this job entailed taking a psd design and bringing it to life via XHTML/CSS and the wonderful jQuery JavaScript library. The vertical menu is set to stay in place while the content area to the right changes to reflect whatever the user chooses to click on.</p>
<p>jQuery&#8217;s chaining ability is put to thorough use as each menu link sets off a series of events; the menu itself &#8211; inc. child elements &#8211; expands and contracts, and the content area is repopulated. The following picture illustrates what happens when a specific wedding ring is clicked. The content area changes to a large ring with a column of thumbnail rings situated to the side. The thumbs can be navigated with arrows and clicked to expand and fill up the content area. Again, this is all performed using jQuery.</p>
<p><img class="alignnone size-large wp-image-156" title="Content area changed with jQuery" src="http://zorinweb.com/wp-content/uploads/2010/01/Wed_dia-440x324.jpg" alt="Content area changed with jQuery" width="440" height="324" /></p>
<p>CSS sprites were implemented for the menu&#8217;s hover states, however, the selected &#8216;active&#8217; state is actioned using jQuery. Here&#8217;s one of the sprites:</p>
<p><img class="alignnone size-full wp-image-157" title="collections-multistones-sub" src="http://zorinweb.com/wp-content/uploads/2010/01/collections-multistones-sub.gif" alt="" width="122" height="71" /></p>
<p>All in all, an interesting exercise in the uses of CSS and jQuery, which indeed makes for clean uncomplicated code.</p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2010/01/web-development-for-london-jewellery-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting a Design to a WordPress Website</title>
		<link>http://zorinweb.com/2009/12/converting-a-design-to-a-wordpress-website/</link>
		<comments>http://zorinweb.com/2009/12/converting-a-design-to-a-wordpress-website/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:09:22 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[psd to html]]></category>
		<category><![CDATA[user interface]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=103</guid>
		<description><![CDATA[There doesn&#8217;t appear to be too many psd to HTML tutorials on the net, so I thought I&#8217;d write one. Given the popularity of the WordPress blogging software, I&#8217;ll code the design up for WordPress rather than a static HTML site.  To reiterate, this is about taking a design (in whatever format), slicing it up [...]]]></description>
			<content:encoded><![CDATA[<p>There doesn&#8217;t appear to be too many psd to HTML tutorials on the net, so I thought I&#8217;d write one. Given the popularity of the WordPress blogging software, I&#8217;ll code the design up for WordPress rather than a static HTML site.  To reiterate, this is about taking a design (in whatever format), slicing it up in Photoshop, or similar (Gimp), then applying the CSS to the HTML. WordPress features intuitive markup, so I&#8217;ll base the HTML around theirs.</p>
<p><span id="more-103"></span></p>
<p>The slicing of the design will be dealt with first, followed by a look at the HTML, then proceeded by the all important CSS. To begin with, let&#8217;s look at the design in the slicing environment.</p>
<p><img class="alignnone size-large wp-image-107" title="1-overview" src="http://zorinweb.com/wp-content/uploads/2009/12/1-overview-440x255.jpg" alt="1-overview" width="440" height="255" /></p>
<p>This is the psd of a recently completed website opened up and ready to slice in Photoshop. It&#8217;s a clean, uncomplicated design, so should be ideal for a tutorial. For demonstration purposes, I&#8217;m using the &#8216;crop&#8217; tool instead of slicing tool, and saving each piece as a jpg in turn. There&#8217;s not a particular preference for image formt, so use what you wish; jpgs load up quicky, that&#8217;s all. Right, let the cutting begin.</p>
<p><img class="alignnone size-large wp-image-112" title="background-slice" src="http://zorinweb.com/wp-content/uploads/2009/12/background-slice-440x123.jpg" alt="background-slice" width="440" height="123" /></p>
<p>A slice is taken from the top of the psd going through the white space to just below the thick green line. It will be repeated across the &lt;body&gt; of the document, covering the width of the screen. Next, the little house with the lightbulb is cut out.</p>
<p><img class="alignnone size-large wp-image-116" title="cutting-out-the-little-hous" src="http://zorinweb.com/wp-content/uploads/2009/12/cutting-out-the-little-hous-440x113.jpg" alt="cutting-out-the-little-hous" width="440" height="113" /></p>
<p>The house is cut out from the top to just beneath the green like. It will later be layered over repeated background strip. Now for the logo and introductory text.</p>
<p><a href="http://zorinweb.com/wp-content/uploads/2009/12/cutting-out-the-logo.jpg"><img class="alignnone size-large wp-image-118" title="cutting-out-the-logo" src="http://zorinweb.com/wp-content/uploads/2009/12/cutting-out-the-logo-440x141.jpg" alt="cutting-out-the-logo" width="440" height="141" /></a></p>
<p><img class="alignnone size-large wp-image-117" title="cutting-out-logo" src="http://zorinweb.com/wp-content/uploads/2009/12/cutting-out-logo-440x113.jpg" alt="cutting-out-logo" width="440" height="113" /></p>
<p>A similar effect for the text could have been gained using sIFR, but on this occassion opted for a CSS text replacement technique. After cutting out the navigation buttons &#8211; both the blue and &#8216;hover effect&#8217; orange &#8211; and other bits and pieces, the last substantial piece of cutting is the Twitter section.</p>
<p><img class="alignnone size-large wp-image-119" title="cutting-out-twitter" src="http://zorinweb.com/wp-content/uploads/2009/12/cutting-out-twitter-bird-440x113.jpg" alt="cutting-out-twitter" width="440" height="113" /></p>
<p>That&#8217;s all the cutting; let&#8217;s run through the pieces.</p>
<ul>
<li>Background strip</li>
<li>Logo</li>
<li>Introductory text</li>
<li>House with lightbulb</li>
<li>Navigation buttons</li>
<li>Twitter section</li>
<li>Twitter button</li>
<li>Contact and Twitter headings</li>
</ul>
<h3>The HTML</h3>
<p>Assuming you&#8217;ve installed a copy of WordPress, let&#8217;s navigate to the default theme to inspect the markup &#8211; <em>&#8216;wp-content&#8217;, &#8216;themes&#8217;, &#8216;default&#8217;</em> directory. Open the index.php to view the following:<br />
<code><br />
&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Default_Theme<br />
*/<br />
get_header(); ?&gt;<br />
&lt;div id="content" role="main"&gt;<br />
<strong>&lt;?php if (have_posts()) : ?&gt;<br />
&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
&lt;div &lt;?php post_class() ?&gt; id="post-&lt;?php the_ID(); ?&gt;"&gt;<br />
&lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;<br />
&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; &lt;!-- by &lt;?php the_author() ?&gt; --&gt;&lt;/small&gt;<br />
&lt;div&gt;<br />
&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;<br />
&lt;/div&gt;<br />
&lt;p&gt;&lt;?php the_tags('Tags: ', ', ', '&lt;br /&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; | &lt;?php edit_post_link('Edit', '', ' | '); ?&gt;  &lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;?php endwhile; ?&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;&lt;?php next_posts_link('&amp;laquo; Older Entries') ?&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;?php previous_posts_link('Newer Entries &amp;raquo;') ?&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;h2&gt;Not Found&lt;/h2&gt;<br />
&lt;p&gt;Sorry, but you are looking for something that isn't here.&lt;/p&gt;<br />
&lt;?php get_search_form(); ?&gt;<br />
&lt;?php endif; ?&gt;</strong><br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;?php get_footer(); ?&gt;</code></p>
<p>The WordPress loop, in bold, doesn&#8217;t have any bearing on this tutorial, so we can ignore it. get_header() renders the header part of the HTML, while get_sidebar() and get_footer() render the sidebar and footer, respectively. I&#8217;ve gone through the index.php file to avoid confusion; what I&#8217;d like to do is go through the rendered HTML as that&#8217;s what we&#8217;re going to style. Here&#8217;s the rendered HTML of index.php without the PHP &#8216;loop&#8217; (I&#8217;ve deleted a few unordered lists fro the sidebar as they&#8217;re not relevant):<br />
<code><br />
&lt;body&gt;<br />
&lt;div id="page"&gt;<br />
&lt;div id="header" role="banner"&gt;<br />
&lt;div id="headerimg"&gt;&lt;h1&gt;&lt;a href="Blog name"&lt;/a&gt;&lt;/h1&gt;<br />
&lt;div&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;hr /&gt;<br />
&lt;div id="content" role="main"&gt;<br />
&lt;/div&gt;<br />
&lt;div id="sidebar" role="complementary"&gt;<br />
&lt;ul role="navigation"&gt;<br />
&lt;li&gt;&lt;h2&gt;Archives&lt;/h2&gt;&lt;/ul&gt;&lt;/li&gt;<br />
&lt;ul&gt;&lt;li&gt;&lt;h2&gt;Meta&lt;/h2&gt;&lt;/li&gt;&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;hr /&gt;<br />
&lt;div id="footer" role="contentinfo"&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
</code><br />
Minus a few unordered listed from the sidebar, the above is more or less the standard HTML from the default theme. The site we&#8217;re working on in this tutorial is customised, so has slightly different HTML, but importantly, a similar structure. Here&#8217;s the HTML from DRC Electrical:<br />
<code><br />
&lt;body&gt;<br />
&lt;div id="page"&gt;<br />
&lt;div id="header"&gt;<br />
&lt;h1&gt;&lt;a href="http://drcelectrical.co.uk/" onfocus="if (this.blur)this.blur();"&gt;&lt;span&gt;DRC Electrical Services&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;<br />
&lt;ul id="nav"&gt;<br />
&lt;li&gt;&lt;a href="http://drcelectrical.co.uk/" onfocus="if (this.blur)this.blur();"&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="/services/" onfocus="if (this.blur)this.blur();"&gt;Services&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="/testimonials/" onfocus="if (this.blur)this.blur();"&gt;testimonials&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="/blog/" onfocus="if (this.blur)this.blur();"&gt;blog&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="/contact/" onfocus="if (this.blur)this.blur();"&gt;contact&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;div&gt;&lt;span&gt;Hello, we are a company offering electrical services&lt;/span&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;!--end of header--&gt;<br />
&lt;div id="content"&gt;<br />
&lt;div id="sidebar"&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;h1&gt;&lt;span&gt;Contact DRC Electrical&lt;/span&gt;&lt;/h1&gt;<br />
&lt;p&gt;We always like to talk to people.<br />
Just drop us an email or call us.&lt;/p&gt;<br />
&lt;div&gt;020 8287 7907&lt;/div&gt;<br />
&lt;p&gt;Mobile:&lt;/p&gt;<br />
&lt;div&gt;07985 279916&lt;/div&gt;<br />
&lt;p&gt;Email:&lt;/p&gt;<br />
&lt;div&gt;info@drcelectrical.co.uk&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div&gt;<br />
&lt;h1&gt;&lt;span&gt;Twitter&lt;/span&gt;&lt;/h1&gt;<br />
&lt;div&gt;<br />
Going to elex expo at sandown should be good &lt;a href="http://twitter.com/DRC_Electrical/statuses/6218208623" class="twitter-link"&gt;Go&lt;/a&gt; &lt;span class="twitter-timestamp"&gt;&lt;abbr title="2009/12/01 00:24:04"&gt;2009/12/01&lt;/abbr&gt;&lt;/span&gt;<br />
&lt;/div&gt; &lt;!--end of twitter-message--&gt;<br />
&lt;a href="http://twitter.com/DRC_Electrical/"&gt;&lt;/a&gt;<br />
&lt;/div&gt;&lt;!--end of Twitter-div--&gt;<br />
&lt;ul&gt;&lt;li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;&lt;!--end of sidebar-content--&gt;<br />
&lt;/div&gt;&lt;!--end of sidebar--&gt;<br />
&lt;div id="content-left"&gt;&lt;!--post/content goes in here--&gt;<br />
&lt;div id="post-3"&gt;<br />
&lt;h2&gt;DRC Electrical….&lt;/h2&gt;<br />
&lt;div&gt;<br />
&lt;p&gt;provide electrical services to the London and Surrey areas. Fully qualified, and with years of experience on hand, our typical jobs range from electrical testing to full rewires. Emergency callouts, or jobs booked well in advance, we cover them all.&lt;/p&gt;<br />
&lt;p&gt;Our work is balanced between domestic and corporate customers alike. Onsite commercial electrical work is an area we’re very familiar with. From quotation to completion, we handle everything including sourcing products to disposal.&lt;/p&gt;<br />
&lt;p&gt;If you’re after a competitive rate from an company that’ll provide peace of mind, please don’t hesitate to get in touch. For emails, we aim to respond within 12-hours, while for enquiries that need immediate attention, please telephone.&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;&lt;!--end of post--&gt;<br />
&lt;/div&gt;&lt;!--end of content-left--&gt;<br />
&lt;/div&gt;&lt;!--end of content--&gt;<br />
&lt;div id="footer"&gt;<br />
&lt;div&gt;&lt;a href="http://www.zorinweb.com" target='blank' title="Website by Zw"&gt;Site by Zw&lt;/a&gt;&lt;/div&gt;<br />
&lt;div&gt;&amp;copy; 2009 DRC Electrical&lt;/div&gt;<br />
&lt;/div&gt;&lt;!--end of footer--&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
</code><br />
That&#8217;s the generated HTML from the home page which I&#8217;ve commented as best as possible. The structure&#8217;s very similar to the default theme; we still have the &#8216;page&#8217; DIV, &#8216;header&#8217;, &#8216;content&#8217;, &#8216;sidebar&#8217; and &#8216;footer&#8217;. Assuming you&#8217;ve cut out the images, place them in an appropriate folder, and set up the development environment (if you use one), and let&#8217;s begin the styling.</p>
<h3>The CSS</h3>
<p>First, the body:<br />
<code><br />
body {<br />
margin: 0;<br />
padding: 0;<br />
font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;<br />
font-size: 13px;<br />
color: #fff;<br />
height: 100%;<br />
background: #1479c7 url(images/background-repeat.jpg) repeat-x;<br />
}<br />
</code><br />
Importantly here, we&#8217;ve taken our initial bit of slicing, &#8216;background-repeat.jpg&#8217;, and repeated it across the body&#8217;s x axis, and set the background to #1479c7. That&#8217;s the top of the sorted out, margin and padding zeroed in, etc.. As for the structure:<br />
<code><br />
#page {<br />
width: 810px;<br />
margin: 0 auto;<br />
}<br />
</code><br />
The outer DIV, page, is set to 810px wide and placed in the centre.<br />
<code><br />
#header {<br />
width: 810px;<br />
height: 380px;<br />
position: relative;<br />
}<br />
</code><br />
With the header&#8217;s styling in place, we can now plonk the logo, navigation and introductory sentence in.<br />
<code><br />
#header h1 {<br />
margin:0px;<br />
font-weight:bold;<br />
}<br />
#header h1 a {<br />
height:100px;<br />
width:350px;<br />
background: url(images/logo.jpg) no-repeat 0px 10px;<br />
float:left;<br />
margin:20px 0 0 0;<br />
}<br />
#header h1 a span {<br />
display: none;<br />
}<br />
</code><br />
Adhering to best practices and accessibility, the logo&#8217;s attached to a link within an H1 one heading. The actual HTML for DRC Electrical is inserted between span tags set to &#8216;display: none&#8217;. Here&#8217;s the navigation&#8217;s CSS:<br />
<code><br />
#nav {<br />
width: 800px;<br />
position: relative;<br />
padding: 3px;<br />
margin: 0 0 0 7px;<br />
height: 30px;<br />
float: left;<br />
font-weight: bold;<br />
font-family: Georgia, "Times New Roman", Times, serif;<br />
}<br />
#nav li {<br />
width: 120px;<br />
float: left;<br />
list-style: none;<br />
}<br />
#nav a {<br />
height: 26px;<br />
color: #FFF;<br />
display: block;<br />
text-decoration: none;<br />
text-align: center;<br />
background: url(images/nav-button.jpg) no-repeat;<br />
padding: 4px 0 0 0;<br />
}<br />
#nav a:hover {<br />
background: url(images/nav-button-hover.jpg) no-repeat;<br />
}<br />
</code><br />
&#8216;#nav&#8217; sets the container&#8217;s dimensions, &#8216;#nav li&#8217; sorts out the individual elements, while &#8216;#nav a&#8217; style&#8217;s out the actual links assigning the background of each to &#8216;images/nav-button.jpg&#8217;, the blue button cut out earlier on. Lastly for the navigation, &#8216;#nav a:hover&#8217; gives a nice little hover effect with the orange button, &#8216;nav-button-hover.jpg&#8217;.</p>
<p>The introductory sentence is encased within &#8216;hello&#8217; DIV.<br />
<code><br />
.hello {<br />
background: url(images/intro-text.jpg) no-repeat;<br />
float: left;<br />
height: 140px;<br />
margin: 30px 0 0;<br />
width: 470px;<br />
}<br />
.hello span {<br />
display: none;<br />
}<br />
</code><br />
Again, the background&#8217;s set to images/intro-text.jpg, with a span styled to display none for the HTML to make it accessible. Closing out the header section, a DIV with a class of &#8216;lamp&#8217;. The following should be self explanatory:<br />
<code><br />
.lamp {<br />
float: right;<br />
height: 200px;<br />
margin: 16px 70px 0 0;<br />
width: 230px;<br />
background: url(images/lightbulb4.jpg) no-repeat;<br />
}<br />
</code><br />
Moving onto the &#8216;content&#8217; portion:<br />
<code><br />
#content {<br />
width: 810px;<br />
float :left;<br />
}<br />
#content-left {<br />
width: 530px;<br />
min-height: 650px;<br />
position: relative;<br />
float: left;<br />
}<br />
</code><br />
&#8216;content-left&#8217; is simply floated to the left to make way for the sidebar which appears before &#8216;content-left&#8217; in the markup. Here&#8217;s the sidebar and it&#8217;s paragraph element:<br />
<code><br />
#sidebar {<br />
margin: 0 0 0 6px;<br />
min-height: 600px;<br />
width: 258px;<br />
float: right;<br />
display: table;<br />
}<br />
#sidebar p {<br />
margin:4px 0;<br />
color:#B8B291;<br />
width:220px;<br />
}<br />
</code><br />
Incidentally display is set to &#8216;table&#8217;; I&#8217;ll explain about that in another tutorial. The next DIV in the sidebar is &#8216;side-content&#8217;.<br />
<code><br />
.side-content {<br />
float: left;<br />
width: 258px;<br />
padding: 0;<br />
min-height: 500px;<br />
}<br />
</code><br />
The first piece of content in the sidebar deals with contact details, which is inserted in:<br />
<code><br />
.contact {<br />
border-bottom: 1px #7ab3df solid;<br />
}<br />
</code><br />
This gives us a nice border at the bottom.<br />
<code><br />
h1.contact-sidebar  {<br />
width: 226px;<br />
height: 38px;<br />
background: url(images/sidebar-contact.jpg) no-repeat -6px 0;<br />
margin: 0;<br />
}<br />
h1.contact-sidebar span {<br />
display: none;<br />
}<br />
</code><br />
The above styling&#8217;s for the &#8216;contact&#8217; heading. sidebar-contact.jpg is cut out of the psd and assigned to an H1 heading with a class of .contact-sidebar. The same applies to the Twitter heading.<br />
<code><br />
h1.twitter-sidebar  {<br />
width: 226px;<br />
height:38px;<br />
background: url(images/sidebar-twitter.jpg) no-repeat -6px 0;<br />
margin:0;<br />
}<br />
h1.twitter-sidebar span {<br />
display:none;<br />
}<br />
</code><br />
Finishing off the sidebar is Twitter feed box and the corresponding &#8216;follow me&#8217; button:<br />
<code><br />
.twitter-div {<br />
background:transparent url(images/twitter-box.jpg) no-repeat -10px 55px;<br />
border-bottom:1px solid #7ab3df;<br />
height:205px;<br />
padding:10px 0;<br />
}<br />
.twitter-message {<br />
color:#B8B291;<br />
margin:18px 0 0 8px;<br />
padding:0;<br />
width:240px;<br />
height:82px;<br />
}<br />
.followme {<br />
background:url(images/follow-me-button.jpg) no-repeat;<br />
display:block;<br />
margin-top:25px;<br />
height:30px;<br />
width:145px;<br />
}<br />
</code><br />
The .twitter-div has it&#8217;s background set to  url(images/twitter-box.jpg) no-repeat -10px 55px; this is the Twitter box cut out earlier on. The &#8216;twitter-message&#8217; fits in the box and styles the input, while &#8216;follow me&#8217; button has it&#8217;s background set appropriately.</p>
<p>That takes care of all the images; here&#8217;s the rest of the CSS to go with the remaining markup:<br />
<code><br />
#footer {<br />
float:left;<br />
height:39px;<br />
padding:40px 0 0;<br />
width: 810px;<br />
color:#7ab3df;<br />
}<br />
</code><br />
Hope you enjoyed the tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2009/12/converting-a-design-to-a-wordpress-website/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Fixing Internet Explorer CSS Problems with Conditional Comments</title>
		<link>http://zorinweb.com/2009/12/fixing-internet-explorer-css-problems-with-conditional-comments/</link>
		<comments>http://zorinweb.com/2009/12/fixing-internet-explorer-css-problems-with-conditional-comments/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 16:13:15 +0000</pubDate>
		<dc:creator>ZorinWeb</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[conditional comments]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://zorinweb.com/?p=93</guid>
		<description><![CDATA[You&#8217;ve developed a site using W3C best practices; it validates, the markup&#8217;s semantic or as clean as possible, and looks great in Firefox. The problem is, Internet Explorer doesn&#8217;t quite see it as the designer intended. The CSS is out and in need of a few hacks; but there&#8217;s a better, more effecient and tidier [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve developed a site using W3C best practices; it validates, the markup&#8217;s semantic or as clean as possible, and looks great in Firefox. The problem is, Internet Explorer doesn&#8217;t quite see it as the designer intended. The CSS is out and in need of a few hacks; but there&#8217;s a better, more effecient and tidier solution &#8211; conditional comments.<br />
<code><br />
&lt;!--[if lte IE 7]&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="css/ie.css" media="screen" /&gt;<br />
&lt;![endif]--&gt;</code></p>
<p><span id="more-93"></span></p>
<p>The above piece of code targets selects all     IE versions less than or equal to 7, and is Microsoft&#8217;s recommended method for aiming CSS as one of its browsers.  Include all the problematic CSS in stylesheet &#8216;ie.css&#8217; and leave the conditional comment below the main stylesheet. Try this rather than resorting to a hack, or giving up entirely and whacking a table in.</p>
]]></content:encoded>
			<wfw:commentRss>http://zorinweb.com/2009/12/fixing-internet-explorer-css-problems-with-conditional-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

