<?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"
	>

<channel>
	<title>Developer Tutorials' Webmaster Blog &#187; css</title>
	<atom:link href="http://www.developertutorials.com/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<pubDate>Tue, 02 Sep 2008 14:59:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Five Tools For Faking Advanced CSS</title>
		<link>http://www.developertutorials.com/blog/design/five-tools-for-faking-advanced-css-352/</link>
		<comments>http://www.developertutorials.com/blog/design/five-tools-for-faking-advanced-css-352/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 03:42:22 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[hack]]></category>

		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/five-tools-for-faking-advanced-css-352/</guid>
		<description><![CDATA[When some people find a well-designed blog with a few neat tricks, they tend to automatically assume the owner is a CSS genius who&#8217;s the next big designer to hit the web.  That very well may be the case but more often than not the designer is using &#8216;tools&#8217; that you just haven&#8217;t discovered [...]]]></description>
			<content:encoded><![CDATA[<p>When some people find a well-designed blog with a few neat tricks, they tend to automatically assume the owner is a CSS genius who&#8217;s the next big designer to hit the web.  That very well may be the case but more often than not the designer is using &#8216;tools&#8217; that you just haven&#8217;t discovered yet. Here&#8217;s five web generators that will make you look like <a href="http://www.ndesign-studio.com/" target="_blank">Nick La</a>! </p>
<p><span id="more-352"></span></p>
<p><a href="http://www.developertutorials.com/blog/wp-content/uploads/2008/07/picture-22.png"><img src="http://www.developertutorials.com/blog/wp-content/uploads/2008/07/picture-22-300x115.png" alt="" width="300" height="115" class="alignnone size-medium wp-image-353" /></a></p>
<p><strong><a href="http://csstypeset.com/" target="_blank">CSSTypeset</a></strong><br />
CSSTypset is handy tool for seeing the effect of CSS code while simultaneously seeing what&#8217;s going on behind the scenes with the actual code.  It works both ways, you can type code and immediately see it applied to text, or you can type text and use a GUI with sliders to apply CSS to your text.  If you have a hard time figuring out the difference between <strong>em</strong> and <strong>px</strong>, <strong>verdana</strong> and <strong>helvetica</strong> then this is the tool for you.</p>
<p><strong><a href="http://www.text2png.com/" target="_blank">Text2PNG</a></strong><br />
Add a few lines of javascript to your header and this nifty web tool converts your headlines to images automatically.</p>
<p><a href="http://www.developertutorials.com/blog/wp-content/uploads/2008/07/picture-3.png"><img src="http://www.developertutorials.com/blog/wp-content/uploads/2008/07/picture-3-300x139.png" alt="" width="300" height="139" class="alignnone size-medium wp-image-354" /></a></p>
<p><strong><a href="http://www.csstextwrap.com/" target="_blank">CSSTextWrap</a></strong><br />
Sick of &#8216;designing to an invisible grid&#8217;?  Turn that grid into origami and spice up your layouts with this incredible text wrap tool.</p>
<p><a href="http://www.developertutorials.com/blog/wp-content/uploads/2008/07/picture-62.png"><img src="http://www.developertutorials.com/blog/wp-content/uploads/2008/07/picture-62-300x106.png" alt="" width="300" height="106" class="alignnone size-medium wp-image-357" /></a></p>
<p><strong><a href="http://www.askthecssguy.com/kotatsu/index.html" target="_blank">Kotatsu</a></strong><br />
A wrote <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/">a tutorial a while back</a> about how to make XHTML tables that could be marked up with PHP, Javascript or Ajax.  If only I had known about this tool then!  Essentially it&#8217;s a HTML table generator.</p>
<p><a href="http://www.developertutorials.com/blog/wp-content/uploads/2008/07/picture-5.png"><img src="http://www.developertutorials.com/blog/wp-content/uploads/2008/07/picture-5-300x189.png" alt="" width="300" height="189" class="alignnone size-medium wp-image-355" /></a></p>
<p><strong><a href="http://goldenratiocalculator.com/" target="_blank">GoldenRationCalculator</a></strong><br />
Divine proportions have been used for all types of creative work, from architecture to print layout to photography.  It&#8217;s only natural that it also eventually found it&#8217;s way into web design.  This web generator makes it easy to design using the &#8216;golden ratio&#8217; as the underlying framework for your website&#8217;s design.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d352" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/five-tools-for-faking-advanced-css-352/&amp;title=Five+Tools+For+Faking+Advanced+CSS" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/five-tools-for-faking-advanced-css-352/&amp;title=Five+Tools+For+Faking+Advanced+CSS" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/five-tools-for-faking-advanced-css-352/&amp;title=Five+Tools+For+Faking+Advanced+CSS" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/five-tools-for-faking-advanced-css-352/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Opera and Firefox Makers Talk CSS3</title>
		<link>http://www.developertutorials.com/blog/design/opera-and-firefox-makers-talk-css3-274/</link>
		<comments>http://www.developertutorials.com/blog/design/opera-and-firefox-makers-talk-css3-274/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 18:25:16 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[css3]]></category>

		<category><![CDATA[firefox]]></category>

		<category><![CDATA[mozilla]]></category>

		<category><![CDATA[opera]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/opera-and-firefox-makers-talk-css3-274/</guid>
		<description><![CDATA[Extensible Hypertext Markup (XML) has changed the web as we knew it and helped to make websites rich, well designed and fast loading.  It&#8217;s become an integral part of Web 2.0 that won&#8217;t be going away any time soon.  So what&#8217;s next for CSS?  Mozilla and the Opera Software company give us [...]]]></description>
			<content:encoded><![CDATA[<p>Extensible Hypertext Markup (XML) has changed the web as we knew it and helped to make websites rich, well designed and fast loading.  It&#8217;s become an integral part of Web 2.0 that won&#8217;t be going away any time soon.  So <a href="http://www.w3.org/blog/CSS">what&#8217;s next for CSS</a>?  Mozilla and the Opera Software company give us some clues as to what features from the new <a href="http://www.w3.org/Style/CSS/current-work#CSS3">CSS3 markup</a> that may be incorporated into the next generation of web browsers.  Here are some highlights&#8230;</p>
<p><span id="more-274"></span></p>
<p><b>Firefox CSS3 Highlights</b></p>
<ul>
<li>Support for the <em>inline-block</em> (CSS 2.1) and inline-table (CSS 2.0) values of the display property</li>
<li><em>font-size-adjust</em> is a property in CSS 2.0 (which was dropped from CSS 2.1 due to lack of implementations).  Think of it as a way to a way for style sheets to pick font size by the size of the x-height rather than the size of the font.<br />
<blockquote><p>Anyway, why would you want to use this? Largely because, on the Web, you don&#8217;t actually know what font is going to be used. Different machines, especially when running different operating systems, have different fonts on them. Even the same font might be used slightly differently on different operating systems. The lowercase letters in different fonts take up a different proportion of the font&#8217;s size. How big text appears and how much width it takes up is often more closely related to the size of the lowercase letters than the uppercase. </p>
</blockquote>
</li>
<li><em>rgba() and hsla() colors</em> will allow for easier control over transparencies and color separation</li>
<li>New values for the width, <em>min-width</em>, and <em>max-width</em> properties: <em>-moz-max-content</em>, <em>-moz-min-content</em>, <em>-moz-fit-content</em>, and <em>-moz-available</em>.  This value lets authors do some things that previously weren&#8217;t possible without tables, such as putting backgrounds on headings that won&#8217;t fill the whole width of the container unless the heading does, but is a single rectangle if the heading breaks to multiple lines.</li>
<li><em>white-space: pre-wrap</em> will allow for the displaying of preformatted text in a way that wraps when the text doesn&#8217;t fit in the width of its container. This can be useful for things like source code samples and mailing list archives.</li>
</ul>
<p><b>Opera CSS3 Highlights</b></p>
<ul>
<li><em>Media queries</em> are a CSS 3 construct, which work in a similar manner to conditional comments, except that these are web standards, rather than proprietary constructs—you can enclose a block of CSS rules inside a media query, and then have them applied to your markup (or not) depending on a condition, such as &#8220;is the screen size less than 480 pixels&#8221;?</li>
<li><em>text-shadow</em> Using drop shadows with text used to mean serving the text as an image, and messing about the positioning, but that’s no longer the case. In the text-shadow property, the values from left to right set the color of the shadow, the left/right and top/bottom offsets of the shadow (negative values move the shadow left/up, and positive values move the shadow right/down), and the amount of blurring for the shadow.</li>
<li><em>-o-background-size</em> allows for the dynamic or conditional control of background images.</li>
<li><em>HSL.</em> CSS 3 allows you to specify colours as HSL (or Hue, Saturation, Lightness) values—this is good, HSL colors overcome some of the limitations of RGB colors.</li>
</ul>
<p>You can review even more of the plans for CSS3 for <a href="http://developer.mozilla.org/en/docs/CSS_improvements_in_Firefox_3">Firefox</a> and <a href="http://dev.opera.com/articles/view/opera-9-5-the-next-generation-of-web-s/#css3">Opera</a> and some developer feedback <a href="http://soapbox.css3.info/general/wasp-css3-feedback.html">here</a>.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d274" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/opera-and-firefox-makers-talk-css3-274/&amp;title=Opera+and+Firefox+Makers+Talk+CSS3" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/opera-and-firefox-makers-talk-css3-274/&amp;title=Opera+and+Firefox+Makers+Talk+CSS3" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/opera-and-firefox-makers-talk-css3-274/&amp;title=Opera+and+Firefox+Makers+Talk+CSS3" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/opera-and-firefox-makers-talk-css3-274/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Styling Your Online Resume</title>
		<link>http://www.developertutorials.com/blog/design/styling-your-online-resume-204/</link>
		<comments>http://www.developertutorials.com/blog/design/styling-your-online-resume-204/#comments</comments>
		<pubDate>Fri, 30 May 2008 03:00:59 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[resume]]></category>

		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/styling-your-online-resume-204/</guid>
		<description><![CDATA[I&#8217;m going to give you some advice that will rock your world.  If you&#8217;re a web designer, you should design your resume. *GASP* 
All kidding aside, the importance of impressing people with your resume&#8217;s visual appeal, especially online, is important.  Here are some tips on styling a resume so it conveys your skills [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to give you some advice that will rock your world.  If you&#8217;re a web designer, you should <strong>design</strong> your resume. *GASP* </p>
<p>All kidding aside, the importance of impressing people with your resume&#8217;s visual appeal, especially online, is important.  Here are some tips on styling a resume so it conveys your skills and is pleasing to the eye. </p>
<p>Keep in mind, when I say <i>design</i>, I don&#8217;t necessarily mean having flying planets, sparkles and grunge effects all over it.  That would be annoying and if that&#8217;s what your resume looks like right now, I strongly encourage that you remain employed until you get a chance to fix it.</p>
<p>What I mean is paying attention to three critical things: typography, layout and accessibility.</p>
<p><span id="more-204"></span></p>
<ol>
<li><strong>Provable Type</strong><br />
No matter what you think, as soon as people look at your resume they instantly begin forming opinions about you. &#8220;Oh my god, why the heck did this guy put his name in Comic Sans Bold!?&#8221;  It&#8217;s your job to make sure they get the right message.  At the same time using the same font size all over your resume can look boring.  Vary the size of fonts in your headers.</p>
<p><img src="http://farm3.static.flickr.com/2018/2534171885_dc05d1367b.jpg"></p>
<p>I used bold and caps above to break up the space in my &#8220;skills&#8221; section which would look jumbled otherwise. As a general rule you should only use one professional looking font for your online resume.  Using more than two font-families on a resume is ill-advised (and by ill-advised I really just mean ugly.)</p>
<p>On my resume I used <strong>Arial, Helvetica, sans-serif</strong> at <strong>font-size:20px</strong> for headers and <strong>font-size:12px</strong> throughout.</li>
<li><strong>Organization is Key</strong><br />
The layout of your resume is directly proportional to your chances of getting hired.  Repeat that.  I don&#8217;t know if it&#8217;s true but it sounds nice.    But you really should make sure your design is as clean and easy to read as possible. </p>
<p><img src="http://farm4.static.flickr.com/3259/2534986558_83d588dd94.jpg"></p>
<p>Don&#8217;t justify text, only use all caps for headers and to define lists.  Double check to make sure your resume prints well.  You may want to consider using <a href="http://code.google.com/p/hartija/">Hartija&#8217;s CSS Print Framewor</a>k.</li>
<li><strong>Usability is Important</strong><br />
Since your online resume is displaying in a web browser, usability is very important.  It will also convey some basic understanding of web design if you can demonstrate comprehension of usability.  On my resume I floated this column on the left:</p>
<p><img src="http://farm3.static.flickr.com/2212/2534171847_f7a2f5e92d.jpg"></p>
<p>This allows the user to download the document in whatever format they see fit.  It also includes a link to my online portfolio and my hcard, two other things that will convey competence.</li>
<p>You can view my full resume <a href="http://gosdot.com/resume/">here</a>. It&#8217;s to the point and clean.  It looks nice in the browser, prints well and if the user wants to take it with them there&#8217;s the links for downloading as Rich Text, PDF or DOC.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d204" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/styling-your-online-resume-204/&amp;title=Styling+Your+Online+Resume" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/styling-your-online-resume-204/&amp;title=Styling+Your+Online+Resume" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/styling-your-online-resume-204/&amp;title=Styling+Your+Online+Resume" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/styling-your-online-resume-204/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Grunge Tables with Photoshop and XHTML (Part 3)</title>
		<link>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/</link>
		<comments>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/#comments</comments>
		<pubDate>Tue, 27 May 2008 05:50:12 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[grunge]]></category>

		<category><![CDATA[table]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/</guid>
		<description><![CDATA[Now that you&#8217;ve designed your table it&#8217;s time to learn how to make it function as valid XHTML.  The easiest way is create a hidden table on top of the image.

1. Create a table with the same number of rows and tables.  My image had 8 rows and 9 columns.
2. So we&#8217;ve got [...]]]></description>
			<content:encoded><![CDATA[<p>Now that you&#8217;ve designed your table it&#8217;s time to learn how to make it function as valid XHTML.  The easiest way is create a hidden table on top of the image.</p>
<ol>
<li>1. Create a table with the same number of rows and tables.  My image had 8 rows and 9 columns.</li>
<li>2. So we&#8217;ve got our table, now we want to style it with CSS.  Give it a <strong>div id=&#8221;"</strong>.  For the sake of this tutorial of &#8216;grunge-table&#8217;.
<li>3. In your stylesheet reference the new <strong>id</strong> and call the image.  Don&#8217;t forget to include the width and height of your image like so:</li>
<pre>
&lt;style&gt;
#grunge_table {
width:600px;
height:250px;
background:url(grunge_table.png) no-repat;
}
&lt;/style&gt;
&lt;/head&gt;
</pre>
<li>4. Now, your table isn&#8217;t exactly going to match the cells of your image just yet.  The best way to make it do this is to figure out the measurements of the columns and rows of your table image in photoshop.  If you look at the images below, you&#8217;ll see what my table looked like before and after i fixed the columns and rows to match the image.</li>
<p>Before:<br />
<img src="http://farm4.static.flickr.com/3001/2527325828_41522d5464.jpg"></p>
<p>After:<br />
<img src="http://farm4.static.flickr.com/3094/2526505261_7654936dbf.jpg?v=0"></p>
<p>The Code:</p>
<pre>
&lt;table id="grunge_table"&gt;
  &lt;tr&gt;
    &lt;td width="192" height="72"&gt; &lt;/td&gt;
    &lt;td width="44"&gt; &lt;/td&gt;
    &lt;td width="43"&gt; &lt;/td&gt;
    &lt;td width="43"&gt; &lt;/td&gt;
    &lt;td width="45"&gt; &lt;/td&gt;
    &lt;td width="46"&gt; &lt;/td&gt;
    &lt;td width="43"&gt; &lt;/td&gt;
    &lt;td width="43"&gt; &lt;/td&gt;
    &lt;td width="43"&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td height="26"&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td height="24"&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td height="26"&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td height="24"&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
    &lt;td&gt; &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</pre>
<li>5. I used Dreamweaver to give you a visual representation of what&#8217;s going on.  The green numbers at the bottom of the lower picture show the widths that the columns have been adjusted to.  In the lower pic you&#8217;ll see that the table now matches the image perfectly.</li>
<li>6. Now that the dimensions are correct, we need to hide the table setting the <strong>border</strong> to 0px. Here&#8217;s what your stylesheet code should look like:</li>
<pre>
&lt;style&gt;
#grunge_table {
width:600px;
height:250px;
border:0px;
background:url(grunge_table.png) no-repat;
}
&lt;/style&gt;
&lt;/head&gt;
</pre>
</ol>
<p>We&#8217;ve got our hidden table, in part four we&#8217;ll fill it with data.</p>
<p>PART <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/">1</a> | <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-2-187/">2</a> | <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/">3</a> | <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-4-193/">4</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d192" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+3%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+3%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+3%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Grunge Tables with Photoshop and XHTML (Part 1)</title>
		<link>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/</link>
		<comments>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/#comments</comments>
		<pubDate>Sat, 24 May 2008 00:21:11 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[tables]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/</guid>
		<description><![CDATA[If you offer web design or graphic design services at some point you&#8217;re going to need a price chart or service list so that potential clients can see what you&#8217;re all about.  In this multi-part tutorial I&#8217;ll show you how to make one in Photoshop and then mark it up for XHTML. Then I&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>If you offer web design or graphic design services at some point you&#8217;re going to need a price chart or service list so that potential clients can see what you&#8217;re all about.  In this multi-part tutorial I&#8217;ll show you how to make one in Photoshop and then mark it up for XHTML. Then I&#8217;ll let you download the files to double check your work. You should download some grunge brushes and textures before hand, I used textures from <a href="http://www.bittbox.com/freebies/free-high-res-grungy-paper-textures/" title="grunge textures">Bittbox.com</a> and <a href="http://www.photoshopbrushes.com/" title="photoshop grunge brushes">these</a> brushes from photoshopbrushes.com.</p>
<p><img src="http://farm3.static.flickr.com/2073/2517510706_2df1758401.jpg" alt="create grunge table"><br />
<span id="more-186"></span></p>
<p>Before we continue, I want you to know that there are many other ways to achieve this effect.  You could create the design in Photoshop then slice it for XHTML. You could create a table in Photoshop then just code an image-map for it. Of course, you could also do this using only tables and CSS.  Since this section of the blog is about Photoshop, you&#8217;re going to learn how to do it using everyone&#8217;s favorite graphic design program.</p>
<p>One more thing, it will help you 100% if you sketch out what you need prior to making the grid.  You can do this freehand or in a spreadsheet program like Excel.  This is to simply help you organize your thoughts and layout your items in the best way possible.</p>
<p>Without further interruptions, let&#8217;s start part one of our lesson.</p>
<p><b>Setting The Table</b></p>
<ol>
<li>1. Create a new document roughly the size of the table you want. </li>
<li>2. Select &#8220;New Fill or Adjustment Layer&#8221; and then &#8220;Solid Color&#8221;.  Pick the color of your choice.</li>
<li>3. Select <strong>View &gt;&gt; Rulers</strong> and then V<strong>iew &gt;&gt; Show &gt;&gt; Smart Guides.</strong></li>
<p>
<img src="http://farm3.static.flickr.com/2404/2517510392_d99f7e0d68_m.jpg">
</p>
<li>4. Drag the mouse from the top ruler to the areas in the document where you want the horizontal bars of your table. I suggest placing them apart in multiples of 5 or 10 so the math is easy. Space them apart so that every line alternates in color. (ex. Black Red Black Red)</li>
<p>
<img src="http://farm3.static.flickr.com/2269/2516689077_c851e93b30.jpg" alt="black red">
</p>
<li>5. Create your bars using the rectangle tool.   Use black as the color.</li>
<li>6. Group your horizontal bars in a folder and name them.  Mine was called &#8220;<strong>Horizontal</strong>&#8220;.</li>
<li>7. Set the &#8220;<strong>Blend Layer</strong>&#8221; of this folder to &#8220;<strong>Soft Light</strong>&#8221; and the <strong>Opacity</strong> to &#8220;45%&#8221;</li>
<p>
<img src="http://farm4.static.flickr.com/3249/2516689049_0ea700373e_m.jpg">
</p>
<li>8. You now have a darker shade of the color you chose for your horizontal bars that alternates with the original color.</li>
<li>9. Now let&#8217;s repeat steps 3 through 5 for our vertical bars. Space them a part equidistant and uniformly.</li>
<p>
<img src="http://farm3.static.flickr.com/2002/2516689093_be12d892c8.jpg">
</p>
<li>10. Select one of the vertical bars and change their &#8220;Fill&#8221; to 0%. In &#8220;<strong>Layer Style</strong>&#8221; select &#8220;<strong>Stroke</strong>&#8221; and set it to 1px (Outside).  Do this for all of the vertical bars.  Set the Blend Mode to &#8220;Overlay&#8221;.</li>
<li>11. Create a new layer and select the line tool.  While holding Shift and Option drag from the top corner of a vertical bar outward diagonally. this creates the vertical lines you see at the top of my design.  Once you do this, duplicate each line then group them all and set the group <strong>Blend Layer</strong> to &#8220;Overlay&#8221; and an <strong>Opacity</strong> of &#8220;46%&#8221;.</li>
<p>
<img src="http://farm4.static.flickr.com/3164/2516689129_7e8c21fd60.jpg">
</p>
<li>12. Looks like we&#8217;ve got the beginnings of a fancy looking table already!</li>
<p>
<img src="http://farm4.static.flickr.com/3081/2517535594_02e656b669.jpg"></p>
</ol>
<p>In Part Two we&#8217;re going to grungify our table.</p>
<p>PART <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/">1</a> | <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-2-187/">2</a> | <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-3-192/">3</a> | <a href="http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-4-193/">4</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d186" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+1%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+1%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+1%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-1-186/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Eight Ways to Turn Photoshop Designs Into Web Pages</title>
		<link>http://www.developertutorials.com/blog/design/photoshop-design/eight-ways-to-turn-photoshop-designs-into-web-pages-167/</link>
		<comments>http://www.developertutorials.com/blog/design/photoshop-design/eight-ways-to-turn-photoshop-designs-into-web-pages-167/#comments</comments>
		<pubDate>Wed, 07 May 2008 21:15:38 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[psd]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/photoshop-design/eight-ways-to-turn-photoshop-designs-into-web-pages-167/</guid>
		<description><![CDATA[In &#8220;Designing and Coding a Wordpress Theme From Scratch&#8221; I gave an overview, start-to-finish, on how to turn a Photoshop design into a fully functioning Wordpress theme.  There are many methods for getting from Photoshop to XHTML, however.   Here are some of the ones I used in that tutorial and a few [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-10-160/" target="_blank">&#8220;Designing and Coding a Wordpress Theme From Scratch&#8221;</a> I gave an overview, start-to-finish, on how to turn a Photoshop design into a fully functioning Wordpress theme.  There are many methods for getting from Photoshop to XHTML, however.   Here are some of the ones I used in that tutorial and a few new ones that you may not be aware of.</p>
<p><span id="more-167"></span></p>
<p><img src="http://farm4.static.flickr.com/3100/2449595324_214a605a44.jpg"></p>
<p><strong>Slice to XHTML/CSS</strong><br />
In that same tutorial we took advantage of the most common way to turn PSDs into XHTML.  The method, built in to the CS series of Photoshop, is called slicing and it takes all the work out of coding for you!  The major complaint is that the code exported doesn&#8217;t exactly fit conventional standards (no separate stylesheets and html documents, for instance).</p>
<p><strong>Adobe InDesign</strong><br />
Two items in this list are in the Adobe Family for good reason, Adobe wants you to use them all together so they&#8217;ve make it easy to go from one application to another and back.  In this case you would design a page in Photosohp then enhance it after exporting to Indesign.  Then you would export it as XHTML from InDesign.  Of course since InDesign doesn&#8217;t like importing vectors, it will try to rasterize your text and images, so you should recreate text within the InDesign environment before exporting. Here, blogger, <a href="http://www.nickhodge.com/blog/archives/2161" rel="bookmark" target="_blank">Nick Hodge</a> talks a bit about Photoshop and InDesign workflow.</p>
<p><strong>Adobe Fireworks</strong><br />
Originally a Macromedia product, Fireworks has now been fully integrated into the adobe family and offers some unique alternatives for web development like animations and web graphics.  Although vectors have been integrated into Photoshop somewhat, Fireworks still handles them better although translating from Photoshop to Fireworks can cause <a href="http://designorati.com/articles/t1/photoshop/1143/review-fireworks-cs3-is-looking-for-its-niche.php">certain issues</a></p>
<p><img src="http://www.medialab.com/sitegrinder/submitsitemedia/sglogo.gif"></p>
<p><strong>Media Lab SiteGrinder</strong><br />
<a href="http://www.medialab.com/" target="_blank">SiteGrinder2</a> and <a href="http://www.medialab.com/" target="_blank">SiteGrinder2 Pro</a> are extensions for ProTools that allow for the exporting of WC3 Compliant XHTML/CSS.  Unlike the &#8220;Save for Web&#8221; option built into the CS Suites, SiteGrinder does an excellent job of outputting code that doesn&#8217;t need to be &#8216;cleaned up&#8217; after the fact.  It conveniently names the Stylesheet block ID&#8217;s after your layers for easy deciphering of the architecture.  Another neat function is that as it builds, SiteGrinder eliminates redundant graphics and merges layers when possible to minimize download size.  Many designers swear by it. Here&#8217;s a blurb from the creators, MediaLab:</p>
<blockquote cite="http://www.medialab.com/sitegrinder/bigidea.html"><p>SiteGrinder 2 successfully turns Adobe Photoshop into an easy-to-use and powerful website design and production tool.</p>
<p>While SiteGrinder is not aimed solely at the web neophyte, a SiteGrinder-equipped designer with no previous web experience can use only their Photoshop skills to go from concept to deployment of a professional, standards-compliant site in mere hours with no slicing or programming.</p>
<p>The difficulty of this task is invisible to the user as SiteGrinder builds graphics, text, and interactivity using modern web standard technologies and takes into account tricky requirements like cross-platform browser compatibility.</p></blockquote>
<p>Site Grinder 2 Pro is $349, the Basic version is $129</p>
<p><img src="http://www.medialab.com/quikstoregraphics/psd2fla_logo.gif"></p>
<p><strong>Media Lab PSD2FLA</strong><br />
Media Lab&#8217;s other claim to fame is <a href="http://medialab.com" target="_blank">PSD2FLA</a>, a program that (like it says in the title) converts Photoshop Documents (PSD) into Flash Documents (FLA).   If your weapon of choice is Flash websites that are well designed, this will help you get your design ideas out quickly so that you can spend the majority of your time programming Actionscript.</p>
<p><strong>Image Mapping</strong><br />
One somewhat forgotten method for turning PSD documents into web pages is with <strong>image maps</strong>. Actually, it wasn&#8217;t so much forgotten as it was banned from the internet like tables were in 1998.  An image map is essentially a layer of transparent html on top of an embedded image that uses anchor tags to turn areas of images into hyper text links.  While this means any image can theoretically be turned into a website, the method is considered somewhat <a href="http://webdesign.about.com/b/2007/12/06/poll-do-you-use-image-maps.htm" target="_blank">amateurish</a> as it doesn&#8217;t allow for things like machine readable text, stylesheets or many of the other things extensible HTML allows. </p>
<p>If you&#8217;d like to read more about this dinosaur of a technique try <a href="http://www.javascriptkit.com/howto/imagemap.shtml" rel="bookmark" target="_blank">this page</a>.</p>
<p>The fact of the matter is that better technologies have simply replaced image maps.  With Javascript and Ajax we can now embed dynamic images that are tied to databases to produce far more impressive things than Image Maps ever could (think GoogleMaps).  To put it another way, using Image Maps in 2008 is like trying to churn your own butter (from the cow and mining your own salt) when there&#8217;s a Trader Joe&#8217;s right across the street from your house. </p>
<p><strong>Outsource It</strong><br />
What could be your easiest option is to simply outsource the coding to firms that specialize in PSD to XHTML slicing and coding.  Most of them simply do what I described in #1 so it&#8217;ll save you money if you learn to do it yourself.</p>
<p>Bellow you&#8217;ll find a list of ten places that offer this service.  (In full disclosure, GosDot, is my own service.)</p>
<ol>
<li><a target="_blank" href="http://aloestudios.com/">Aloe Studios</a></li>
<li><a target="_blank" href="http://www.chopandcode.com/">Chop and Code</li>
<li><a href="http://happyxhtml.com/">Happy XHTML</a></li>
<li><a href="http://gosdot.com/" target="blank" rel="bookmark" title="psd to xhtml service">GosDot</a></li>
<li><a href="http://www.designcreek.com/pages/services/psd-to-xhtml.php" target="blank" rel="bookmark" title="psd to xhtml service">Design Creek</a></li>
<li><a href="http://www.finelysliced.com/" target="blank" rel="bookmark" title="psd to xhtml service">FinelySliced</a></li>
<li><a href="http://www.merix.com.pl/company/overview/" target="blank" rel="bookmark" title="psd to xhtml service">Merix</a></li>
<li><a href="http://www.psd2html.com/" target="blank" rel="bookmark" title="psd to xhtml service">PSD2HTML</a></li>
<li><a href="http://xhtmlslicer.com/" target="blank" rel="bookmark" title="psd to xhtml service">XHTML Slicer</a></li>
<li><a href="http://www.xhtmlthis.com/" target="blank" rel="bookmark" title="psd to xhtml service">XHTML This</a></li>
<li><a href="http://www.xhtmlteam.com/" target="blank" rel="bookmark" title="psd to xhtml service">XHTML Team</a></li>
</ol>
<p><img src="http://farm3.static.flickr.com/2111/2449334337_3183c10b1a.jpg"></p>
<p><strong>Hand Coding</strong><br />
For developers, hand coding (also known as <i>hard coding</i>) is by far the most preferred method.  While some will still use photoshop to create and slice images, they&#8217;ll do all the styling and coding themselves.  People do this for a variety of reasons but the main reason is for control.  If you write your own code, you&#8217;ll find bugs quicker and know more about the inner workings of your own site.  It an take longer, but I guarantee you that quick and prolific hand coder will out pace anyone in workflow, simply because they don&#8217;t have to reference as much to be standards compliant.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d167" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/photoshop-design/eight-ways-to-turn-photoshop-designs-into-web-pages-167/&amp;title=Eight+Ways+to+Turn+Photoshop+Designs+Into+Web+Pages" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/photoshop-design/eight-ways-to-turn-photoshop-designs-into-web-pages-167/&amp;title=Eight+Ways+to+Turn+Photoshop+Designs+Into+Web+Pages" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/photoshop-design/eight-ways-to-turn-photoshop-designs-into-web-pages-167/&amp;title=Eight+Ways+to+Turn+Photoshop+Designs+Into+Web+Pages" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/photoshop-design/eight-ways-to-turn-photoshop-designs-into-web-pages-167/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Designing and Coding a Wordpress Theme From Scratch (Part 10)</title>
		<link>http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-10-160/</link>
		<comments>http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-10-160/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 21:16:50 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-10-160/</guid>
		<description><![CDATA[Going From Photoshop to XHTML to Wordpress Theme.  In this multi-part series I'll detail how to create and design a Wordpress theme in Photoshop and take it from just an idea to fully coded.
]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/">Part 3</a> - &#8220;Photoshop to XHTML in 24 Hours&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/">Part 4</a> - &#8220;Cleaning Up Your XHTML&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/">Part 5</a> - &#8220;Preloading Images with Javascript and CSS&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-6-151/">Part 6</a> - &#8220;Marking Up is Hard to Do&#8221; and &#8220;The Anatomy of a Wordpress Theme&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-7-153/">Part 7</a> - &#8220;Beginning with PHP for Wordpress&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-8-154/">Part 8</a> - &#8220;Putting the Press in Wordpress with PHP&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/php/designing-and-…scratch-part-9designing-and-coding-a-wordpress-theme-from-scratch-part-9-159/">Part 9</a> - &#8220;Marking Up Header.php, Footer.php and Sidebar.php&#8221;</p>
<p>So far we&#8217;ve made a ton of progress with our theme design.  We <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/" target="_blank" title="designing wordpress themes in photoshop">designed it</a> in Photoshop, we <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/" target="_blank" title="XHTML CSS to Wordpress theme">converted to XHTML</a> and then we began the somewhat tedious task of <a href="http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-7-153/" target="_blank" title="XHTML to PHP">adding PHP</a>.  Now that we&#8217;ve created index.php, header.php, footer.php and sidebar.php, we can move on to creating the rest of the theme.</p>
<p><span id="more-160"></span></p>
<p>In &#8220;The Anatomy of a Wordpress Theme&#8221; we noted that Wordpress needs <a href="http://www.wpdesigner.com/2007/03/27/wordpress-theme-checklist/" target="_blank">certain files</a> for your theme to function properly.  Here&#8217;s that list again:</p>
<ol>
<li>404 Template = 404.php</li>
<li><strike>Archive Template</strike> = <a href="http://codex.wordpress.org/Creating_an_Archive_Index" target="_blank">archive.php</a></li>
<li><strike>Archive Index Page</strike> = <a href="http://codex.wordpress.org/Creating_an_Archive_Index" title="_blank">archives.php</a></li>
<li>Comments Template = <a href="http://www.christianmontoya.com/2006/10/15/full-featured-commentsphp-template-for-wordpress/" target="_blank">comments.php</a></li>
<li><strong>Footer Template = footer.php</strong></li>
<li><strong>Header Template = header.php</strong></li>
<li>Links = links.php</li>
<li><strong>Main Template = index.php</strong></li>
<li>Page Template = page.php</li>
<li><strike>Popup Comments Template</strike> = <a href="http://codex.wordpress.org/Theme_Development" target="_blank">comments-popup.php</a></li>
<li>Post Template = single.php</li>
<li><strike>Search Form</strike> = <a href="http://codex.wordpress.org/search.php" target="_blank">searchform.php</a></li>
<li><strike>Search Template</strike> = <a href="" target="_blank">search.php</a></li>
<li><strong>Sidebar Template = sidebar.php</strong></li>
<li><strong>Stylesheet = style.css</strong></li>
</ol>
<p>As you may have noticed, the items listed in <strong>bold</strong> are the only items we&#8217;ve created in our lessons thus far and there is still a lot of work to be done!  Anything <strike>struck through</strike> is optional therefore this lesson won&#8217;t cover it but I have linked to pages where you can read about them on your own. While I can&#8217;t go into complete detail I will highlight some major points about each and then I&#8217;ll give you links to four sites that break the process down in detail and more thoroughly:</p>
<h2>single.php</h2>
<p>Single.php is the file referenced when someone clicks on the permalink for one of your posts.  Thus it is the template for displaying a single post on your blog.  On most blogs single.php an index.php are very similar except that in addition to querying <strong>&lt;? the content(); ?&gt;</strong> we also have to query the comments page. We do this just before we close the loop with:</p>
<pre>
	&lt;?php comments_template(); ?&gt;
</pre>
<p><b>page.php</b></p>
<p>Page.php is the template for any page in your theme that doesn&#8217;t have it&#8217;s own .php template or that is not a blog entry.  This is also the template for the static &#8220;Pages&#8221; that you create within the Wordpress Admin panel.  It is usually also just like index.php except that it doesn&#8217;t include <strong>the loop</strong> or <strong>the_content()</strong>.</p>
<p><b>links.php</b></p>
<p>Ignores Page content and instead displays your links using <strong>get_links_list</strong>.</p>
<h2>404.php</h2>
<p>Where you users land when they follow a bad link on your blog or click through to something that&#8217;s been removed.  <a href="http://codex.wordpress.org/Creating_an_Error_404_Page" target="blank">Codex</a> offers some advice&#8230;. </p>
<blockquote cite="http://codex.wordpress.org/Creating_an_Error_404_Page"><p>
While you work hard to make sure that every link actually goes to a specific web page on your site, there is always a chance that a link clicked will slam dunk and become a famous 404 ERROR PAGE NOT FOUND. Some errors are avoidable, you should regularly check and double check all your links. Also, if you are deleting a popular but out-of-date post, consider deleting the body of the post, and replacing it with a link referring visitors to the new page.
</p>
</blockquote>
<p>This concludes <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/">&#8220;Designing and Coding a Wordpress theme from Scratch&#8221;</a> .  This guide was written as a starting point and a reference guide I can always be contacted at <strong>jongos [at] gmail</strong> if you are having trouble or need advice.  Alternatively I&#8217;ve compiled a list of resources that I often reference when creating themes below.</p>
<p>In this tutorial I mentioned a theme that I was developing quite a bit.  You can download it along with the PSD used to create it <a href="http://www.developertutorials.com/blog/wp-content/uploads/2008/04/aqua-marina.zip" target="_blank">here</a>.  Keep in mind that the version you&#8217;re downloading is an early beta release.  It&#8217;s bulky, clunky, not very pretty under the covers and has a mind of it&#8217;s own so I&#8217;m dubbing it the Rosie O Donnell release.  Feel free to give me feedback on it, use it to double check your own code, or modify it to suit your needs.</p>
<p><strong>DOWNLOAD THE <a href="http://www.developertutorials.com/blog/wp-content/uploads/2008/04/aqua-marina.zip" target="_blank">AQUA MARINA</a> WORDPRESS THEME</strong></p>
<p><a href="http://goscreative.blogspot.com/2008/05/free-wordpress-theme-aqua-marina.html" target="_blank"><img src="http://farm3.static.flickr.com/2001/2449394258_676eb5ea2b_m.jpg"></a></p>
<hr />
<b>Recommended Further Reading</b></p>
<p><a target="_blank" title="understanding wordpress templates" rel="bookmark" href="http://codex.wordpress.org/">Stepping_Into_Templates</a><br />
<a target="_blank" title="html to xhtml" rel="bookmark" href="http://codex.wordpress.org/HTML_to_XHTML">HTML to XHTML</a><br />
<a target="_blank" title="create wordpress themes" rel="bookmark" href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/">So You Want To Create Wordpress Themes</a><br />
<a target="_blank" title="xhtml css to wordpress" rel="bookmark" href="http://theundersigned.net/2006/05/from-xhtmlcss-to-wordpress/">From XHTML/CSS to Wordpress</a><br />
<a href="http://www.tamba2.org.uk/wordpress/" target="_blank" title="tamba2 wordpress tutorials">Tamba2&#8217;s Guide</a><br />
<a href="http://www.wpdesigner.com/2007/08/10/how-to-slice-a-wordpress-theme/" target="_blank" title="Slicing a Wordpress Theme">Slizing a Wordpress Theme</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d160" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-10-160/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+10%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-10-160/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+10%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-10-160/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+10%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-10-160/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Designing and Coding a Wordpress Theme From Scratch (Part 6)</title>
		<link>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-6-151/</link>
		<comments>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-6-151/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 12:37:31 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-6-151/</guid>
		<description><![CDATA[Going From Photoshop to XHTML to Wordpress Theme.  In this multi-part series I'll detail how to create and design a Wordpress theme in Photoshop and take it from just an idea to fully coded.
]]></description>
			<content:encoded><![CDATA[<p>This is the sixth post in series about creating Wordpress themes with your Photoshop designs.  You may want to review before we continue&#8230;.</p>
<p><a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-1-143/">Part 1</a> - &#8220;Tools For The Task&#8221; and &#8220;Preparation&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/">Part 2</a> - &#8220;Layout And Structure&#8221; and &#8220;Designing Wordpress Themes in Photoshop&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/">Part 3</a> - &#8220;Photoshop to XHTML in 24 Hours&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/">Part 4</a> - &#8220;Cleaning Up Your XHTML&#8221;<br />
<a target="_blank" href="http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/">Part 5</a> - &#8220;Preloading Images with Javascript and CSS&#8221;</p>
<hr style="margin-bottom:20px; height:1px; color:#cccccc;"/>
<b>Marking Up Is Hard To Do</b></p>
<p>Wikipedia defines the term markup as <i>a set of annotations to text that describe how it is to be structured, laid out, or formatted.</i>  When we say we&#8217;re going to &#8216;mark something up&#8217; it means we&#8217;re formatting the document so that it can be read correctly by machines.  Hypertext Markup Language (HTML) is the most common form.  That can be marked up to Extensible Hyper-text Markup Language (XHTML) and beyond that to PHP to become dynamic.</p>
<p>Now that we&#8217;ve got our basic html layout design we can begin the hard work the transition from HTML to PHP.</p>
<p><span id="more-151"></span></p>
<p><b>Anatomy of a WordPress Theme</b></p>
<p>Before we get ahead of ourselves let&#8217;s analyze exactly what Wordpress is expecting from a theme.  The Wordpress engine works primarily using separate PHP files for the different components of the core engine. The various parts of your theme will simply call for various parts of the core engine to display content.  This makes it easy for you to style sections individually.  It also can allow for some incredibly complex themes that are built on the Wordpress engine.  Themes like the <a target="_blank" href="http://5thirtyone.com/archives/886">The Unstandard</a> by Derek Punsalan and <a target="_blank" href="http://www.deanjrobinson.com/redoable/redoable-10-theme-for-wordpress/">Redoable</a> are great examples of how to rethink the Wordpress theme impressively.</p>
<blockquote cite="http://codex.wordpress.org/Using_Themes"><p>Fundamentally, the WordPress Theme system is a way to &#8220;skin&#8221; your weblog. Yet, it is more than just a &#8220;skin.&#8221; Skinning your site implies that only the design is changed. WordPress Themes can provide much more control over the look and presentation of the material on your website.</p>
<p>A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a weblog. These files are called template files. A theme modifies the way the site is displayed, without modifying the underlying software. Themes may include customized template files, image files (*.jpg, *.gif), style sheets (*.css), custom Pages, as well as any necessary code files (*.php).</p>
</blockquote>
<p>Here are the things Wordpress looks for a theme file:</p>
<ol>
<li>404 Template = 404.php</li>
<li>Archive Template = archive.php</li>
<li>Archive Index Page = archives.php</li>
<li>Comments Template = comments.php</li>
<li>Footer Template = footer.php</li>
<li>Header Template = header.php</li>
<li>Links = links.php</li>
<li>Main Template = index.php</li>
<li>Page Template = page.php</li>
<li>Popup Comments Template = comments-popup.php</li>
<li>Post Template = single.php</li>
<li>Search Form = searchform.php</li>
<li>Search Template = search.php</li>
<li>Sidebar Template = sidebar.php</li>
<li>Stylesheet = style.css</li>
</ol>
<p>For the most part, if you&#8217;re missing any of these parts your theme either won&#8217;t work or won&#8217;t fully function the way Wordpress wants it to.  So far the only thing we&#8217;ve completed is <strong>stylesheet.css</strong> so where do the rest come from?  In <a href="http://www.developertutorials.com/blog/php/designing-and-coding-a-wordpress-theme-from-scratch-part-7-153/">Part 7</a> we&#8217;ll create <strong>index.php</strong> and start marking up our XHTML to PHP.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d151" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-6-151/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+6%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-6-151/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+6%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-6-151/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+6%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-6-151/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Designing and Coding a Wordpress Theme From Scratch (Part 5)</title>
		<link>http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/</link>
		<comments>http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 04:48:59 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[cache]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[markup]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[psd]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/</guid>
		<description><![CDATA[Going From Photoshop to XHTML to Wordpress Theme.  In this multi-part series I'll detail how to create and design a Wordpress theme in Photoshop and take it from just an idea to fully coded.
]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/">Image heavy websites</a> have one problem: load time.  So if you&#8217;re designing a Wordpress theme that relies heavily on images like one made in Photoshop, you want to do everything you can to increase speed.  a) You want the images to display as shortly after the text does as possible and b) you want to do everything to help users on slower connections.</p>
<p>One way to do this is with <a href="http://www.designcodeexecute.com/2008/04/09/javascript-preload-images-script/" target="_blank">javascript</a>, the other way is with <a href="http://www.netmechanic.com/news/vol6/css_no18.htm" target="_blank">CSS</a>.</p>
<p><span id="more-149"></span></p>
<p><b>Preloading Images with Javascript</b></p>
<p>Javascript is unfortunately abused all over the web.  It&#8217;s used for scripts that create pop-up ads, pop-under ads, and to change browser homepages.  So the only draw back to this approach is that some users have deliberately turned off javascript in their browsers to thwart abusers.  No big deal.  If the user has javascript turned off, the technique I&#8217;m about to share will be ignored and the page will load normally.</p>
<ol>
<li>So how is it done? In the folder that contains your index.html file and stylesheets, create a folder called &#8216;Scripts&#8217;. </li>
<li>Let&#8217;s create a blank document in the text editor and call it <strong>preload.js</strong></li>
<li>We&#8217;re going to create an array of calls for images that will start to load as soon as the head of the page loads.  List all the images you want to have &#8216;headstart&#8217; on loading here.  This can include images that are linked to on the page but that don&#8217;t appear on the page.  When dealing with a Photoshop design that is being marked up to XHTML you should place all the slices here.</li>
<li>Next you want to place the following code in the header section of your HTML document just after the &lt;title&gt; and &lt;meta&gt; tags.
<pre>
&lt;script type="text/javascript" src="scripts/preload.js"&gt; &lt;/script&gt;
</pre>
<p>This tells the HTML document to look for the script before the stylesheet and subsequently, to request the array of images the stylesheet needs to load.  Alternatively you could place the javascript inline but I prefer using external documents.
</li>
<li>The contents of the Javascript file should look like this:
<pre>
if (document.images)
{
preload_image = new Image();
img_path = new Array();	

   img1 = new Image();
   img2 = new Image();
   img3 = new Image();
   img4 = new Image();
   img5 = new Image();
   img6 = new Image();
   img7 = new Image();
   img8 = new Image();
   img9 = new Image();
   img10 = new Image();
   img11 = new Image();
   img12 = new Image();
   img1 = new Image();
   img1.src = "../images/yourimage_01.png";
   img2.src = "../images/yourimage_02.png";
   img3.src = "../images/yourimage_03.png";
   img4.src = "../images/yourimage_04.png";
   img5.src = "../images/yourimage_05.png";
   img6.src = "../images/yourimage_06.png";
   img7.src = "../images/yourimage_07.png";
   img8.src = "../images/yourimage_08.png";
   img9.src = "../images/yourimage_09.png";
   img10.src = "../images/yourimage_10.png";
   img11.src = "../images/yourimage_11.png";
   img12.src = "../images/yourimage_12.png";
   img13.src = "../image/yourimage_13.png";

for(var i = 0; i&lt;=img_path.length; i++)
preload_image.src = img_path[i];
}
</pre>
</li>
<li>That&#8217;s it.  You can use this to preload images for the next page, icons, or any number of things but the idea is to use it to call the array before they&#8217;re called elsewhere on the page.</li>
</ol>
<p><b>Preloading Images with CSS</b></p>
<p>Another method is to preload images in the stylesheet.  This method is fairly useless on the actual homepage but it can be used to preload all sorts of images on subsequent pages.  Lets look at the code:</p>
<pre>
     .hiddenPic {display:none;}
</pre>
<p>This class should be placed somewhere in your stylesheet.  You can place it inline in your html document and it would look like this:</p>
<pre>
     &lt;style type="text/css"&gt;
     .hiddenPic {display:none;}
     &lt;/style&gt;
</pre>
<p>Next, at the <strong>bottom</strong> of your html page just before the &lt;/body&gt; closing tag, we need to call all the images from the next page we want preloaded and apply the <strong>.hiddenPic</strong> class:</p>
<pre>
     &lt;img src="yourimage.jpg" alt="" title="" height="" width="" class="hiddenPic"&gt;

     &lt;img src="yourimage01.jpg" alt="" title="" height="" width="" class="hiddenPic"&gt;

     &lt;img src="yourimage02.jpg" alt="" title="" height="" width="" class="hiddenPic"&gt;

&lt;/body&gt;
</pre>
<p>How does it work?  Essentially you&#8217;re calling the images when the browser reads the page and hiding them before they are ever displayed with the <strong>display:none;</strong> line.  The idea is that the browser downloads the images and caches them anyways so that when the user clicks through to the next page the users browser will note that the images being requested have already been cached and won&#8217;t waste time downloading them again.</p>
<p>Now that load time has been reduced, in Part 6 we&#8217;ll get back to marking up our XHTML to PHP and developing our Wordpress theme.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d149" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+5%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+5%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+5%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Designing and Coding a Wordpress Theme From Scratch (Part 4)</title>
		<link>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/</link>
		<comments>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 21:23:17 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[tut]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/</guid>
		<description><![CDATA[Going From Photoshop to XHTML to Wordpress Theme.  In this multi-part series I'll detail how to create and design a Wordpress theme in Photoshop and take it from just an idea to fully coded.
]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve gone from Photoshop PSD to slices to XHTML using Parts <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-1-143/">1</a>, <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/">2</a>, and <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/">3</a> but if the end result is a Wordpress theme the majority of the work still has to be done.  First of all it&#8217;s important to understand one bit of the operational mechanics of Wordpress.  Wordpress looks for certain information the header of a file called style.css, this is how it can tell themes apart. Here&#8217;s a better explanation from <a href="http://codex.wordpress.org/Theme_Development">Codex</a>:</p>
<blockquote cite="http://codex.wordpress.org/Theme_Development"><p>In addition to CSS style information for your theme, the stylesheet, style.css must provide details about the Theme in the form of comments. No two Themes are allowed to have the same details listed in their comment headers, as this will lead to problems in the Theme selection dialog. If you make your own Theme by copying an existing one, make sure you change this information first.</p>
</blockquote>
<p>Thus, we need to separate our inline CSS and put it in a separate file called style.css</p>
<p><span id="more-147"></span></p>
<p><b>Cleaning up Your XHTML</b></p>
<p>Let&#8217;s start by creating a blank document called style.css in the same directory as your HTML file. Open the CSS file and add the following information:</p>
<pre>/*
Theme Name: your-themes-name
Theme URI: the-theme's-homepage
Description: a-brief-description
Author: your-name
Author URI: your-URI
Template: use-this-to-define-a-parent-theme--optional
Version: a-number-optional

General comments/License Statement if any.
*/</pre>
<p>like so</p>
<p><img src="http://farm3.static.flickr.com/2375/2450107644_8959118e9c.jpg"></p>
<p>Now let&#8217;s open the HTML file the Photoshop created for us which should look something like <a href="http://flickr.com/photos/ww4f/2450125002/" title="click to see the document" rel="_blank">this</a>.<br />
The inline document is essentially divided for us already because everything between the &lt;style&gt; and &lt;/style&gt; tags is going to be cut out of our html document and pasted into the CSS document just after the heading we just added.  Let&#8217;s do that now, copy the style data out of the HTML document and into the CSS document and make sure that you close the tags once you&#8217;ve done so.</p>
<p>The resulting HTML file should now look like this:</p>
<p><img src="http://farm4.static.flickr.com/3193/2449334405_fdf4aff807.jpg"></p>
<p>and the CSS file like this:</p>
<p><img src="http://farm3.static.flickr.com/2111/2449334337_3183c10b1a.jpg"></p>
<p>Got it?  Now lets do some major cleaning.  Now that we&#8217;ve removed the style from our HTML we need to add it back.  We&#8217;re going to replace the empty &lt;style&gt; tags with the following line:</p>
<pre>&lt;link rel="stylesheet" href="style.css" type="text/css" media="screen" /&gt;</pre>
<p>This line is telling our document some very useful information:</p>
<ol>
<li>rel - the relationship of the linked document to the current document</li>
<li>href - the url to the linked document</li>
<li>type - the MIME (Multipurpose Internet Mail Extension) type of the target URL</li>
<li>media - denotes on which device the document is meant to be displayed</li>
</ol>
<p>or the translation for humans: &#8220;Hello, the text file that lives at this URL is a stylesheet that was made for use with documents that would be displayed on computer monitors and screens.&#8221;</p>
<p>We have to do this because we&#8217;ve taken out the style information but since we still want to style our HTML document we have to tell it where the style information now lives.  Next we want to empty all our &lt;div&gt; tags. </p>
<p>Since all our our photoshop images are essentially background images any line from our HTML document that looks like this:</p>
<pre>
   &lt;div id="aqua-01_"&gt;
	&lt;img id="yourfilename_01" src="yourfilename_01.png" width="549"
                  height="126" alt="" /&gt;
   &lt;/div&gt;
</pre>
<p>Should be changed to look like this:</p>
<pre>
	&lt;div id="aqua-01_"&gt;
	&lt;/div&gt;
</pre>
<p>But only when you change the corresponding ID container the CSS document to look like this:</p>
<pre>
	#aqua-01_ {
	position:absolute;
	left:0px;
	top:0px;
	width:549px;
	height:126px;
	background:url(images/aqua_01.png);
	}
</pre>
<p>What we&#8217;ve done is taken the image out of the &lt;div&gt; container in our HTML document and placed in the corresponding ID container in CSS.  This is important because now we can put other things like text or other images into the HTML files &lt;div&gt; container.  This will also allow our page to structure itself properly even if a few images are slow to load.</p>
<p>Finally we want to take anything that is an image and place it in a folder called &#8220;img&#8221; or &#8220;images&#8221;.  If you look at the code above I&#8217;m telling the CSS to look for image files in a folder called &#8220;images&#8221;.  We want to do this for organizational purposes.  Of course this is entirely optional but it&#8217;s good practice and somewhat of an organizational standard.</p>
<p>Are you still confused?<br />
<a href='http://www.developertutorials.com/blog/wp-content/uploads/2008/04/html_css.zip'>Download these files</a> and examine them to see if you can figure out what I did to make the page render properly.</p>
<p>In the next lesson we&#8217;re going learn how to optimize our page for speed using javascript.  Sweating yet? Don&#8217;t worry we&#8217;re already a lot closer than when we started!</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d147" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+4%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+4%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+4%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
