<?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>Hale Interactive &#187; Web Development</title>
	<atom:link href="http://www.haleinteractive.com/category/blog/webdev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haleinteractive.com</link>
	<description>one developers brain dump on the world</description>
	<lastBuildDate>Thu, 27 May 2010 23:04:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Common CSS Mistakes</title>
		<link>http://www.haleinteractive.com/2009/07/common-css-mistakes/</link>
		<comments>http://www.haleinteractive.com/2009/07/common-css-mistakes/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 20:28:50 +0000</pubDate>
		<dc:creator>Jason Hale</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css organization]]></category>
		<category><![CDATA[make it right]]></category>
		<category><![CDATA[negative margins]]></category>
		<category><![CDATA[positioning]]></category>

		<guid isPermaLink="false">http://www.haleinteractive.com/?p=65</guid>
		<description><![CDATA[Here are a few common CSS mistakes I come across all the time. Yes these solutions might work when first developing in Firefox but these can cause major headaches when doing IE testing, debugging or making edits to the code in the future. 
Don&#8217;t over use negative margins
Yes there is a time and place for [...]]]></description>
			<content:encoded><![CDATA[<p>Here are a few common CSS mistakes I come across all the time. Yes these solutions might work when first developing in Firefox but these can cause major headaches when doing IE testing, debugging or making edits to the code in the future. </p>
<h3>Don&#8217;t over use negative margins</h3>
<p>Yes there is a time and place for negative margins. But if your find yourself using these on a daily basis then there&#8217;s probably and easier and better way to fix what you&#8217;re doing. Most likely a padding or margin on a parent element that can be adjusted. Use the <a href="http://css-tricks.com/the-css-box-model/">box model</a> properly, it makes debugging and editing the css later on much easier.</p>
<p><span id="more-65"></span></p>
<h3>Don&#8217;t position every element</h3>
<p>When trying to make a design pixel perfect I&#8217;ve seen developers relatively position every paragraph, link and heading in a div and change their top and left properties to line up with the flats. Not only is this a bad practice it is actually more work and causes more cross browser problems than adjusting padding and margins properly. Once again, the box model is your friend.</p>
<h3>Don&#8217;t float every element</h3>
<p>As with the positioning statement there&#8217;s rarely a time when floating every element is needed. Float only what&#8217;s needed and never declare a float globally. Ex:</p>
<p><code>#content div { float: left; }</code></p>
<p>This may be a quick fix when first starting a layout but what if you have other divs inside your #content that are not supposed to be floated. You&#8217;ll end up adding float:none for every div that shouldn&#8217;t be floated. The css above is also the perfect recipe for the <a href="http://www.positioniseverything.net/explorer/doubled-margin.html">IE6 double margin bug</a>.</p>
<h3>Don&#8217;t use !important</h3>
<p>If you&#8217;re using !important it&#8217;s usually because something else is wrong in your code and you&#8217;re not using the cascade properly. Remember that !important is also inherited so in order to override an !important value you&#8217;ll need to use another !important! So the next time you go to add !important to your css take a good look at your parent elements and fix your code properly.</p>
<h3>Group your css properly</h3>
<p>The most common reason people use !important is because their cascade isn&#8217;t working properly and they need to overwrite a value. By keeping your CSS organized properly and keeping the cascade in mind when writing your code you&#8217;ll soon be writing better code, faster and easier. The basics of keeping your css organized are to declare global elements at the top and then getting more and more specific further down your css. This is not a small concept and definitely deserves it&#8217;s own blog post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.haleinteractive.com/2009/07/common-css-mistakes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Virtual Servers in WAMP</title>
		<link>http://www.haleinteractive.com/2009/07/setting-up-virtual-servers-in-wamp/</link>
		<comments>http://www.haleinteractive.com/2009/07/setting-up-virtual-servers-in-wamp/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 21:38:36 +0000</pubDate>
		<dc:creator>Jason Hale</dc:creator>
				<category><![CDATA[WAMP/MAMP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.haleinteractive.com/?p=47</guid>
		<description><![CDATA[One tool I find indespensible in my job is virtual servers with WAMP. Virtual Servers allow you to run multiple projects at the same time on your localhost allowing you to quickly and easily change projects. Setting up Virtual Servers is easy:


Edit httpd.conf
This file is found in C:\wamp\bin\apache\Apache2.2.11\conf. Uncomment this line will include the apache [...]]]></description>
			<content:encoded><![CDATA[<p>One tool I find indespensible in my job is virtual servers with WAMP. Virtual Servers allow you to run multiple projects at the same time on your localhost allowing you to quickly and easily change projects. Setting up Virtual Servers is easy:</p>
<ol>
<li>
<h3>Edit httpd.conf</h3>
<p>This file is found in <em>C:\wamp\bin\apache\Apache2.2.11\conf</em>. Uncomment this line will include the apache virtual hosts setup file.</p>
<p><code>Include conf/extra/httpd-vhosts.conf</code></p>
<p>Search for &lt;Directory /&gt; in the httpd.conf file. The &#8220;default&#8221; settings here are really restricted so for a local dev setup you can change them to:</p>
<p><span id="more-47"></span><br />
<code>&lt;Directory /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Options FollowSymLinks<br />
&nbsp;&nbsp;&nbsp;&nbsp;AllowOverride None<br />
&nbsp;&nbsp;&nbsp;&nbsp;Order deny,allow<br />
&nbsp;&nbsp;&nbsp;&nbsp;Allow from all<br />
&lt;/Directory&gt;</code></p>
<p><strong>Security note:</strong> now doing this will open up your local server to be seen by everyone. This means that everyone in you office can ping your machine (good for testing). This also means if you&#8217;re a one man show or contract plugged directly into your modem (do people still do this) you&#8217;re opening your localhost via port 80 to the world.</p>
</li>
<li>
<h3>Edit httpd-vhosts.conf</h3>
<p>This file is found in <em>C:\wamp\bin\apache\Apache2.2.11\conf\extra</em>. Remove the example &lt;VirtualHost&gt; entries and add the following for each project.</p>
<p><code>&lt;VirtualHost *:80&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;DocumentRoot "C:\ProjectPath\"<br />
&nbsp;&nbsp;&nbsp;&nbsp;ServerName ProjectName<br />
&nbsp;&nbsp;&nbsp;&nbsp;ErrorLog "logs/ProjectName-error.log"<br />
&nbsp;&nbsp;&nbsp;&nbsp;CustomLog "logs/ProjectName-access.log" common<br />
&lt;/VirtualHost&gt;</code></p>
<p>In the above example DocumentRoot is the path to the root of your project, usually where the index file is. ServerName is what you&#8217;ll type in your browser to access the project. If you set this to &#8220;myProject&#8221; you&#8217;d access in the browser by visiting http://myProject. ErrorLog &#038; CustomLog are the error logs for each project, if you don&#8217;t include these lines all errors will be logged to the regular localhost error logs. I don&#8217;t use these often but keep them just in case.</p>
</li>
<li>
<h3>Edit hosts</h3>
<p>Your hosts file is found in <em>C:\WINDOWS\system32\drivers\etc</em>. For each project you added in step 2 add the following entry in to the hosts file where ProjectName is the same as the ServerName variable you set in the httpd-vhosts.conf file. This tells the browsers on your system to pass all calls from http://ProjectName to your localhost.</p>
<p><code>127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;ProjectName</code>
</li>
<li>
<h3>All Done</h3>
<p>Make sure all your files are saved, restart WAMP and test. That&#8217;s it! When ever you want to add another project just start at step 2. Once you get used to the process you&#8217;ll be setting up a new project on your local dev environment in less than a minute.</p>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.haleinteractive.com/2009/07/setting-up-virtual-servers-in-wamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
