<?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; CSS</title>
	<atom:link href="http://www.ellis87webdesign.com/blog/category/css/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>Web design, a few simple rules.</title>
		<link>http://www.ellis87webdesign.com/blog/2009/11/web-design-rules/</link>
		<comments>http://www.ellis87webdesign.com/blog/2009/11/web-design-rules/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 10:31:30 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.ellis87webdesign.com/blog/?p=68</guid>
		<description><![CDATA[One of my passions if you like is to learn more about how to create websites that conform to a few basic rules that are 90% of the time missed out by simple page builder software and online site builders. Following these simple to implement rules usually ensures, among many other things, stuff like: 1) [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-69" title="Poor web design can lose customers... fast!" src="http://www.ellis87webdesign.com/blog/wp-content/uploads/2009/11/raaaar.jpg" alt="Poor web design can lose customers... fast!" width="300" height="224" /></p>
<p>One of my passions if you like is to learn more about how to create websites that conform to a few basic rules that are 90% of the time missed out by simple page builder software and online site builders. Following these simple to implement rules usually ensures, among many other things, stuff like:<span id="more-68"></span><strong> </strong><br />
<br />
<strong>1) Showing up in search engine results pages (serps) through SEO</strong> &#8211; (here are some (not all) hot tips some people charge a lot of money to share!) keyworded image alt and link title tags, h1 &amp; h2 tags at least for content titles and sub-titles, a good &lt;head&gt; title tag, text links not graphical buttons for menus/navigation, placing javascript etc in external files, adding an .xml sitemap and lastly keep using the description meta tag&#8230; although now deprecated for search engine ranking description meta does tell the search engine what text to display in the snippet shown below the blue link in the results pages. Reciprocal linking with other similar topic related sites/blogs is also vital.</p>
<p><strong>2) Showing a reasonably similar appearance in the major browsers</strong></p>
<p><strong>3) Web safe colours and fonts</strong> &#8211; people go to a lot of trouble to design their site using a font they downloaded not realising it will just default to a serif or sans-serif regular font on every browser in the world on computers that don&#8217;t have that same font installed.</p>
<p><strong>4) Usability for others</strong>, you might instinctively know your way around your site but a first time visitor may well be lost if you don&#8217;t follow simple rules or expectations like:</p>
<p><strong>4i) Logo top left or top right</strong> (usually top-left) should always be a link back to the homepage.</p>
<p><strong>4ii) Navigation menus</strong> should <em>always remain in the same place on a page</em> &#8211; if it&#8217;s in the left column on the homepage, keep it there on all the other pages &#8211; and be one click away from the homepage or top level pages. I hate clicking a link, getting to that page then finding all navigation has moved or vanished totally leaving me the back button on my browser as the only means of getting back&#8230; I&#8217;ll just go to Google and find a site that works, goodbye potential customer, gone for good!</p>
<p><strong>4iii) Search Feature</strong> &#8211; if it&#8217;s a big site help your users find what they want with a built in search feature. Most people on ye goode olde tinterwebs are looking for something (often while at work or in a hurry), if they can&#8217;t find it on your site they will quickly go elsewhere so help them find it! Wave goodbye once again&#8230;</p>
<p><strong>5) Images &amp; links</strong> should always be given alt and title tags respectively not just for SEO but for text only browsers like Lynx and screen reader software too. Links should also be given a &#8220;focus&#8221; state similar to a hover state that tells you it&#8217;s a link (often an underline that vanishes on hover) when you hover your mouse cursor over it, the focus state is for people navigating via a keyboard and not a mouse and highlights the links when the TAB button is pressed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellis87webdesign.com/blog/2009/11/web-design-rules/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>

