<?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, SEO &#38; CSS... etc &#187; photoshop</title>
	<atom:link href="http://www.ellis87webdesign.com/blog/tag/photoshop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ellis87webdesign.com/blog</link>
	<description>General tips and ramblings to do with web design, SEO &#38; CSS and a few stories...</description>
	<lastBuildDate>Tue, 29 Mar 2011 11:27:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Photoshop to XHTML. Part 2 &#8211; Chop da Shop!!!</title>
		<link>http://www.ellis87webdesign.com/blog/2009/12/photoshop-to-xhtml-part2/</link>
		<comments>http://www.ellis87webdesign.com/blog/2009/12/photoshop-to-xhtml-part2/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 12:58:50 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[.PHP]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[psd]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.ellis87webdesign.com/blog/?p=107</guid>
		<description><![CDATA[Continuing on from my opening post about my first ever photoshop to XHTML conversion. In this post I&#8217;m going to cover the initial chopping up of the photoshop layout into the individual website sections eg header, navigation, content etc. So without further ado, let&#8217;s Choop da Shoop&#8230; In this particular example I was provided the [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing on from my opening post about my first ever <a title="Photoshop Layout to XHTML Website Conversion. Part 1" href="http://www.ellis87webdesign.com/blog/2009/11/my-first-photoshop-layout-to-xhtml-css-website/">photoshop to XHTML conversion</a>. In this post I&#8217;m going to cover the initial chopping up of the photoshop layout into the individual website sections eg header, navigation, content etc. So without further ado, let&#8217;s Choop da Shoop&#8230;</p>
<p><span id="more-107"></span></p>
<p><img class="aligncenter size-full wp-image-114" title="Chopping The Shop! Choopin da Shoop! Shoop da Whoop!" src="http://www.ellis87webdesign.com/blog/wp-content/uploads/2009/12/choop-da-shoop.jpg" alt="Chopping The Shop! Choopin da Shoop! Shoop da Whoop!" width="440" height="154" /></p>
<p>In this particular example I was provided the original photoshop layout by my clients graphics designer, a very skilled man indeed (who I am fortunate to continue to work alongside occasionally) but from a 100% print background handling lots of high resolution brochures, posters etc.</p>
<p>The layout was provided as a single layered image which meant I didn&#8217;t have the luxury of being able to grab each element as I would have done had the layout been provided as a layered .psd file. I think I also mentioned in my previous post about it also being supplied as a.pdf file :O( but hey back then I didn&#8217;t know any better. You never stop learning!</p>
<p>The first thing I did was take a full sized screen shot, cropped the layout out and saved it as a high res .png file. I also re captured the large photo that dominates the homepage content area and saved that as a .jpg for later use.</p>
<p>This gave me something a little like this:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-108" title="Photoshopped layout ready for conversion to xhtml website" src="http://www.ellis87webdesign.com/blog/wp-content/uploads/2009/12/001-homepage.jpg" alt="Photoshopped layout ready for conversion to xhtml website" width="440" height="290" /></p>
<p style="text-align: left;">Next I had to decide how to chop it all apart, what could be recreated using styled text and what would have to remain graphical. Unfortunately due to the non web safe font a lot of the original graphics has to remain in use (more on which later but I figured out a nice way to use text styled with CSS to look like the graphics including rollover effects) as opposed to primarily using text which is so much better for search engine optimization.</p>
<p style="text-align: left;">After a bit of chopping I basically arrived at this breakdown into the main sections:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-109" title="Photoshop layout marked for chopping into individual elements" src="http://www.ellis87webdesign.com/blog/wp-content/uploads/2009/12/002-homepage-sectionsA.jpg" alt="Photoshop layout marked for chopping into individual elements" width="440" height="290" /></p>
<ul>
<li>A &#8211; Header</li>
<li>B &#8211; Top main navigation</li>
<li>C &#8211; Main content area</li>
<li>D &#8211; right column, secondary navigation</li>
<li>E &#8211; Footer</li>
</ul>
<p>I had to reconstruct some areas eg the header without the main navigation but I eventually ended up with a few individual elements that would then be built back together to display the whole, working site using XHTML, .PHP and CSS.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-111" title="Photoshop layout broken into primary elements ready for reconstruction with XHTML and CSS" src="http://www.ellis87webdesign.com/blog/wp-content/uploads/2009/12/003-homepage-sectionsB.jpg" alt="Photoshop layout broken into primary elements ready for reconstruction with XHTML and CSS" width="440" height="470" /></p>
<p style="text-align: left;">I had to divide the main navigation section into individual buttons and then create a darker hover state for the rollover effect. The resulting CSS required to convert what was a basic unordered list type of navigation using optimized text into the graphical representation was quite a challenge to say the least.</p>
<p style="text-align: left;">Each list item required a unique class so that each menu button could be given it&#8217;s own graphic hover image. Plus (by using .php) each item could be assigned a &#8216;selected&#8217; class to allow the darker hovered image to remain displayed to indicate the currently viewed page.</p>
<p style="text-align: left;">What began as a tidy, unordered list quickly became something of a rats nest of code. You can see an idea of the list items below (I&#8217;ve removed urls and title etc to clean things up a bit):</p>
<pre class="brush: xml;">
&lt;ul&gt;
&lt;li class=&quot;home&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;title here&quot; &lt;?php if ($page == ‘index.php’) { ?&gt;class=&quot;selected&quot;&lt;?php } ?&gt;&gt;&lt;span&gt;text link&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li class=&quot;something&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;title here&quot; &lt;?php if ($page == ‘something.php’) { ?&gt;class=&quot;selected&quot;&lt;?php } ?&gt;&gt;&lt;span&gt;text link&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li class=&quot;somethingelse&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;title here&quot; &lt;?php if ($page == ‘somethingelse.php’) { ?&gt;class=&quot;selected&quot;&lt;?php } ?&gt;&gt;&lt;span&gt;text link&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p style="text-align: left;">This first list items class is &#8220;home&#8221; which calls the CSS to display the homepageUP graphic <em>(the span is given a negative margin to move the anchor text 999pixels to the left and out of sight)</em> for the link and swap it for the homepageHOVER graphic when the link is hovered. Once the link is clicked the .php code assigns the class of &#8220;selected&#8221; and the CSS for &#8220;.home.selected&#8221; tells the browser to display the hovered image to indicate that menu item as the currently displayed page. I could have used a totally different image for the &#8220;selected&#8221; state, maybe bright red with flashing dots but time was pressing on and it works fine. Here&#8217;s the CSS:</p>
<pre class="brush: css;">
#navTop .home a {
background-image: url(../img/homepageUP.png);
background-repeat: no-repeat;
width: 96px;
height: 34px;
}

#navTop .home a:hover {
background-image: url(../img/homepageHOVER.png);
background-repeat: no-repeat;
width: 96px;
height: 34px;
}

#navTop .home .selected  {
background-image: url(../img/homepageHOVER.png);
background-repeat: no-repeat;
width: 96px;
height: 34px;
}
</pre>
<p style="text-align: left;">This was applied to each of the five main navigation elements that were assigned a div id of navTop and saved as an included .php file navTop.php</p>
<p style="text-align: left;"><strong>See a demo and grab the source files: <a title="Free CSS Nav Menu - textImage using php to assign selected class." href="http://www.ellis87webdesign.com/demos/navigation1/">CSS text/image navigation menu using .php to assign selected class</a>.</strong></p>
<p style="text-align: left;">In my next post in this series I&#8217;ll share how I eventually got the navigation in the right column working, it was originally just whole blocks of graphics with a hover action assigned using javascript, urgh. It took me a while but in the end I did it with CSS, got the blue diamond showing and correctly overlapping the main content div.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellis87webdesign.com/blog/2009/12/photoshop-to-xhtml-part2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My first Photoshop layout to XHTML &amp; CSS website</title>
		<link>http://www.ellis87webdesign.com/blog/2009/11/my-first-photoshop-layout-to-xhtml-css-website/</link>
		<comments>http://www.ellis87webdesign.com/blog/2009/11/my-first-photoshop-layout-to-xhtml-css-website/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 11:10:45 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[psd]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.ellis87webdesign.com/blog/?p=34</guid>
		<description><![CDATA[This is the first part in what will eventually become a series of posts regarding converting a Photoshop layout into a fully functional website. I won&#8217;t go into too gory details as these tutorials have been done (far better) elsewhere. My aim is to try to highlight some of the pitfalls encountered and subsequent workarounds. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-medium wp-image-37" title="Cyden Homes Ltd" src="http://www.ellis87webdesign.com/blog/wp-content/uploads/2009/11/CydenHomesNew-300x196.jpg" alt="Cyden Homes Ltd" width="300" height="196" /></p>
<p>This is the first part in what will eventually become a series of posts regarding converting a Photoshop layout into a fully functional website. I won&#8217;t go into too gory details as these tutorials have been done (far better) elsewhere. My aim is to try to highlight some of the pitfalls encountered and subsequent workarounds.</p>
<p><span id="more-34"></span><br />
If you&#8217;re fairly new to using css one of the best things to do to get that much needed practice is to try and convert a photoshop (.psd) website layout into a fully functional web site.</p>
<p>If you&#8217;re lucky the .psd will be provided with all the relevant layers still floated etc making it much easier to crop out the individual graphical elements for the final site.</p>
<p>The site I&#8217;m using in this example is for a housing developer in the UK and I was provided the original layout by their graphics designer. I might add at this point the graphics designer is a top bloke and has over 25 years experience in printed design graphics, ie brochures, posters advertising, flyers etc etc. He was approached by the company to design them a website layout, which he did, and a beautiful design it is too. We have now worked together on several projects and he has learned things about typical web layout expectations and standards and I&#8217;ve learned a hell of a lot more from him about graphics.</p>
<p>My problem began when I was approached to be the guy to turn it into a website, I loved the layout I was shown and was keen to get involved in the project. However, I was provided the layout as a single layered image so I had to get busy on the cutting up myself. I also had to reconstruct areas that were hidden by things that would have been floated above initially.</p>
<p>Oh I almost forgot, it was provided as a .pdf file&#8230; &#8230; I should have just asked for the files but I was new to all this back then and keen to impress the pros. I just took a screen shot of the .pdf at 100% and then saved the layout as a big old .png.</p>
<p>I also had to construct static, hover and visited link images for the top, graphical menu as a non web standard font over a gradient background meant I couldn&#8217;t just use text links with a background colour change on hover etc.</p>
<p>This additional workload was going to put me way past my initial time frame so to save time on then having to write a load of css from scratch to put it all back together, then de-bug it for Internet Explorer (Grrr I hate IE) I used tables for the basic layout&#8230;</p>
<p>Wrong move! Suddenly the right hand side menu was giving me a world of pain, trying to incorporate the graphics (now being chopped into tiny filler blocks etc for the tables and cells) in with the smaller real text (something in Arial finally).</p>
<p>With a lot of swearing, hacking and tweaking even resorting to Frontpage (OMG!!! now long binned) and totally giving up on validation &#8211; that was way too far gone &#8211; I got a working site up and running. The thing was although the client was delighted and the site did perform very well for search I was never truly happy with it &#8211; the knowledge of what lurked below the surface had me waking in the night in a cold sweat&#8230; Anyone viewing the source code would have lol&#8217;d to say the least!</p>
<p>So I went right back to the start, as a personal project and to teach myself more about css, and began again.</p>
<p>Thanks to awesome blogs and sites like CSS Tricks not to mention lots of lot of Googling and Stumbling I began to figure out ways of achieving a fully css styled version of the site. I had to have a couple of chats with the owners to make sure they were happy that a couple of fonts might change but that generally it would look the same on the outside albeit certain wobbly areas would be a lot cleaner. The magic would be hidden away and unknown to all but web geeks like myself viewing source and search engine spiders.</p>
<p>There is also a bit of .php going on, using includes for all the menus then having to figure a way of assigning a &#8216;current&#8217; class to the relevant link to show it as the currently viewed page. Easy enough with a menu on each page &#8211; just assign the class of the link for that page as current. Not so easy when the menus are just included from a single external file.</p>
<p>Thanks to <a href="http://www.alistapart.com/articles/keepingcurrent/">this tutorial</a> for that problem solved.</p>
<p>I have learned so much from this experience, I&#8217;ve actually gone back over some other sites I did a while ago and re-vamped them too.</p>
<p>The finished results are cleaner, faster loading, W3C valid and well, I can just look at them and smile finally.</p>
<p>Go To Part 2: <a title="Photoshop layout to xhtml website" href="http://www.ellis87webdesign.com/blog/2009/12/photoshop-to-xhtml-part2/">Photoshop layout to XHTML</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellis87webdesign.com/blog/2009/11/my-first-photoshop-layout-to-xhtml-css-website/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

