<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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/" version="2.0">

<channel>
	<title>DivitoDesign</title>
	
	<link>http://www.divitodesign.com</link>
	<description>Articles, Tutorials and Resources for the Webdesigner</description>
	<pubDate>Sun, 04 Jan 2009 15:57:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/DivitoDesign" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">1020080</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>Tricks to Solve 960 CSS Framework Problems</title>
		<link>http://www.divitodesign.com/2009/01/tricks-to-solve-960-css-framework-problems/</link>
		<comments>http://www.divitodesign.com/2009/01/tricks-to-solve-960-css-framework-problems/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 15:57:26 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[CSS Frameworks]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1317</guid>
		<description><![CDATA[<p>A couple weeks back we have learned about the <a href="http://www.divitodesign.com/2008/12/960-css-framework-learn-basics/">basics of the 960.gs CSS framework</a>. Today we will talk about 2 problems with the 960... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>A couple weeks back we have learned about the <a href="http://www.divitodesign.com/2008/12/960-css-framework-learn-basics/">basics of the 960.gs CSS framework</a>. Today we will talk about 2 problems with the 960 framework you might have struggled with. This post acted like a problem solver.</p>
<p><a href="http://960.gs"><img class="alignnone" title="960 grid system" src="http://960.gs/img/h1.gif" alt="" width="300" height="200" /></a></p>
<p>Many of these &#8220;problems&#8221; are very simple to solve. You will need a basic understanding of the framework though to understand why and how things get solved. <a href="http://www.divitodesign.com/2008/12/960-css-framework-learn-basics/">You should learn the basics here.</a></p>
<h2>Add padding</h2>
<p>All the boxes in the framework have a specific width and margin and this creates the grid look and feel. However, sometimes you want to create a &#8220;box&#8221; or just want to add padding to your div.</p>
<p>As in any framework, this isn&#8217;t possible in the regular way. When you add padding to the div, the div will become wider and this will screw up your whole grid layout.</p>
<h3>Solution</h3>
<p>There is a simple solution to solve this problem. We will add another div <strong>inside</strong> the div you want to add padding to. We <strong>don&#8217;t</strong> give the new div any width declarations. So, we don&#8217;t give it a .<em>grid_xx</em> class.</p>
<p>Now, if we want to style this box and you have added a class or ID, we can add padding. Because we didn&#8217;t specific any width declaration, it is automatically 100%. If we add padding, the width of your div will stay the same. Take a look at our example to clear things up.</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_16&quot;</span>&gt;</span><span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>Let&#8217;s say we want to add padding to the div with ID &#8220;left&#8221;. Usually, like this:</p>
<pre class="css">
<span class="cssSelector">div#left{</span>
<span class="cssProperty">padding</span><span class="cssRest">:</span><span class="cssValue">10px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
</pre>
<p><span id="more-1317"></span><br />
However, this gives your div an extra 20px width. We work differently today:</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_16&quot;</span>&gt;</span>
     <span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;left&quot;</span> class=<span class="htmlAttributeValue">&quot;grid_8&quot;</span>&gt;</span>
          <span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;special-div&quot;</span>&gt;</span>example<span class="htmlOtherTag">&lt;/div&gt;</span>
     <span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>Together with this CSS:</p>
<pre class="css">
<span class="cssSelector">div#left div.special-div{</span>
<span class="cssProperty">padding</span><span class="cssRest">:</span><span class="cssValue">20px</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
</pre>
<p>Take a look at <a href="http://www.divitodesign.com/dd-articles/960-problems-solutions/padding.html">our live example</a> to see this works. As you can see, things are doing fine and the grid isn&#8217;t screwed up! <em>I have added a border/background to the style declaration to make sure you can see what I mean</em></p>
<p><strong>Tip! You can also do this with borders!</strong></p>
<h2>Wider or Narrower 960.gs Layouts</h2>
<p>Width is a specific part of the 960.gs CSS framework. <strong>What if you want to create a layout that is wider or narrower?</strong> The facts first.</p>
<p>The 960.gs framework is called 960 for a reason: it&#8217;s 960px width. The whole grid is based on this 960px. You can&#8217;t make everything narrower or wider because everything gets screwed up. For a narrower layout however, we can use a trick. The wider layout isn&#8217;t possible with 960 gs and you should pick another framework like <a href="http://www.blueprintcss.org">blueprint CSS</a>.</p>
<p>Let&#8217;s create that narrow layout.</p>
<h3>Solution</h3>
<p>There are more CSS codes that can do the job, but I will just use the 960 way today.</p>
<p>Say we have this basic grid:</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_16&quot;</span>&gt;</span>
     <span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;layout&quot;</span>&gt;</span>layout<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>This means that inside our basic &#8220;container&#8221; div, we have another div. This div with ID &#8220;layout&#8221; will be (<em>surprise!</em>) our layout. You see this div don&#8217;t have a .grid_xx class? Explanation will follow.</p>
<p>We have to put another div behind our &#8220;layout&#8221;-div, so we can position everything. I will give this div the class .grid_12. You can of course change this in an appropriate width. Our grid now looks like this:</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_16&quot;</span>&gt;</span>
     <span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_12&quot;</span>&gt;</span>
          <span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;layout&quot;</span>&gt;</span>layout<span class="htmlOtherTag">&lt;/div&gt;</span>
     <span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>As you can see in the our HTML file, our container&#8217;s width &#8220;is&#8221; 16. Our container div&#8217;s width &#8220;is&#8221; 12.</p>
<p>Simple math shows that 16 - 12 is 4. We have the width of .grid_4 left. Because we need the same amount of space on both sides of our div, we can do some simple math again. We have .grid_4 / 2 sides = .grid_2 on both sides.</p>
<p>There are classes included in the 960 framework that can add a number of default padding like that <em>.grid_1</em>, <em>.grid_2</em> etc. Padding-left is <em>.prefix_xx</em> and padding-right is <em>.suffix_xx</em>. Let&#8217;s add a padding-left of .grid_2 to our example.</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_16&quot;</span>&gt;</span>
     <span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_12 prefix_2&quot;</span>&gt;</span>
          <span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;layout&quot;</span>&gt;</span>layout<span class="htmlOtherTag">&lt;/div&gt;</span>
     <span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>Check out our <a href="http://www.divitodesign.com/dd-articles/960-problems-solutions/width.html">basic example</a> to see that our grid is in the middle of your screen, and narrower as our original 960 layout.</p>
<h2>Conclusion</h2>
<p>These are the problems I was facing when using the 960.gs CSS framework. I don&#8217;t have other problems I think that should be tackled in 960.gs. It works good for me.</p>
<h2>Perhaps you?</h2>
<p>You might have a questions or problem you are facing when using 960 CSS framework in development environments. Don&#8217;t hesitate to point them out in the comments and I will see if I can add a solution in a follow-up post.</p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=54pOtB.P"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=54pOtB.P" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/502614362" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2009/01/tricks-to-solve-960-css-framework-problems/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Merry Christmas and a Happy New Year!</title>
		<link>http://www.divitodesign.com/2008/12/merry-christmas-and-a-happy-new-year/</link>
		<comments>http://www.divitodesign.com/2008/12/merry-christmas-and-a-happy-new-year/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 22:51:51 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1315</guid>
		<description><![CDATA[<p>Tonight is the night before Christmas. In less then a week, 2008 will be history and the fresh 2009 will be on our doorsteps.</p>
<p><strong>It&#8217;s time... &#187;</strong></p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>Tonight is the night before Christmas. In less then a week, 2008 will be history and the fresh 2009 will be on our doorsteps.</p>
<p><strong>It&#8217;s time for me to thank everyone that has been involved with DivitoDesign in 2008. Thank you for your support, for the time to comment, for the interesting emails. Thank you for being with me in this interesting online journey.</strong></p>
<p>In the next year DivitoDesign won&#8217;t go anywhere. We stay on our place and of course, we keep moving forward. We keep learning, we keep writing, we stand our ground in anything we do. Like never before.</p>
<p>Thanks for being with me in 2008 and I wish all of your a merry Christmas and a happy New Year.</p>
<p>See you in 2009!</p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=LGhcO"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=LGhcO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/494394853" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/12/merry-christmas-and-a-happy-new-year/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setup An Online Workspace With Dreamweaver</title>
		<link>http://www.divitodesign.com/2008/12/setup-an-online-workspace-with-dreamweaver/</link>
		<comments>http://www.divitodesign.com/2008/12/setup-an-online-workspace-with-dreamweaver/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 21:56:51 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Dreamweaver]]></category>

		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1302</guid>
		<description><![CDATA[<p>Recently, <a href="http://frank-verhoeven.com/">Frank Verhoeven</a> and I started working on a <a href="http://www.divitodesign.com/wordpress-themes/">Wordpress theme</a>. This Wordpress theme would be customized online on a dummy Wordpress installation. Frank and I... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>Recently, <a href="http://frank-verhoeven.com/">Frank Verhoeven</a> and I started working on a <a href="http://www.divitodesign.com/wordpress-themes/">Wordpress theme</a>. This Wordpress theme would be customized online on a dummy Wordpress installation. Frank and I should both be able to apply changes to the files. With FTP, this isn&#8217;t a problem.</p>
<p>However we were editing and uploading the same files and this caused some problems.  The changes he applied weren&#8217;t in my stylesheet, so when I uploaded my changes, his changes were lost. And visa versa. We needed to think of a workable solution.</p>
<h2>Adobe&#8217;s Dreamweaver &#8220;Define A Site&#8221;</h2>
<p>We found the solution via Adobe&#8217;s Dreamweaver &#8220;define a site&#8221;-feature. Any user in the team (Frank and me in this case) should define the same site in Dreamweaver and check files in/out (<a href="#check">more info on check in/out below</a>). These files were uploaded right back to the server once it was done.</p>
<p>This is the perfect solution for working in a team on one website. That&#8217;s why I will teach you exactly how to set up such &#8220;site&#8221;.</p>
<h2>Before we can start</h2>
<p>Before we can actually set up this connection between Dreamweaver and your site, we need a couple things ready. You need these:</p>
<ol>
<li>FTP information</li>
<li>Dummy Wordpress installation (or any other folder you would like to edit)</li>
<li>Folder on your local computer where you can store the files.</li>
</ol>
<h2>Setup the Connection</h2>
<p>I will guide you through a step-by-step process of setting up the connection. It isn&#8217;t that hard, but you need to follow the guide step by step.</p>
<p>In this version of the tutorial, I used Dreamweaver 8. Any later version of Dreamweaver should have almost identical steps, so it shouldn&#8217;t be a problem.</p>
<h3>Step by Step</h3>
<p><strong>Step 1</strong>. Open Dreamweaver. Go to &#8220;Site &gt; New Site&#8221;. You sh<a href="http://www.divitodesign.com/wp-content/uploads/2008/12/setting-up-workspace-1.jpg"><img class="alignright size-full wp-image-1306" title="setting-up-workspace-1" src="http://www.divitodesign.com/wp-content/uploads/2008/12/setting-up-workspace-1.jpg" alt="setting-up-workspace-1" width="200" /></a>ould choose the basic setup.</p>
<p><strong>Step 2</strong>. Name your site and enter the HTTP address of that site. Click next.</p>
<p><strong>Step 3</strong>. Do you want to use a Server technology? Yes, we would like. Wordpress runs PHP and MySQL. Click next.</p>
<p><strong>Step 4</strong>. How do you want to work with your files during development? I suggest you choose option &#8220;Edit locally, then upload to remote testing server&#8221;.<br />
<span id="more-1302"></span><br />
&#8220;Where on your computer do you want to store your files?&#8221; You have to enter the folder where you develop your site on your own computer. Choose next.<a href="http://www.divitodesign.com/wp-content/uploads/2008/12/setting-up-workspace-2.jpg"><img class="alignright size-full wp-image-1307" title="setting-up-workspace-2" src="http://www.divitodesign.com/wp-content/uploads/2008/12/setting-up-workspace-2.jpg" alt="setting-up-workspace-2" width="200" /></a></p>
<p><strong>Step 5</strong>. When we proceed, we have to connect to a testing server. I think it&#8217;s easiest to set up a FTP connection. Enter your FTP information and check if Dreamweaver can make the connection.</p>
<p>&#8220;What folder on the testing server do you want to store your files in?&#8221;. You should choose the complete path here. Usually this is something like &#8220;<em>/public_html/wordpress/wp-content/themes</em>&#8220;. Click next.</p>
<p><strong>Step 6</strong>. Enter the root URL of your site and click next.</p>
<p><strong>Step 7</strong>. We see some options for sharing files. You should enable &#8220;check in and check out&#8221;, because you want to make sure your co-workers don&#8217;t edit the same file at the same time you are busy with that file.</p>
<p><strong>Step 8</strong>. Enter your name and email address. After this step you will be given a summery. Click done.</p>
<h2>Upload on Save</h2>
<p>Dreamweaver has the function to upload the file as soon as you hit the save button. This means you don&#8217;t have to upload anything anymore, because that will be done automatically.</p>
<p><strong>Step 1</strong>. Site &gt; Manage Sites<br />
<strong>Step 2</strong>. &#8220;Edit&#8221; your site<br />
<strong>Step 3</strong>. Advanced options<br />
<strong>Step 4</strong>. Remote Info<br />
<strong>Step 5</strong>. Check &#8220;Automatically upload files to server on save&#8221;</p>
<p>And we are done. Your saved files will be uploaded to the server immediately.</p>
<h2 id="check">Checking In / Checking Out</h2>
<p>Here is some extra information about checking in and checking out files.</p>
<p>When you are connected and you want to edit a file, you double-click on the filename (you &#8220;check in&#8221;). This means that you give Dreamweaver the sign that you are editing a file from your site. Your co-workers see this &#8220;check in&#8221; sign too, and they know you are editing it so they can not edit that file.</p>
<p>&#8220;Check Out&#8221; is when you are finished with a file and you are releasing it to the public workspace again. Your co-workers can see this too and if they want, they can now edit the file.</p>
<h2>After the setup</h2>
<p>Once all your co-workers have defined the same &#8220;site&#8221;, your online workspace is done. Everyone can now reach the most up-to-date file.</p>
<h2>More Resources?</h2>
<p>Here are a number of other resources and links.</p>
<ul>
<li><a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15336&amp;sliceId=1">Checking In/ Checking out</a></li>
<li><a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14028&amp;sliceId=1#localinfo">How to define a site in Dreamweaver</a></li>
<li><a href="http://www.adobe.com/">Adobe</a></li>
<li><a href="http://livedocs.adobe.com/dreamweaver/8/using/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=03_site4.htm">Setup a site in Dreamweaver</a></li>
</ul>
<h2>Questions</h2>
<p>If you have any question about this tutorial, or something isn&#8217;t clear, I will be happy to reply to your <a href="http://www.divitodesign.com/2008/12/setup-a-online-workspace-with-dreamweaver/#respond">comments</a>.</p>
<p>I have a question for you too: <strong>Did you set up such online workspace? Or is there any other (and better?) program that can do this?</strong></p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=uSaHO"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=uSaHO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/492608169" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/12/setup-an-online-workspace-with-dreamweaver/feed/</wfw:commentRss>
		</item>
		<item>
		<title>960 CSS Framework - Learn the Basics</title>
		<link>http://www.divitodesign.com/2008/12/960-css-framework-learn-basics/</link>
		<comments>http://www.divitodesign.com/2008/12/960-css-framework-learn-basics/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 14:14:41 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Search Engine Optimizing]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[CSS Frameworks]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1292</guid>
		<description><![CDATA[<p>CSS frameworks have been here for some time. About the usefulness of these frameworks has been <a href="http://jeffcroft.com/blog/2007/nov/17/whats-not-love-about-CSS-frameworks/">discussed</a> for numerous times. Some say CSS isn&#8217;t advanced enough,... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>CSS frameworks have been here for some time. About the usefulness of these frameworks has been <a href="http://jeffcroft.com/blog/2007/nov/17/whats-not-love-about-CSS-frameworks/">discussed</a> for numerous times. Some say CSS isn&#8217;t advanced enough, others say these frameworks saved them many hours of developing time. We will not repeat this discussion here.</p>
<p>I have discovered CSS frameworks just a while back. After experimenting with the <a href="http://code.google.com/p/malo/">Malo</a> CSS framework, the <a href="http://www.blueprintcss.org/">Blueprint</a> framework and <a href="http://960.gs/">960</a>, I came to the conclusion <a href="http://960.gs/">I like the 960 CSS framework most</a>.</p>
<p><strong>This tutorial will explain the basics of this framework so you can start developing with 960 pretty fast.</strong></p>
<h2 class="tag">The basics principles</h2>
<p>You have to know a couple basic principles to &#8220;<em>learn how the framework works</em>&#8220;. You can learn these during the experimenting process, but I will explain them here for you, too. Let&#8217;s start.</p>
<h2>Do not edit 960.css</h2>
<p>A small note before: do not edit the 960.css file. If you do this, you won&#8217;t be able to update the framework in the future. Because we need to style our HTML though, we will create a separated CSS file.</p>
<h2>Loading the grid</h2>
<p>Before we can use CSS codes in an external file, we have to load these in our own HTML site. Which can be done via these codes:</p>
<pre class="html"><span class="htmlOtherTag">&lt;link rel=<span class="htmlAttributeValue">&quot;stylesheet&quot;</span> type=<span class="htmlAttributeValue">&quot;text/css&quot;</span> media=<span class="htmlAttributeValue">&quot;all&quot;</span> href=<span class="htmlAttributeValue">&quot;path/to/960/reset.css&quot;</span> /&gt;</span>
<span class="htmlOtherTag">&lt;link rel=<span class="htmlAttributeValue">&quot;stylesheet&quot;</span> type=<span class="htmlAttributeValue">&quot;text/css&quot;</span> media=<span class="htmlAttributeValue">&quot;all&quot;</span> href=<span class="htmlAttributeValue">&quot;path/to/960/960.css&quot;</span> /&gt;</span>
<span class="htmlOtherTag">&lt;link rel=<span class="htmlAttributeValue">&quot;stylesheet&quot;</span> type=<span class="htmlAttributeValue">&quot;text/css&quot;</span> media=<span class="htmlAttributeValue">&quot;all&quot;</span> href=<span class="htmlAttributeValue">&quot;path/to/960/text.css&quot;</span> /&gt;</span></pre>
<p>Once we have this ready, we have to include our own CSS file. For example, you can call this file <em>style.css</em> or <em>site.css</em> or anything else. Include this file with these codes:</p>
<pre class="html"><span class="htmlOtherTag">&lt;link rel=<span class="htmlAttributeValue">&quot;stylesheet&quot;</span> type=<span class="htmlAttributeValue">&quot;text/css&quot;</span> media=<span class="htmlAttributeValue">&quot;all&quot;</span> href=<span class="htmlAttributeValue">&quot;path/to/style.css&quot;</span> /&gt;</span></pre>
<h2>Containers</h2>
<p>In the 960 framework, you can choose between 2 container classes namely <em>.container_12</em> and <em>.container_16</em>. These containers are always 960px width (thence the name 960!) and the difference lies in the number of <strong>Columns</strong>. The <em>.container_12</em> container is divided  into 12 Columns and the <em>.container_16</em> container is divided in 16 columns. These 960px width containers are horizontal centered.</p>
<p><span id="more-1292"></span></p>
<h2>Grids / Columns</h2>
<p>There are numerous column widths you can choose from and these are different in the 2 containers. You can find these widths by opening the <em>960.css</em> file, but this isn&#8217;t necessary to design a proper website. There is a smart trick that make the framework even easier.</p>
<p>For example, if you want 2 columns in your container (say sidebar/content), you can do that this way:</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_12&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_4&quot;</span>&gt;</span>sidebar<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_8&quot;</span>&gt;</span>main content<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>You can see that the sum of your first column (grid_<strong>4</strong>) added with the second column (grid_<strong>8</strong>) is exact <strong>12.</strong> That&#8217;s for a reason, you don&#8217;t have to know the widths of these columns, you can choose column widths doing a very easy bit of math.</p>
<p>Let&#8217;s say we will create a layout with 4 columns. The codes will be these:</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_12&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_2&quot;</span>&gt;</span>sidebar<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_6&quot;</span>&gt;</span>main content<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_2&quot;</span>&gt;</span>photo&#039;s<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_2&quot;</span>&gt;</span>advertisement<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>As you can see, this system works pretty well. If you try to load this in your browser however, you see something that isn&#8217;t right. That&#8217;s the introduction of our next topic.</p>
<h2>Margins</h2>
<p>By default, the columns have some margin between them. Every grid_(insert number here) class has 10px left and right margin. This means that in total, between 2 columns, we have a total margin of 20px.</p>
<p>20px margin is great to create a layout with enough white space to make everything looks smooth. That&#8217;s one reason I enjoyed using 960.</p>
<p>With our example from earlier, we had a problem when we loaded the page in our browser. We are about to fix that.</p>
<p>The problem is that every column has Left <strong>and</strong> Right margin. The first column and the latest column in the container doesn&#8217;t need any margin. Here&#8217;s the solution.</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_12&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_2 alpha&quot;</span>&gt;</span>sidebar<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_6&quot;</span>&gt;</span>main content<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_2&quot;</span>&gt;</span>photo&#039;s<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;grid_2 omega&quot;</span>&gt;</span>advertisement<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>You can simple add the class <em>alpha</em> for no left margin, and the class <em>omega</em> for no right margin. This example layout we made is now aligned perfectly in any modern browser (and yes, also in IE6).</p>
<h2>Styling</h2>
<p>Perfect, you know all the basics to create a grid layout with the 960 framework. Of course, we would like to add some style to our layout, too.</p>
<pre class="html">
<span class="htmlOtherTag">&lt;div class=<span class="htmlAttributeValue">&quot;container_12&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;sidebar&quot;</span> class=<span class="htmlAttributeValue">&quot;grid_2 alpha&quot;</span>&gt;</span>sidebar<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;content&quot;</span> class=<span class="htmlAttributeValue">&quot;grid_6&quot;</span>&gt;</span>main content<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;photos&quot;</span> class=<span class="htmlAttributeValue">&quot;grid_2&quot;</span>&gt;</span>photo&#039;s<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;advertisements&quot;</span> class=<span class="htmlAttributeValue">&quot;grid_2 omega&quot;</span>&gt;</span>advertisement<span class="htmlOtherTag">&lt;/div&gt;</span>
<span class="htmlOtherTag">&lt;/div&gt;</span>
</pre>
<p>Because CSS uses <a href="http://htmldog.com/guides/cssadvanced/specificity/">specificity</a> to determine which style declarations have priority above the other, the <strong>id</strong> is more important then the <strong>classes</strong>.</p>
<p>This way we can overwrite rules that have been set by the classes (like width, padding, borders etc) in our own CSS file.</p>
<p>I have added some style too, which took me exactly 5 minutes to get this whole example together. <a href="http://www.divitodesign.com/dd-articles/960-css-framework-basics/">Check the source for the example and style declarations</a>. <a href="http://www.divitodesign.com/dd-articles/960-css-framework-basics/"><br />
</a></p>
<h2>We are done</h2>
<p>That&#8217;s it. You have just learned how to use the 960.gs framework to build cross browser compatible and smart layouts. When you have completely mastered the 960 framework you will greatly decrease the time you are writing CSS.</p>
<p>If you haven&#8217;t already, check out <a href="http://www.divitodesign.com/dd-articles/960-css-framework-basics/">the example</a>.</p>
<h3>My questions for you!</h3>
<p>Do you use the 960 CSS framework? Or any other framework? Do you think a framework help you to improve your code?</p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=y9j1O"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=y9j1O" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/485591988" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/12/960-css-framework-learn-basics/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress Theme Development Checklist</title>
		<link>http://www.divitodesign.com/2008/12/wordpress-theme-development-checklist/</link>
		<comments>http://www.divitodesign.com/2008/12/wordpress-theme-development-checklist/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 21:25:56 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1148</guid>
		<description><![CDATA[<p>As you might know, I have been diving into <a href="/wordpress-themes/">Wordpress theme development</a> and I&#8217;ve learned many tips and tricks along the way. I noticed I was... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>As you might know, I have been diving into <a href="/wordpress-themes/">Wordpress theme development</a> and I&#8217;ve learned many tips and tricks along the way. I noticed I was forgetting about some small issues all the time.</p>
<p>That&#8217;s why I decided to make a <strong>Wordpress Theme Development Checklist</strong>. <em>Oh, and if I forgot about some things, be sure to <a href="http://www.divitodesign.com/2008/12/wordpress-theme-developement-checklist/#respond">let me know</a>!</em></p>
<h2>General</h2>
<ul>
<li>Stylesheet should start with these codes or your theme will not be recognized as Wordpress theme.<br />
/*      Theme Name:  The Name of your theme<br />
*        Theme URI: The URL where people can get more information<br />
*        Description: Description<br />
*        Version: 1.0<br />
*        Author: Your Name<br />
*        Author URI: Designers&#8217; URL<br />
*        Tags: red, black, widget-ready (etc) */</li>
<li>Download the <a href="http://wpcandy.com/articles/easier-theme-development-with-the-sample-post-collection.html">Sample Post Collection</a> to have a filled Wordpress installation to start with.</li>
<li>Theme preview image
<ul>
<li><strong>240 x 180 pixels</strong></li>
<li>Name: screenshot.jpg, screenshot.png or screenshot.gif</li>
</ul>
</li>
<li><a href="http://www.divitodesign.com/2008/09/multiple-sidebars-with-wordpress-widgets/">Widget ready themes</a></li>
<li>Add <em>rules</em> to your Comments form</li>
<li>Backwards Compatibility (Wordpress version 2.5+ is alright I guess)</li>
<li><a href="http://www.divitodesign.com/2008/07/one-image-equals-multiple-images/">CSS sprites for optimizing images</a></li>
<li><a href="http://www.area381.com/2007/07/10/wordpress-psd-framework/">Wordpress PSD framework</a></li>
</ul>
<h2>Stylesheets</h2>
<p>Make sure you have these stylesheets included with your theme:</p>
<ul>
<li>General.css</li>
<li>Print.css</li>
<li>Reset.css</li>
<li><em>Browser specific st</em><em>ylesheet - ie.css</em></li>
<li><a href="http://www.divitodesign.com/2008/06/css-compressors/">Compressed Stylesheet</a><em><a href="http://www.divitodesign.com/2008/06/css-compressors/">?</a><br />
</em></li>
<p><em></em></ul>
<h2>Browser Compatibility</h2>
<p>Test your theme in a number of browsers to make sure everyone sees the same theme. Use <a href="http://www.browsershots.org/">browsershots.org</a> to get screenshots from your site in the most browsers. The most important browsers are:</p>
<ul>
<li>Firefox 2.0/3.0</li>
<li>Internet Explorer 6</li>
<li>Internet Explorer 7</li>
<li>Google Chrome</li>
<li>Safari</li>
<li>Opera</li>
</ul>
<h2>Blog Elements</h2>
<p>Every theme should have some elements every blog should have:</p>
<ul>
<li>Title/Logo</li>
<li>Navigation of Pages</li>
<li>Navigation of Categories</li>
<li>RSS links</li>
<li>Search Form</li>
<li>Archives links</li>
<li>Dates/Timestamps</li>
<li>Comments</li>
<li>Copyright message</li>
<li>Past/Next links</li>
<li><em>Advertisiments</em></li>
</ul>
<p><span id="more-1148"></span></p>
<h2>Styled Everything?</h2>
<p>You never know how bloggers will use your theme and therefore you have to style all HTML elements. Here are some elements you might not have thought of:</p>
<ul>
<li>blocknotes</li>
<li>tables</li>
<li>captions</li>
<li>unordered lists</li>
<li>ordered lists</li>
<li>img</li>
</ul>
<h2>Pages</h2>
<p>The basic pages you need to produce for a good <a href="http://codex.wordpress.org/Template_Hierarchy">template hierarchy</a>:</p>
<ul>
<li>Index.php
<ul>
<li>Header.php</li>
<li>Footer.php</li>
<li>Sidebar.php</li>
</ul>
</li>
<li>Single.php</li>
<li>Page.php</li>
<li>Home.php</li>
<li>Author.php</li>
<li>Date.php</li>
<li>Tag.php</li>
<li>Category.php</li>
<li>404.php</li>
</ul>
<h2>Valid HTML/CSS</h2>
<p>You can not validate your PHP files, so you have to go to your favorite browser and click the right mouse button &gt; view source. You copy/past everything into the HTML validator.</p>
<ul>
<li>Style.css (<a href="http://jigsaw.w3.org/css-validator/">CSS validator</a>)</li>
<li>Single.php (<a href="http://validator.w3.org/">HTML validator</a>)
<ul>
<li>Normal</li>
<li>With Comment/Without Comments</li>
<li>Login Required/Non-required</li>
<li>Password protected pages</li>
</ul>
</li>
<li>All other pages (categories/tags/authors/ etc)</li>
</ul>
<hr />
<h2>Suggestions?</h2>
<p>Remember, this checklist is not finished. Because I learn about Wordpress theme development all the time, more things will be added as soon as I think of them. My question for you is:</p>
<p><strong>Do you have suggestions that make this Wordpress theme development checklist better?</strong></p>
<h2>PDF Version</h2>
<p>Soon, I will also come up with a PDF version of this checklist so that you can print it and put it next to your computer when you are developing <a href="/wordpress-themes/">Wordpress Themes</a>.</p>
<h2>Keep Updated!</h2>
<p>Do you want to get noticed when the CheatSheet PDF version gets released? Be sure to <a href="http://feeds.feedburner.com/DivitoDesign">subscribe to the RSS feed</a>, or you can <a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=1020080&amp;loc=en_US">get the latest news delivered right into your mailbox</a>.</p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=MIMzO"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=MIMzO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/477835248" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/12/wordpress-theme-development-checklist/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Interesting Articles #14</title>
		<link>http://www.divitodesign.com/2008/12/interesting-articles-14/</link>
		<comments>http://www.divitodesign.com/2008/12/interesting-articles-14/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 15:00:05 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1273</guid>
		<description><![CDATA[<p>Today I will give you a number of articles that I found particularly interesting and that I have bookmarked along the way. Get ready for... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>Today I will give you a number of articles that I found particularly interesting and that I have bookmarked along the way. Get ready for a nice collection of articles!</p>
<p><strong>1. </strong><a href="http://freelancefolder.com/15-top-site-elements/"><strong>15 Key Elements a Website Should Have</strong> </a>- You should keep this list bookmarked and check when you are launching a new site or blog. It makes sure your site has everything  a proper site needs.</p>
<p><strong>2. <a href="http://smallfishbigmoney.com/2008/12/02/earn-a-living-online-using-one-of-five-proven-blogging-business-models/">5 Blogging Business Models</a></strong> - Here are 5 business models how you can make money online with blogging.</p>
<p><strong>3. <a href="http://css.dzone.com/news/upside-down-text-with-css">Upsite Down Text With CSS</a></strong> - Crazy but true, CSS has a possiblity to display normal HTML text up site down.</p>
<p><strong>4. Designers: <a href="http://justcreativedesign.com/2008/12/04/how-to-prepare-t-shorts-for-printing/">6 Tips to Prepare for T-shirt Printing</a></strong> <a href="http://acomment.net/utilizing-css-best-practices-making-a-great-blank-css-template-file-for-next-projects/580"></a> - If you are a designer out there that would like to design and print a T-shirt one day, here&#8217;s how you can prepare your design for that day.</p>
<p><strong>5.<a href="http://northxeast.com/blogging/tomorrows-star-bloggers-talk-about-blogging/"> Tomorrow&#8217;s Star-bloggers talk about Blogging</a></strong> - Read some interesting and small interviews about the rising stars of blogging.</p>
<p><strong>6. <a href="http://www.smashingmagazine.com/2008/12/02/10-useful-rss-hacks-for-wordpress/">10 Usefull RSS tricks</a></strong> - RSS is simple yet extremely powerful. This article gives you some interesting tricks you can pull of with RSS.</p>
<p><strong>7. <a href="http://www.pearsonified.com/2008/05/how-to-use-wordpress-functions.php">How to Use Functions.php File</a></strong> - The functions.php file in Wordpress themes can get lots of extra functionality to your theme. Be sure to read this if you want to develop a new Wordpress theme.</p>
<p>That&#8217;s it for today. Many interesting articles have been explored and I hope next time to give you another number of important and interesting articles!</p>
<p>See you around. <a href="http://www.twitter.com/divitodesign">Maybe on Twitter? </a></p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=AgyJO"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=AgyJO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/474724301" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/12/interesting-articles-14/feed/</wfw:commentRss>
		</item>
		<item>
		<title>9 Tips to Smaller &amp; Optimized CSS Files</title>
		<link>http://www.divitodesign.com/2008/11/9-tips-smaller-optimized-css-files/</link>
		<comments>http://www.divitodesign.com/2008/11/9-tips-smaller-optimized-css-files/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 15:55:18 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1254</guid>
		<description><![CDATA[<p>Because CSS files are loaded from inside the &#60;head&#62; tags, every visitor download these files. We optimize images and PHP files, but CSS files are... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>Because CSS files are loaded from inside the &lt;head&gt; tags, every visitor download these files. We optimize images and PHP files, but CSS files are often overlooked. We should though and that&#8217;s what we will do today.</p>
<p>We can use <a href="http://www.divitodesign.com/2008/06/css-compressors/">CSS optimizers</a> to make your CSS file smaller and that works great. However, I feel that if you use any of these tips WHILE you are writing CSS codes, your productivity and skill will improve.</p>
<p>Optimizing your CSS file is also necessary to save bandwidth and to have a good loading time of your page.</p>
<h2>Tips for optimizing your CSS writing style</h2>
<h3>1. Comments</h3>
<p>Comments are especially helpful when writing CSS and your fellow workers need to understand what you are coding. There are different ways of how to add comments though. You can use this:</p>
<pre class="css"><span class="cssComment">/*-------------------*/</span>
<span class="cssComment">/*-----Comment-------*/</span>
<span class="cssComment">/*-------------------*/</span></pre>
<p>While you can use this too:</p>
<pre class="css"><span class="cssComment">/*Comment*/</span></pre>
<p>That saves, say 20 characters. Say we have 15 pieces of CSS comments, that saves 300 characters!</p>
<h3>2. Color Prefixes</h3>
<p>Color prefixes are defined in HEX codes. The HEX codes are 6 characters long, but in some cases, you can use 3 chars to define the same colors. Take a look at the example:</p>
<pre class="css"><span class="cssSelector">div{</span> <span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue"> #ffffff</span><span class="cssRest">;</span> <span class="cssSelector">}</span> <span class="cssComment">/* <span class="cssProperty">Shortcode</span><span class="cssRest">:</span><span class="cssValue"> color:#fff</span><span class="cssRest">;</span> */</span>
<span class="cssSelector">div{</span> <span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue"> #ff88ff</span><span class="cssRest">;</span> <span class="cssSelector">}</span> <span class="cssComment">/* <span class="cssProperty">Shortcode</span><span class="cssRest">:</span><span class="cssValue"> color:#f8f</span><span class="cssRest">;</span> */</span>
<span class="cssSelector">div{</span> <span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue"> #f8f7f2</span><span class="cssRest">;</span> <span class="cssSelector">}</span> <span class="cssComment">/* No shortcode possible */</span></pre>
<p><span id="more-1254"></span></p>
<h3>3. Combine Elements</h3>
<p>For example, if you have a couple elements like <em>h2, h3</em> and<em> h4</em> and all of them have the same properties. They just differ in one point. You can do this:</p>
<pre class="css"><span class="cssSelector">h2, h3, h4{</span>
<span class="cssProperty">padding</span><span class="cssRest">:</span><span class="cssValue">0 </span><span class="cssRest">;</span>
<span class="cssProperty">margin</span><span class="cssRest">:</span><span class="cssValue">0 </span><span class="cssRest">;</span>
<span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue">#333</span><span class="cssRest">;</span>
<span class="cssProperty">letter-spacing</span><span class="cssRest">:</span><span class="cssValue">.05em</span><span class="cssRest">;</span>
<span class="cssProperty">word-spacing</span><span class="cssRest">:</span><span class="cssValue">0.1em</span><span class="cssRest">;</span>
<span class="cssSelector">}</span>
<span class="cssSelector">h2{</span>	<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue">1.2em</span><span class="cssRest">;</span> <span class="cssSelector">}</span>
<span class="cssSelector">h3{</span>	<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue">1.1em</span><span class="cssRest">;</span> <span class="cssSelector">}</span>
<span class="cssSelector">h4{</span>	<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue">1em</span><span class="cssRest">;</span> <span class="cssSelector">}</span></pre>
<p>In this way, you have combined the elements and you have added an extra style declaration for the font-size property. This will save you lots of space when you get used to this.</p>
<h3>4. Leave Out Px/Em/% When Value = Zero</h3>
<p>The value <em>zero (0)</em> doesn&#8217;t require Px, Em or percentage. 0px is of course the same as 0em or 0%. So when you use the value 0 in your CSS layout (I guess you do!) than this trick will save you a couple chars every time.</p>
<pre class="css"><span class="cssSelector">div{</span> <span class="cssProperty">padding</span><span class="cssRest">:</span><span class="cssValue"> 0px 5px 5px 10px</span><span class="cssRest">;</span> <span class="cssSelector">}</span>
<span class="cssComment">/* <span class="cssProperty">Shortcode</span><span class="cssRest">:</span><span class="cssValue"> padding: 0 5px 5px 10px</span><span class="cssRest">;</span> */</span></pre>
<h3>5. Combine Properties</h3>
<p>Some properties as padding, margin and border have been split. For example, padding has padding-top, padding-right, padding-bottom and padding-left.</p>
<p>If the possibility exist, you should always combine these to one property because it make editing easier and it saves you space too.</p>
<pre class="css"><span class="cssSelector">div{</span>
<span class="cssProperty">padding-left</span><span class="cssRest">:</span><span class="cssValue">0 </span><span class="cssRest">;</span>
<span class="cssProperty">padding-top</span><span class="cssRest">:</span><span class="cssValue">50px</span><span class="cssRest">;</span>
<span class="cssProperty">padding-bottom</span><span class="cssRest">:</span><span class="cssValue">23px</span><span class="cssRest">;</span>
<span class="cssProperty">padding-right</span><span class="cssRest">:</span><span class="cssValue">4px</span><span class="cssRest">;</span> <span class="cssSelector">}</span>
<span class="cssComment">/* <span class="cssProperty">Shortcode</span><span class="cssRest">:</span><span class="cssValue"> padding:50px 4px 23px 0</span><span class="cssRest">;</span> */</span></pre>
<p>When the bottom/top values are the same and the left-right values as well, you can optimize it even more:</p>
<pre class="css"><span class="cssSelector">div{</span>
<span class="cssProperty">padding-top</span><span class="cssRest">:</span><span class="cssValue">5px</span><span class="cssRest">;</span>
<span class="cssProperty">padding-bottom</span><span class="cssRest">:</span><span class="cssValue">5px</span><span class="cssRest">;</span>
<span class="cssProperty">padding-left</span><span class="cssRest">:</span><span class="cssValue">0 </span><span class="cssRest">;</span>
<span class="cssProperty">padding-right</span><span class="cssRest">:</span><span class="cssValue">0px</span><span class="cssRest">;</span> <span class="cssSelector">}</span>
<span class="cssComment">/* <span class="cssProperty">Shortcode</span><span class="cssRest">:</span><span class="cssValue"> padding:5px 0</span><span class="cssRest">;</span> */</span></pre>
<h3>6. Choose Classes/ID&#8217;s wisely</h3>
<p>You should choose classes and ID&#8217;s that are short, easy to understand and descriptive.</p>
<p>Don&#8217;t choose something like &#8220;<em>HeaderMiddleLeftCategories</em>&#8221; if you can choose something like &#8220;<em>h-cats</em>&#8220;. That save you many chars along the way.</p>
<h3>7. Save Space by Cleaning up your CSS file</h3>
<p>When developing CSS websites you have idea&#8217;s that might or might not work. The idea&#8217;s that don&#8217;t work have been coded inside the CSS file, so they take up space and they are not necessary.</p>
<p>You should look through your CSS file for faults and unnecessary codes. This could save you lots of space.</p>
<h3>8. Delete Semicolons on the Last Property of a Selector</h3>
<p>One trick I found out via the use of a <a href="http://www.divitodesign.com/2008/06/css-compressors/">CSS compressor</a> is that you have the possibility to delete the semicolon of the last property of a Selector. Take a look at this example:</p>
<pre class="css"><span class="cssSelector">body{</span>
<span class="cssProperty">background</span><span class="cssRest">:</span><span class="cssValue">#ccc</span><span class="cssRest">;</span>
<span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue">#333</span><span class="cssRest">;</span> <span class="cssSelector">}</span>
<span class="cssComment">/* Shortcode: color:#333 */</span></pre>
<p>You see I deleted the latest semicolon? This isn&#8217;t a very large optimizing trick, but every char adds up to the sum. Say you have 50 selectors, you save 50 characters.</p>
<h3>9. Delete Unnecessary Spaces &amp; Enters</h3>
<p>You might want to delete all the spaces and enters, as they are all count as one character. The problem with deleting these characters is that your CSS file loose structure and is less readable.</p>
<p>I usually don&#8217;t use this point when optimizing my CSS file because of structure is more important to me. An option to consider is that you save 2 different files, one without enters and spaces (and you use that file on your site), and you keep a copy with the enters and spaces so that editing is still easy to do.</p>
<h2>Conclusion</h2>
<p>If you want a CSS file fully optimized, I suggest you use a <a href="http://www.divitodesign.com/2008/06/css-compressors/">CSS compressor</a>. You should teach yourself these tips, so you can write faster and code higher quality CSS.</p>
<p>Maybe you have other tips you use when optimizing your CSS file and I would love to hear them. <a href="#respond">You should add the tips to the comments!</a></p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=bWoJN"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=bWoJN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/470360902" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/11/9-tips-smaller-optimized-css-files/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Interesting Articles #13</title>
		<link>http://www.divitodesign.com/2008/11/interesting-articles-13/</link>
		<comments>http://www.divitodesign.com/2008/11/interesting-articles-13/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 22:36:30 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1238</guid>
		<description><![CDATA[<p>Interesting articles #13 for you, my dear readers. Today we have some typography inspiration, some link-love for upcoming Wordpress projects and ofcourse a couple other... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>Interesting articles #13 for you, my dear readers. Today we have some typography inspiration, some link-love for upcoming Wordpress projects and ofcourse a couple other stuff that grabbed my attention!</p>
<p><strong>1. <a href="http://www.noupe.com/fonts/typographic-madness-30-brilliant-piece-of-work.html">Typographic Madness - 30 brilliant pieces of work</a></strong> - Noupe has an eye for outstanding subjects for their articles. Enjoy some of the finest typographic designs.</p>
<p><strong>2. <a href="http://www.wpnexus.com/">Wordpress Nexus</a></strong> - Wordpress Nexus is a project by <a href="http://wphacks.com/">Wordpress Hacks</a> to provide users with a directory of everything Wordpress. There are also <a href="http://www.wpforums.com/">Wordpress forums</a> online just yet!</p>
<p><strong>3. SEO tip: <a href="http://blogsessive.com/blogging-tips/google-xml-sitemaps/">Google&#8217;s XML Sitemap</a></strong> - With Google sitemaps Google hit a good spot. Lots of people use it, why shouldn&#8217;t you?</p>
<p><strong>4. <a href="http://www.hongkiat.com/blog/50-greatest-computer-workstation-pcmac-setups/">50 Awesome Desktop Setups</a></strong> - This article really made me dream of an awesome Desktop setup. The Apple one&#8217;s are sexy? Anyone interested in sponsoring me? =)</p>
<p><strong>5. <a href="http://www.usabilitypost.com/2008/08/19/5-steps-for-the-perfect-tabbed-navigation-menu/">5 Steps to a Perfect Tabbed Navigation Menu</a></strong> - Usability Post show you exactly what to check for when developing a tabbed navigation menu.</p>
<h2>Want More?</h2>
<p>That&#8217;s it for now boys and girls. Are you interested in more <strong>interesting articles</strong>? Check out the community news section of <a href="http://www.divitodesign.com/">DivitoDesign</a>! It features some awesome articles that helped me along the way. You can subscribe to the community news feed for free, <a href="http://www.divitodesign.com/community-news.rss">by clicking here</a>.</p>
<p>Enjoy.</p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=0gYXN"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=0gYXN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/465530254" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/11/interesting-articles-13/feed/</wfw:commentRss>
		</item>
		<item>
		<title>404 Error Page: Features and Implantation</title>
		<link>http://www.divitodesign.com/2008/11/404-error-page-features-and-implantation/</link>
		<comments>http://www.divitodesign.com/2008/11/404-error-page-features-and-implantation/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 16:05:10 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[htaccess]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1227</guid>
		<description><![CDATA[<p>404 error pages are pages where people arrive after they have visited a  link that doesn&#8217;t exist. Various reasons could have caused this: the pages... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>404 error pages are pages where people arrive after they have visited a  link that doesn&#8217;t exist. Various reasons could have caused this: the pages could have been moved or deleted or it was just by accident. These people were interested in your site, but without a proper 404 error page, they might just move on.</p>
<p>Today we will talk about what features an error page should have and how we can implant the custom error page into our site or blog.</p>
<h2>The Features of a Good 404 Error Page</h2>
<p>The points that I will refer to have been working for me for a couple years.</p>
<ol>
<li><strong>Descriptive title</strong> - The user should know they are on a 404 page, so don&#8217;t forget to tell them they are.</li>
<li><strong>Sitemap</strong> - If you have a sitemap, be sure to include a link to your sitemap on your error page. People might browse through the sitemap to find the page they were looking for.<img class="alignright size-full wp-image-1230" title="stop" src="http://www.divitodesign.com/wp-content/uploads/2008/11/stop.jpg" alt="stop" width="157" height="182" /></li>
<li><strong>Mistyped URL</strong> - On an error page you could include the mistyped URL. This makes it easy for the visitor to scan the URL for typos or mistakes.</li>
<li><strong>Search box</strong> - A search box in the 404 page is a must. The possiblity exists that the information is still on the site and with a simple search, the user might find the information they need.</li>
<li><strong>Common links</strong> - Adding a couple links to some common pages (like the about/contact/articles pages) will increase the number of people that stay and want to read something on your site.</li>
<li><strong>Popular articles</strong> - Displaying a number of popular articles is good to push your best content forward. Visitors might get interested by these titles and click an article.</li>
<li><strong>Archives</strong> - It is also possible to add the list of archives to your error page. They might find the article they are looking for. If not, they might browse the archives to look for this article and then might stumble on some other interesting article.</li>
</ol>
<p><span id="more-1227"></span></p>
<h2 class="tag">Implant the 404 Error Page in Your Site</h2>
<p>Now you know what features your error page has, it is time to implant it on your site or blog. I will discuss two ways to get your error page up and running. One way is an error page in <strong>Wordpress</strong> and the other is via <strong>.htaccess</strong>.</p>
<h2>404 Error Page in Wordpress</h2>
<p>Wordpress has a build-in error message in their themes. This isn&#8217;t the best solution as it only give the user this explanation: <em>Error 404 - Not Found </em>.</p>
<h3>Editing the error text</h3>
<p>One thing you can do is editing that text in your Wordpress theme. You should locate index.php and find the error message. You can add more and better text to your likings.</p>
<h3>Creating an error page</h3>
<p>You could also create a custom error page. This solution is in my opinion the best for Wordpress. You should make a file called 404.php, add the custom text and messages, add it in your theme directory and your error page is ready to go.</p>
<h2>404 Error Page via htaccess</h2>
<p>If you don&#8217;t use a blogging tool like Wordpress you need a proper looking 404 error page too.</p>
<p>The first step we will take is opening (or creating if you don&#8217;t already have one) the <strong>.htaccess</strong> file. We need to add a couple extra lines to this file to tell our server to redirect the visitor to a custom 404 page once they have need it.</p>
<p>You should add these codes to the .htaccess file:</p>
<pre class="html">ErrorDocument 404 /404.html</pre>
<p>This tells the server your 404 document is located somewhere other than default. <strong>You now have the power to change the error page to your likings.</strong></p>
<h2>Other Error Pages</h2>
<p>You could also use this trick to build custom error messages for other apache errors. <a href="http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html">Take a look here for the status codes Apache uses</a>.</p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=o71VN"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=o71VN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/462933873" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/11/404-error-page-features-and-implantation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>DivitoDesign Made It To The Final 20!</title>
		<link>http://www.divitodesign.com/2008/11/divitodesign-made-it-to-the-final-20/</link>
		<comments>http://www.divitodesign.com/2008/11/divitodesign-made-it-to-the-final-20/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 09:40:15 +0000</pubDate>
		<dc:creator>Stefan Vervoort</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Promotion]]></category>

		<guid isPermaLink="false">http://www.divitodesign.com/?p=1221</guid>
		<description><![CDATA[<p>Remember <a href="http://www.divitodesign.com/2008/11/divitodesign-cool-wordpress-blog/">an article </a>in the past where I asked you to comment in order to qualify DivitoDesign for a competition called <a href="http://wpwebhost.com/blog/wordpress-coolest-blog-competition/">Coolest blog competition</a> by WPWebHost?</p>
<p></p>
<p>Thank... &#187;</p><p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
]]></description>
			<content:encoded><![CDATA[<p>Remember <a href="http://www.divitodesign.com/2008/11/divitodesign-cool-wordpress-blog/">an article </a>in the past where I asked you to comment in order to qualify DivitoDesign for a competition called <a href="http://wpwebhost.com/blog/wordpress-coolest-blog-competition/">Coolest blog competition</a> by WPWebHost?</p>
<p><img class="alignnone" title="coolest blog" src="http://wpwebhost.com/blog/wp-content/uploads/WordPressCoolestBlogCompetition_11E1C/blogccopy_3.jpg" alt="" width="447" height="268" /></p>
<p>Thank you for all your support and comments and because of that, <strong>DivitoDesign made it to the list of the 20 coolest blogs</strong>!</p>
<p>Now it is time for the public to vote and I would greatly appreciate it if <a href="http://wpwebhost.com/blog/vote-for-the-coolest-blog-powered-by-wordpress/#polls-2">you could vote for DivitoDesign</a> while you&#8217;re at it.</p>
<p>Thanks for the support boys and girls!</p>
<p><em>Article written by <a href="http://www.divitodesign.com">DivitoDesign</a></em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DivitoDesign?a=kPHfN"><img src="http://feeds.feedburner.com/~f/DivitoDesign?i=kPHfN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DivitoDesign/~4/459429371" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.divitodesign.com/2008/11/divitodesign-made-it-to-the-final-20/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
