<?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; xhtml</title>
	<atom:link href="http://www.developertutorials.com/blog/tag/xhtml/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>Grunge Tables with Photoshop and XHTML (Part 4)</title>
		<link>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-4-193/</link>
		<comments>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-4-193/#comments</comments>
		<pubDate>Tue, 27 May 2008 07:13:23 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

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

		<category><![CDATA[effect]]></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-4-193/</guid>
		<description><![CDATA[We&#8217;ve created our table, our table image an we&#8217;ve begun to style it. The next step is to enter our content.  Let&#8217;s remember the whole reason for doing things this way, we ant to make sure most of the table can be indexed by search engines like Google.  At the end of this [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve created our table, our table image an we&#8217;ve begun to style it. The next step is to enter our content.  Let&#8217;s remember the whole reason for doing things this way, we ant to make sure most of the table can be indexed by search engines like Google.  At the end of this lesson I&#8217;ll let you download the code, related images and PSDs to help your understanding.</p>
<ol>
<li>1. In part three we began styling our table but we didn&#8217;t get around to styling the contents.  Let&#8217;s do that now.</li>
<pre>
&lt;style&gt;
#grunge_table {
width:600px;
height:250px;
border:0px;
background:url(grunge_table.png) no-repeat;
color:#a24235;
font-family:Arial, Helvetica, sans-serif;
font-size:0.9em;
}
&lt;/style&gt;
</pre>
<li>2. Next we need to create and style bullets that will be used to cross-reference services to options or items in our table. We&#8217;ll do this by styling the table rows to our liking (<strong>td</strong>).  Take a look at the following snippet from the stylesheet:</li>
<pre>
td {
padding:0 0 0 20px;
}
</pre>
<li>3. Now we can insert characters into our cells. I chose to use &#8220;x&#8221; as my bullet.</li>
<li>4. Wow, not that many steps and we&#8217;re already done!  Here is another visual to help demonstrate what&#8217;s going on.</li>
<p><img src="http://farm4.static.flickr.com/3140/2527485656_b325a74f2e.jpg"></p>
<p>Now all that was a lot of work for something that could have been completely done in PHotoshop.  What&#8217;s the big deal?  Why do we even want a XHTML table?</p>
<p><b>Why XHTML?</b></p>
<p>Here&#8217;s my reasoning.  Anything in our first column is machine readable text which means that search engines can index it.  Having those extra keywords will improve your ranking as well.  Second, we can get creative with our &#8220;bullets&#8221; if we wanted to have fly-out effects with javascript or roll-over effects with ajax hidden within the table we can easily do that by adding a few lines of code.  Using an image prevents most of this.  Lastly, because our bullets are actual XHTML objects, if we want we can mark them up with contextual keywords and hyperlinks. </p>
<p><img src="http://farm3.static.flickr.com/2402/2527496792_2ed30e6248.jpg"></p>
<p>This concludes the lesson.  <a href="http://www.mediafire.com/?djcydxadd3d" title="grunge tables">Click here to download</a> the files used and see if you can reconstruct what I did.  Of course if you&#8217;d like to see and example in the wild visit <a href="http://gosdot.com/unity/services/" title="grunge tables xhtml">this site</a>.</p>
<ol>
<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="d193" 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-4-193/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%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/grunge-tables-with-photoshop-and-xhtml-part-4-193/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%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/grunge-tables-with-photoshop-and-xhtml-part-4-193/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%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/grunge-tables-with-photoshop-and-xhtml-part-4-193/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 2)</title>
		<link>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-2-187/</link>
		<comments>http://www.developertutorials.com/blog/design/grunge-tables-with-photoshop-and-xhtml-part-2-187/#comments</comments>
		<pubDate>Sat, 24 May 2008 15:40:51 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

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

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

		<category><![CDATA[grunge]]></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-2-187/</guid>
		<description><![CDATA[Grunge Tables with Photoshop and XHTML (Part 2)
We&#8217;re learning to make grunge tables.  In Part 1 we made a simple table, in this lesson we&#8217;ll add some grunge and text to make it look unique, and in the final lesson we&#8217;ll mark it up with XHTML.
Make It Grungy

1. Import two of the textures you&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Grunge Tables with Photoshop and XHTML (Part 2)</p>
<p>We&#8217;re learning to make grunge tables.  In Part 1 we made a simple table, in this lesson we&#8217;ll add some grunge and text to make it look unique, and in the final lesson we&#8217;ll mark it up with XHTML.</p>
<p><b>Make It Grungy</b></p>
<ol>
<li>1. Import two of the textures you&#8217;ve downloaded from <a href="http://www.bittbox.com/freebies/free-high-res-grungy-paper-textures/">Bittbox.com</a>.  I chose a grainy one and one that looked a bit like crumpled paper.  Feel free to use one, two or several, the more you use the more grungy things will look.</li>
<li>2. Set the topmost grunge layer to Overlay and set the opacity to 75%.  </li>
<li>3. Set the lower grunge layers to Soft Light.  This serves to preserve your original colors.</li>
<li>4. Play with the other Opacity levels as you see fit.</li>
</ol>
<p><b>Dirty Words</b></p>
<p>A grunge design deserves matching text.  Start by downloading some grunge fonts from dafont.com (<a href="http://www.dafont.com/theme.php?cat=109">1</a>, <a href="http://www.dafont.com/theme.php?cat=108">2</a>) and installing them on your system.  Once you&#8217;ve installed your new fonts, relaunch Photoshop so that you have access to them.  Once you&#8217;ve found the font that works best for your design, start working on adding a title or company logo.</p>
<p>If you do decide to add an existing logo you may want to alter the colors to help it match your design.  Set the Layer Blend Option to Overlay.  Use the grunge brushes you downloaded in part one to make what was your normal logo look even more grungy. </p>
<p>Because you can&#8217;t write diagonal text in HTML, we&#8217;re going to add the titles for our columns in Photoshop.  Don&#8217;t worry everything in the rows will be HTML which will allow it to be indexed by search engines.  I chose to use a more traditional font, Helvetica, which will match the styled text I plan on using later in the XHTML markup.  </p>
<p><img src="http://farm3.static.flickr.com/2073/2517510706_2df1758401.jpg" alt="grunge tables"></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="d187" 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-2-187/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+2%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-2-187/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+2%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-2-187/&amp;title=Grunge+Tables+with+Photoshop+and+XHTML+%28Part+2%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-2-187/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 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 3)</title>
		<link>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/</link>
		<comments>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 18:07:57 +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[markup]]></category>

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

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

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

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/</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>We&#8217;ve just started our first Wordpress theme! In <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-1-143/" target="_blank">Part 1</a> and <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/" target="_blank">Part 2</a> we reviewed some techniques that will allow our design to be marked up to XHTML.  In this lesson you&#8217;ll learn exactly how to do this and why it isn&#8217;t exactly as easy as it seems.</p>
<p><b>Photoshop to XHTML in 24 Hours</b></p>
<p>So we&#8217;ve all seen those ads for websites that say they can &#8220;Photoshop to XHTML/CSS in X Ammount of time&#8221; right?  No?  well here&#8217;s <a>39 of them</a>.  What exactly are these service doing that you can&#8217;t as the theme designer?  Nothing.  If you feel so inclined, save yourself the fee (usually around $100 or so dollars) and do it yourself!</p>
<p><span id="more-146"></span></p>
<ul>
<li>1. Select <strong>File &gt; Save For Web and Devices</strong></li>
<p><img src="http://farm3.static.flickr.com/2042/2449793616_c384832f18_m.jpg"></p>
<li>2. Click the arrow in the top right to optimize your websites color and download time. I usually don&#8217;t optimize for anything slower than 56Kbps because I use another technique which you&#8217;ll find out about in <a href="">Part 4</a>.</li>
<p><img src="http://farm3.static.flickr.com/2245/2448968481_778ca9c6ae_m.jpg"></p>
<li>3. Under preset select whether you want to use PNG, JPEG, or GIF formats and the various quality settings for each.</li>
<li>4. Click &#8220;Save&#8221;.</li>
<li>5. A window will pop up.  Here You want to set <strong>Format</strong> to &#8220;HTML and Images&#8221;.  Under settings select <strong>Other</strong></li>
<p><img src="http://farm3.static.flickr.com/2119/2448968435_e2a0865c04.jpg"></p>
<li>6. You&#8217;re going to set four options.  For <strong>HTML</strong> you want to make sure &#8216;Output XHTML&#8217; is selected. For <strong>Slices </strong>you want to make sure &#8216;Generate CSS&#8217; is selected instead of &#8216;Generate Table&#8217;.  Skip the remaining two options Background and Saving Files, they aren&#8217;t particularly necessary.
<p><img src="http://farm3.static.flickr.com/2036/2448968389_e90527cc8a.jpg" alt="psd to xhtml">&gt;</li>
<li>7. Save the file, navigate to and open the resulting HTML file in your text editor.  You&#8217;ll notice that Photoshop CSS has annoyingly put all your images inline with your HTML, meaning it&#8217;s not in a separate stylesheet like it should be.</li>
</ul>
<p>In the <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/">next step</a> we&#8217;ll discuss how to go from inline XHTML to the two file (.html &#038; .css) standard that will be needed to mark up the design to php.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d146" 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-3-146/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%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/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%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/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%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/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
