<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TutWow &#187; HTML/CSS</title>
	<atom:link href="http://www.tutwow.com/category/htmlcss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tutwow.com</link>
	<description>Playing Creativity Tag</description>
	<lastBuildDate>Thu, 01 Jul 2010 04:18:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Set a Page on Fire with Photoshop and CSS</title>
		<link>http://www.tutwow.com/photoshop/set-a-page-on-fire-with-photoshop-and-css/</link>
		<comments>http://www.tutwow.com/photoshop/set-a-page-on-fire-with-photoshop-and-css/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 19:28:20 +0000</pubDate>
		<dc:creator>Ben Lind</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.tutwow.com/?p=1016</guid>
		<description><![CDATA[This tutorial will teach you how to set a web page on fire with Photoshop and CSS. The fire hovers over the bottom of the page, and when you scroll down, it stays there. A very cool, but very easy effect!]]></description>
			<content:encoded><![CDATA[<h1>Final Result</h1>
<p>This tutorial will teach you how to set a web page on fire with Photoshop and CSS.  Here&#8217;s a preview of what it will look like:</p>
<p><img class="alignnone" title="Final Result" src="http://img.tutwow.com/FirePage/Preview.jpg" alt="" width="540" height="315" /></p>
<p>If you want to see it in action, you can go to <a title="Fire Page" href="http://img.tutwow.com/FirePage/index.html">this page</a>.</p>
<h1>Step 1</h1>
<p>For the purpose of this tutorial, we will be creating some very basic fire to demonstrate the effect.  If you play around on your own, I&#8217;m sure you can come up with some much better looking fire.</p>
<p>To start off, open up Photoshop and create a new document 500px wide and 300px tall.  Reset your foreground/background colors by pressing D, and go to Filter &gt; Render &gt; Clouds.  You should now have some nice black and white clouds like below:</p>
<p><img class="alignnone" title="Clouds" src="http://img.tutwow.com/FirePage/Step1Clouds.jpg" alt="" width="500" height="300" /></p>
<h1>Step 2</h1>
<p>To colorize the clouds to look more like fire, press Ctrl + U (Image &gt; Adjustments &gt; Hue/Saturation) to bring up the Hue/Saturation dialog.  Inside this dialog, enter these settings:</p>
<p><img class="alignnone" title="Hue/Saturation" src="http://img.tutwow.com/FirePage/Step2Hue.jpg" alt="" width="461" height="367" /></p>
<p>This will give the fire a nice orange glow:</p>
<p><img class="alignnone" title="Orange Clouds" src="http://img.tutwow.com/FirePage/Step2Result.jpg" alt="" width="500" height="300" /></p>
<h1>Step 3</h1>
<p>What we want to do now is make this fire texture into a pattern that we can tile across the web page in a later step.  To do this, go to Filter &gt; Other &gt; Offset, and enter these settings:</p>
<p><img class="alignnone" title="Offset" src="http://img.tutwow.com/FirePage/Step3Offset.jpg" alt="" width="344" height="232" /></p>
<p>This will &#8220;offset&#8221; our texture so that we can see the seam that makes it look horrible when we try to tile it.  We need to remove this seam so that the texture will run together smoothly later.</p>
<p><img class="alignnone" title="Offset Result" src="http://img.tutwow.com/FirePage/Step3OffsetResult.jpg" alt="" width="500" height="300" /></p>
<p>Take the <em>Healing Tool</em> (J), alt + click on some part of the texture other than the seam, and click and drag over the seam to &#8220;heal&#8221; it.  If this doesn&#8217;t work completely, you may need to use the <em>Blur Tool</em> (R) and blur out the rest of the seam.</p>
<p>Your texture should now look something like this:</p>
<p><img class="alignnone" title="Healed" src="http://img.tutwow.com/FirePage/Step3Healed.jpg" alt="" width="500" height="300" /></p>
<h1>Step 4</h1>
<p>The last thing we need to do with this texture is fade it out towards the top.  Double-click on the Background layer (it should be the only layer), and press ok in the dialog that pops up to unlock the layer.</p>
<p>Press Q to enter Quick Mask Mode, take the <em>Gradient Tool</em> (G), and draw out a linear gradient starting from the bottom of the image and stretching up to almost the top.  Press Q again to exit Quick Mask Mode, and then press the Delete key to clear the selection.  This will make the texture fade out like below:</p>
<p><img class="alignnone" title="Fade Out Texture" src="http://img.tutwow.com/FirePage/Step4Result.jpg" alt="" width="500" height="300" /></p>
<p>Our fire texture is now complete.  Press Ctrl + S to save the image to your hard drive.  While you&#8217;re at it, you should create a new folder someplace where you can keep all of the files you use for this tutorial.  Save the image as a PNG file, and name it &#8220;fire.png&#8221;.</p>
<h1>Step 5</h1>
<p>Open up your favorite text editor (I use Coda while I&#8217;m on a Mac, but any old text editor like TextEdit or Notepad will do) and type in some basic HTML:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;

&lt;html xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml"&gt;
 &lt;head&gt;
 &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
 &lt;title&gt;Fire Page&lt;/title&gt;
 &lt;link href="style.css" media="screen" rel="stylesheet" type="text/css" /&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;/body&gt;
&lt;/html&gt;</pre>
<p>All this is doing is setting up the page with all of the necessary tags that every HTML page has.  The title of the page is &#8220;Fire Page&#8221;, and we are including an external CSS file, &#8220;style.css&#8221;, which we will create later, in it.</p>
<h1>Step 6</h1>
<p>Inside the body of the page, insert this line of code:</p>
<pre>&lt;div id="fire"&gt;&lt;/div&gt;</pre>
<p>This one line is all we need to set up the fire effect.  The real work is done in the CSS file that we will create.</p>
<p>To make the example interesting, put in a bunch of Lorem Ipsum text after the &lt;div id=&#8221;fire&#8221;&gt;&lt;/div&gt; line.  I just went to <a title="Lorem Ipsum Text Generator" href="http://www.lipsum.com/" target="_blank">http://www.lipsum.com/</a>, a Lorem Ipsum text generator, and created 15 paragraphs of dummy lipsum.  Then I copied the paragraphs into my HTML file and wrapped each one in &lt;p&gt; tags.</p>
<p>Save the HTML file we&#8217;ve been working on as &#8220;index.html&#8221;, and put it into the same folder as the image (fire.png) we created before.</p>
<p>You should now have a bland page with a bunch of text in it.  Not much, but the fun is just beginning&#8230;</p>
<h1>Step 7</h1>
<p>Now create a new text file.  This will be the CSS file that styles index.html.  Inside this new file, put in this text:</p>
<pre>body {
 background: #000;
 color: #FFF;
}</pre>
<p>This styles the page so that the background color is black and the font color is white.  This will make our fire texture really stand out from the rest of the page.  After the above code, enter this text:</p>
<pre>#fire {
 background: transparent url(fire.png) repeat-x;
 position: fixed;
 left: 0;
 bottom: 0;
 height: 300px;
 width: 100%;
 z-index: 999;
}</pre>
<p>First, this sets the background of the #fire div to the fire.png file we created before.  Then, it sets the position, height, and width of the div so that it covers the entire bottom of the page.  The last line makes sure that the fire div is always on top of all other content on the page.</p>
<p>Save this file as style.css, and make sure it&#8217;s in the same directory as the index.html and fire.png files.</p>
<h1>Final Result</h1>
<p>That&#8217;s it! If you open up index.html in a web browser, you will see <a title="Fire Page" href="http://img.tutwow.com/FirePage/index.html">this result</a>.  Notice that if you scroll down on the page, the fire will stay hovering over the bottom of it.  It&#8217;s a very versitile effect that you can use for lots of different effects.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutwow.com/photoshop/set-a-page-on-fire-with-photoshop-and-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Solving the CSS Padding Problem</title>
		<link>http://www.tutwow.com/htmlcss/solving-the-css-padding-problem/</link>
		<comments>http://www.tutwow.com/htmlcss/solving-the-css-padding-problem/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 03:25:07 +0000</pubDate>
		<dc:creator>Ben Lind</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>

		<guid isPermaLink="false">http://www.tutwow.com/?p=383</guid>
		<description><![CDATA[The "CSS padding problem" is what happens when you try to add padding to a lone container.  Instead of the padding pushing the content in, the content pushed the container out.  I have a simple solution to this problem.]]></description>
			<content:encoded><![CDATA[<p>I remember when I first started using CSS, something really ticked me off.  That was that when I had an HTML file with a div in it, and I wanted to add some padding to that div, not only did the content inside of the div get &#8220;padded&#8221;, but the whole div increased in size.  As you can imagine, this got really annoying, until one day I found the solution to the problem.</p>
<p>Let&#8217;s start with an example of the problem.  If I have the following HTML code:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt;
	&lt;head&gt;
		&lt;title&gt;CSS Padding Problem&lt;/title&gt;
		&lt;link rel="stylesheet" href="style.css" media="all" /&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id="padded"&gt;I want this content to be padded.&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre>
<p><span id="more-383"></span>And the following CSS:</p>
<pre>body {
	margin: 0;
	padding: 10px;
	background: #EEE;
}
#padded {
	width: 950px;
	margin: auto;
	background: #FFF;
}</pre>
<p>Then I will get <a title="See it in action!" href="http://img.tutwow.com/PaddingProblem/Example1/" target="_blank">this result</a>.  It looks pretty bad, because the div doesn&#8217;t have any padding on it.  This is where we run into the problem.  Here&#8217;s what I mean &#8211; if I edit the style.css file and add a &#8220;padding: 20px&#8221; to the #padded selector, then my CSS file will look like this:</p>
<pre>body {
	margin: 0;
	padding: 10px;
	background: #EEE;
}
#padded {
	width: 950px;
	margin: auto;
	background: #FFF;
	padding: 20px;
}</pre>
<p>And in a web browser, the result of that change would look like <a title="See the &quot;padded&quot; version." href="http://img.tutwow.com/PaddingProblem/Example2/" target="_blank">this file</a>.  Looks pretty good, doesn&#8217;t it?  However, if you switch back and forth between the <a title="See it in action!" href="http://img.tutwow.com/PaddingProblem/Example1/" target="_blank">first example</a> and the <a title="See the &quot;padded&quot; version." href="http://img.tutwow.com/PaddingProblem/Example2/" target="_blank">second example</a>, you&#8217;ll see that the div in the second example is a bit wider (40px exactly) than the first one.</p>
<p>By now you might be thinking &#8220;So what?  What&#8217;s the big deal with a div that&#8217;s a little bit wider than it should be?&#8221;  True, for some templates that you create, it won&#8217;t matter if a div is wider than it should be.  However, for designs that are more precise &#8211; i.e. they have been designed to be pixel-perfect &#8211; a little div width change could cause a lot of trouble.</p>
<p>So how do we fix this problem?  Well, there is a surprisingly simple way to fix this problem, and that is by wrapping the #padded div inside another div.  Here is what I mean &#8211; the new HTML file will look like this:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt;
	&lt;head&gt;
		&lt;title&gt;CSS Padding Problem&lt;/title&gt;
		&lt;link rel="stylesheet" href="style.css" media="all" /&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id="container"&gt;
			&lt;div id="padded"&gt;I want this content to be padded.&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre>
<p>And the new CSS file:</p>
<pre>body {
	margin: 0;
	padding: 10px;
	background: #EEE;
}
#container {
	width: 950px;
	margin: auto;
	background: #FFF;
}
#padded {
	padding: 20px;
}</pre>
<p>As you can see, what I did is just wrap the #padded div inside another div called #container, and then moved all of the styles for the #padded div &#8211; except for the &#8220;padding: 20px&#8221; &#8211; to the styles for the #container div.</p>
<p>Take a look at <a title="See the finished example" href="http://img.tutwow.com/PaddingProblem/Example3/" target="_blank">the finished, &#8220;fixed&#8221;, padding example</a>.  A very easy solution to a maybe not-so-easy problem.</p>
<p>As an Update, I found one <a href="http://www.webhostingsearch.com/articles/20-css-short-hands.php">shortcut list of CSS tricks</a> from my <a href="http://www.webhostingsearch.com">web hosting</a> friend.  This is simple but a good refresher.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutwow.com/htmlcss/solving-the-css-padding-problem/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>Quick Tip: CSS 100% Height</title>
		<link>http://www.tutwow.com/tips/quick-tip-css-100-height/</link>
		<comments>http://www.tutwow.com/tips/quick-tip-css-100-height/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 17:53:39 +0000</pubDate>
		<dc:creator>Ben Lind</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.tutwow.com/?p=186</guid>
		<description><![CDATA[A common problem among designers is how to get a div to stretch 100% of the window's height.  There are a few different techniques out there, but I came up with one that is my personal favorite, which I will share with you today.]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know about you, but I always get frustrated trying to figure out how to get my layout to stretch vertically to 100% of the page.  I have a div that I want to stretch, but it just doesn&#8217;t stretch.  Now why wouldn&#8217;t it do that?  Today I will share the solution with you.</p>
<p>Say you have coded an HTML file like this:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt;

&lt;title&gt;CSS 100% Height&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="style.css" /&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="content"&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><span id="more-186"></span></p>
<p><span>And you have a CSS file like this:</span></p>
<pre>body {
	margin: 0;
	padding: 0;
}
#content {
	background: #EEE;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
	padding: 0 20px 0 20px;
	margin: auto;
	font: 1.5em arial, verdana, sans-serif;
	width: 960px;
	height: 100%;
}</pre>
<p>That gives you <a title="Example 1" href="http://img.tutwow.com/VerticalStretch/Example1/VerticalStretch.html" target="_blank">this example file</a>.  As you can see, the content box on that page doesn&#8217;t stretch to the whole height of the page, even though we added the &#8220;height: 100%;&#8221; line to the CSS file.  Why is that?</p>
<p>Let me give you a different way of thinking about HTML.  HTML is pretty much just a bunch of containers stacked inside each other.  So in our page, first we have the &lt;html&gt; container, then the &lt;body&gt; container inside of that, and finally the &lt;div id=&#8221;content&#8221;&gt; container inside of <em>that</em>.  When we put content into one of those boxes, it stretches that box and all the boxes containing that box so that they can hold the new content.  So when we put our text into the &lt;div id=&#8221;content&#8221;&gt; box, that box streches, which in turn stretches all of the boxes that it is in (in our case the &lt;body&gt; and &lt;html&gt; boxes).</p>
<p>When we put the &#8220;height: 100%;&#8221; style onto the &lt;div id=&#8221;content&#8221;&gt; box, what we are doing is telling it to stretch to the full height <em>of the box that it is in</em>.  In this example, the box that it is in is the &lt;body&gt; box.  So the &lt;div id=&#8221;content&#8221;&gt; box is 100% of the height of the &lt;body&gt; box.  Well, how tall is the &lt;body&gt; box?  It&#8217;s just as tall as the &lt;div id=&#8221;content&#8221;&gt; box, because we never told it how tall it should be!  So when we put the &#8220;height: 100%;&#8221; style onto the &lt;div id=&#8221;content&#8221;&gt; box, we are just telling it to be as tall as itself!</p>
<p>To fix this, we need to tell the &lt;body&gt; box to get bigger.  But then we run into the same problem with the &lt;html&gt; box &#8211; it is only as big as the &lt;body&gt; box!  So to fix our problem (to get the &lt;div id=&#8221;content&#8221;&gt; box to stretch the whole height of the page), we need to tell the &lt;html&gt; and &lt;body&gt; boxes to be the full height of the page.</p>
<p>So if we change our CSS file to this:</p>
<pre>html {
	height: 100%;
}
body {
	margin: 0;
	padding: 0;
	height: 100%;
}
#content {
	background: #EEE;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
	padding: 0 20px 0 20px;
	margin: auto;
	font: 1.5em arial, verdana, sans-serif;
	width: 960px;
	height: 100%;
}</pre>
<p>And that&#8217;s it!  <a title="Example 2" href="http://img.tutwow.com/VerticalStretch/Example2/VerticalStretch.html" target="_blank">This is what we have now</a>.  The content box is now stretched to the full height of the page!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutwow.com/tips/quick-tip-css-100-height/feed/</wfw:commentRss>
		<slash:comments>116</slash:comments>
		</item>
		<item>
		<title>My Coding Style</title>
		<link>http://www.tutwow.com/php/my-coding-style/</link>
		<comments>http://www.tutwow.com/php/my-coding-style/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 15:34:21 +0000</pubDate>
		<dc:creator>Ben Lind</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.tutwow.com/WP25/?p=10</guid>
		<description><![CDATA[A lot of people just throw a bunch of code into a file and hope it runs.  If it doesn't run, it's quite a nightmare to edit it again since it isn't formatted well.  However, I like to format my code in a very strict way, which I'll share with you today.]]></description>
			<content:encoded><![CDATA[<p>Over the past few years, I have learned many different programming languages.  Having typed program after program (&#8220;Hello World&#8221; after &#8220;Hello World&#8221;), I have come up with a very specific programming style for formatting my code.   Instead of just throwing a bunch of code into a text editor &#8211; hoping that I can decipher it when I look at it again in a few months &#8211; I carefully indent all of my code to the correct width, and use a lot of comments.  Below, I have put together some of my most-used practices so that you can (hopefully) benefit from and build off of them.</p>
<h2>1. Indenting Two Spaces</h2>
<p>One of the most obvious ways to make your code more readable is to indent all of your lines to the correct width.  I usually use two spaces for my tabs, an option you can specify in most text editors.</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/indent2spaces.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-11" title="Indenting 2 Spaces" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/indent2spaces.jpg" alt="Indenting 2 Spaces" width="500" height="219" /><span id="more-10"></span></a></p>
<h2>2. Code Bracket Placement</h2>
<p>As I said before, it&#8217;s always nice to keep your code style the same throughout all of your code.  One of the things I am a little &#8220;finicky&#8221; about is the placement of the code brackets that surround my code blocks (if statements, while loops, etc.).</p>
<p>I place my beginning bracket one space after the ending parenthesis of the code block header.  Take a look at this image to see what I mean:</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/1spacebeforebracket.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-12" title="Placement of Beginning Bracket" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/1spacebeforebracket.jpg" alt="Placement of Beginning Bracket" width="500" height="219" /></a></p>
<h2>3. Comment, Comment, Comment</h2>
<p>Alright, I admit it, I&#8217;m a comment freak.  I go <em>wild</em> with comments all over the place, and I have descriptions of almost every line of code in my files.  I find that if I stick to one format for all of my comments, it makes the overall readability a whole lot better.</p>
<p>When I comment whole sections of code, using the comment as a sort of &#8220;header&#8221;, I put my header text inside a multi-line comment, and place this right before the beginning of the section of code that I&#8217;m describing.</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/headercomments.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-13" title="Header Comments" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/headercomments.jpg" alt="Header Comments" width="500" height="219" /></a></p>
<p>When describing just a single line, I use a single-line comment, and tab it one or two tabs from the line I&#8217;m describing &#8211; like this:</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/singlelinecomments.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-14" title="Single Line Comments" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/singlelinecomments.jpg" alt="Single Line Comments" width="500" height="219" /></a></p>
<h2>4. Parenthesis and Brace Padding<strong><br />
</strong></h2>
<p>To make my code more readable, I add spaces inside all of my parentheses and square braces as a kind of &#8220;padding&#8221; for them.  This can look strange at first, but if you get used to it, you&#8217;ll see how much more readable it can make things.</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/parenthesispadding.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-15" title="Parenthesis Padding" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/parenthesispadding.jpg" alt="Parenthesis Padding" width="500" height="219" /></a></p>
<h2>Conclusion</h2>
<p>I hope that everyone who reads this post gets something out of it, and applies it to their own coding.  Now don&#8217;t misunderstand me &#8211; this is <em>not</em> the only way to format your code &#8211; there are <em>so</em> many different ways you can do this, and the important thing is that you find the style that you&#8217;re comfortable with and stick with it.</p>
<p>Until next time, happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutwow.com/php/my-coding-style/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>HTML Code Export</title>
		<link>http://www.tutwow.com/htmlcss/html-code-export/</link>
		<comments>http://www.tutwow.com/htmlcss/html-code-export/#comments</comments>
		<pubDate>Sun, 25 May 2008 01:33:19 +0000</pubDate>
		<dc:creator>Ben Lind</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>

		<guid isPermaLink="false">http://www.tutwow.com/WP25/?p=6</guid>
		<description><![CDATA[Many people are picky about how their code looks, especially how it is indented.  I am one of these people, and whenever I see badly indented code, I can't stand it.  So I found some software that helped me out and can help you too.]]></description>
			<content:encoded><![CDATA[<p>This is a message to all of you HTML coders out there who have spent hours indenting their code lines so that they look just right, only to get them messed up again.  I know how you feel!  I&#8217;m one of those people who need to have their code indented to just the right length so that I can think straight.</p>
<p>Well, now there&#8217;s a solution.  I&#8217;ve been searching around the web, and I just stumbled onto this program called HTML Code Export.  What it does (or what I use it for) is it takes HTML code that you enter, and it indents everything so that it&#8217;s nice and tidy.  Pretty slick, huh?  I can&#8217;t believe I didn&#8217;t think of this earlier &#8211; it would have saved my hours of headaches!</p>
<p>Make sure to hop over to <a title="HTML Code Export" href="http://www.highdots.com/html-code-export/" target="_blank">the download site</a>, and get your copy of this amazing time saving program now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutwow.com/htmlcss/html-code-export/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
