<?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>somedirection &#187; Web Design</title>
	<atom:link href="http://somedirection.com/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://somedirection.com</link>
	<description></description>
	<lastBuildDate>Mon, 19 Jul 2010 21:21:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=6478</generator>
		<item>
		<title>A long time coming. New Somedirection Branding Revealed.</title>
		<link>http://somedirection.com/2008/09/08/a-long-time-coming-new-somedirection-branding-revealed/</link>
		<comments>http://somedirection.com/2008/09/08/a-long-time-coming-new-somedirection-branding-revealed/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 21:15:07 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Shameless Promotion]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[branding]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[somedirection]]></category>

		<guid isPermaLink="false">http://somedirection.com/?p=300</guid>
		<description><![CDATA[I&#8217;ve been playing around with branding for my site and my online persona for a long time. Seems that everything I came up with on my own wasn&#8217;t up to snuff. Eventually I got a good idea (it took years) that would be loud, recognizable, and sent the proper message. Luckily I have an awesome [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with branding for my site and my online persona for a long time. Seems that everything I came up with on my own wasn&#8217;t up to snuff. Eventually I got a good idea (it took years) that would be loud, recognizable, and sent the proper message.</p>

<p>Luckily I have an awesome sister who works in design and is good with Illustrator &#8211; which I am definitely not. Thanks to my sister Ryanne, I was able to go from a concept:</p>

<p><img class="pic" src='http://somedirection.com/wp-content/uploads/2008/09/sd_sketch.png' alt='Somedirection Logo Sketch' class='aligncenter' /></p>

<p>To the final design:</p>

<p><img src='http://somedirection.com/wp-content/uploads/2008/09/sd_avatar.png' alt='Somedirection Logo' class='aligncenter' /></p>

<p>She finally helped me get it right. All that&#8217;s left is to finally get my blog design in order. It&#8217;s due for a refresh.
Let me know what you think. </p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2008/09/08/a-long-time-coming-new-somedirection-branding-revealed/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Debugging Internet Explorer  CSS &#8211; My Methods</title>
		<link>http://somedirection.com/2008/03/22/debugging-internet-explorer-css-my-methods/</link>
		<comments>http://somedirection.com/2008/03/22/debugging-internet-explorer-css-my-methods/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 22:27:47 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Agile Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://somedirection.com/2008/03/22/debugging-internet-explorer-css-my-methods/</guid>
		<description><![CDATA[I recently spent the day debugging Internet Explorer. I save it for the absolute last step in front end development before pushing a site live. I want to avoid Explorer as much as possible. I figured my process would be worth sharing. This is my setup. MacBook running Firefox with the Web Developer Plugin and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/somedirection/2342051020/" title="How I Debug by somedirection, on Flickr"><img class="pic" src="http://farm4.static.flickr.com/3247/2342051020_8d3519fb22.jpg" width="500" height="375" alt="How I Debug" /></a></p>

<p>I recently spent the day debugging Internet Explorer. I save it for the absolute last step in front end development before pushing a site live. I want to avoid Explorer as much as possible.</p>

<p>I figured my process would be worth sharing. This is my setup. </p>

<ol>
<li>MacBook running Firefox with the Web Developer Plugin and Firebug plugins installed.</li>
<li>Old Toshiba Laptop 1.8ghz barebones Windows XP installation with IE6</li>
<li>Parallels installed on the MacBook with IE7 on Windows XP SP2</li>
</ol>

<p>With this setup I can test for any modern browser with any kind of significant market share.</p>

<ul>
<li>Firefox Mac</li>
<li>Firefox Win</li>
<li>IE 6 + 7 (soon to be 8 as well)</li>
<li>Camino</li>
<li>Safari</li>
</ul>

<p>Debugging IE issues is probably the most painful thing about my job, but one that&#8217;s made a little bit easier because of my approach so I thought it&#8217;d be useful to share.</p>

<p>I develop 9-5 in Firefox so any rendering bugs usually come to my attention right away and I&#8217;ll fix them immediately. Camino is based on the same Gecko rendering engine so I don&#8217;t have to worry about anomalies there. Safari does a good job rendering everything and my colleagues use it as their day to day browser so we usually catch any rendering bugs that way.</p>

<p>Then it comes down to IE debugging. I only concern myself with IE6 and above, I can handle well for modern browsers, besides the market share of browsers that fall outside this range is really insignificant statistically. For small development teams it&#8217;s hardly worth the extra effort to pay attention to the long tail of browsers.</p>

<p>Looking at Google Analytics for a heavy traffic site that I work on:</p>

<p><strong>5.6m Visitors</strong> from 8/1/07 &#8211; 3/20/08 </p>

<p><img class="pic" src="http://somedirection.com/wp-content/uploads/2008/03/6mo-browsers.png" alt="6+mo-browsers.png" border="0" width="553" height="147" />&lt;br/>
<em>IE is still dominant &#8211; so testing for these browsers is essential.</em></p>

<p><img class="pic" src="http://somedirection.com/wp-content/uploads/2008/03/ie-last-6-mo.png" alt="ie-last-6+-mo.png" border="0" width="553" height="118" />&lt;br/>
<em>If we look at the last 6 months, IE7.0 and IE6.0 are neck and neck ~50/50, however:</em></p>

<p><img class="pic" src="http://somedirection.com/wp-content/uploads/2008/03/ie-last-3mo.png" alt="ie-last-3mo.png" border="0" width="555" height="120" />&lt;br/>
<em>In the first 3+ months of 2008 you can see that IE7 has taken a significant leap above IE6 in the market 61/39 and IE 5.5 has gone to a 0.12% market share to a meager 0.07% market share.</em></p>

<p>That leaves us only concerned with IE6 and IE7 (and hopefully upcoming IE8 will be a non factor). The best way to deal with CSS and IE is by leveraging something called <a href="http://www.quirksmode.org/css/condcom.html">conditional comments</a></p>

<p>Before conditional comments I relied on browser hacks to differentiate between browsers, but conditional comments are a lot easier and so much more effective. Currently I use these declarations:</p>

<div class='code_parent'><div class='code_child'><code><pre>&#60;!--[if IE 6]>
&#60;link rel="stylesheet" href="/stylesheets/ie6.css" type="text/css" />
&#60;![endif]-->
&#60;!--[if IE 7]>
&#60;link rel="stylesheet" href="/stylesheets/ie7.css" type="text/css" />
&#60;![endif]--></pre></code></div></div>

<p>I start with IE6 and clean up any rendering issues &#8211; then I move on to IE7, which invariably has fewer issues to deal with. Because IE does not have a handy dandy tool like <a href="http://getfirebug.com/">Firebug</a> to help me diagnose the problem this process usually involves a lot of trial and error. It&#8217;s a very iterative process and one that my <a href="/2007/05/27/agile-development-workflow-part-1-setup/">Agile Development Workflow</a> is well suited for.</p>

<p>One technique I&#8217;ve found to be indispensable is assigning various background colors to the markup that I&#8217;m trying to debug. Often this is all I need to target CSS rules run amok. Over time you can avoid generating certain CSS + HTML that will break IE altogether &#8211; and that&#8217;s what separates the experts from novices. </p>

<p>Was this helpful? How do you approach debugging CSS in IE? Share!</p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2008/03/22/debugging-internet-explorer-css-my-methods/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Victoria&#8217;s Secret Doesn&#8217;t Know The Right Way To Build A Website, Or Just Doesn&#8217;t Care</title>
		<link>http://somedirection.com/2008/02/23/victorias-secret-doesnt-know-the-right-way-to-build-a-website-or-just-doesnt-care/</link>
		<comments>http://somedirection.com/2008/02/23/victorias-secret-doesnt-know-the-right-way-to-build-a-website-or-just-doesnt-care/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 23:05:10 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://somedirection.com/2008/02/23/victorias-secret-doesnt-know-the-right-way-to-build-a-website-or-just-doesnt-care/</guid>
		<description><![CDATA[I can&#8217;t help it, I&#8217;m a front end guy so as I peruse the web and I see something that sparks my interest I fire up Firebug, my go-to Firefox plugin to see the &#8220;meat and potatoes of a website&#8221;. Websites are like onions and I like to analyze the layers to get at the [...]]]></description>
			<content:encoded><![CDATA[<p><a class="right" href="http://victoriassecret.com"><img src='http://somedirection.com/wp-content/uploads/2008/02/vs.jpg' alt='VictoriasSecret.com' /></a>
I can&#8217;t help it, I&#8217;m a front end guy so as I peruse the web and I see something that sparks my interest I fire up Firebug, my go-to Firefox plugin to see the &#8220;meat and potatoes of a website&#8221;. Websites are like onions and I like to analyze the layers to get at the good stuff, deconstruct it, and understand it.</p>

<p>I work on <a href="http://yumdrop.com">Yumdrop.com</a>, a popular lingerie site. Often I&#8217;m out there looking to see what the competition is doing to see how we stack up and also evaluate how well we&#8217;re pushing the envelope in our particular niche. Victoria&#8217;s Secret is by far the leader in this industry as far as market share, but their website could&#8217;ve been built in 2002.</p>

<p>When I peeled back Giselle&#8217;s onion I was flabbergasted. I haven&#8217;t seen egregious CSS like this in a long time. As developers have embraced web standards over the years (something I have done from the start) and standards based practices have been understood and adopted, people have just gotten a better understanding of how it all comes together. You don&#8217;t see blatant misuse of CSS like this anymore.  Even basic knowledge of CSS inheritance could let them avoid this debacle.</p>

<p>On <a href="http://www2.victoriassecret.com/html/includes/globalstyles_normal.css">http://www2.victoriassecret.com/html/includes/globalstyles_normal.css </a>for example:
<pre style="font-size:10px">
.blacktext {color:#000000; font-family:Arial, Helvetica,sans-serif; font-size:10px; }
.blacktext2 {color:#000000; font-family:Arial, Helvetica,sans-serif; font-size:11px; font-weight:bold }
.blacktext3 {color:#000000; font-family:Arial, Helvetica,sans-serif; font-size:11px; }
.text2 {color:#333333; font-family:Arial, Helvetica,sans-serif; font-size:11px; text-decoration: none;}
.text3 {color:#333333; font : 10px/14px Arial, Helvetica, sans-serif; text-decoration: none;}
.textPink {color:#FF76A4; font-family:Arial, Helvetica,sans-serif; font-size:10px; }
.textPink11px {color:#FF76A4; font-family:Arial, Helvetica,sans-serif; font-size:11px; }
.textPinkBold {color:#FF76A4; font-family:Arial, Helvetica,sans-serif; font-weight:bold;font-size:11px; }
</pre></p>

<p>It goes on and on and makes me quite agitated <img src='http://somedirection.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>

<p>Turn off Javascript. They use it to write OUT their styling.</p>

<pre><script language="JavaScript">document.writeln("<link type='text/css' rel='stylesheet' href='" + appserver + "/html/includes/" + stylename + ".css'>");</script></pre>

<p><strong>No Javascript, No Styling, NO degradation</strong>. You end up with something like <strong><a href='http://somedirection.com/wp-content/uploads/2008/02/vs_nojs.png' title='Victorias Secret No Javascript'>THIS &raquo;</a></strong>. The complete header with site navigation and footer don&#8217;t even render, making the site pretty useless to navigate or use.</p>

<p>And as laughable as all this it keeps getting better!</p>

<p>The site navigation is 1 large image map! This is just not done in practice. How can screen readers access the content? How do visually impaired users shop?</p>

<p>Never mind degradation here, there are so many better ways to construct such navigation. Each time you visit a different department you must create a <em>whole</em> new image map image. What a waste of time. If your navigation changes,  you have to recreate all of the active department images all over again. With modern development techniques this just makes no sense.</p>

<p><img src="http://www2.victoriassecret.com/images/common/navbar/navbar.gif?" />
<img src="http://www2.victoriassecret.com/images/common/navbar/navbar_bra.gif" />
<img src="http://www2.victoriassecret.com/images/common/navbar/navbar_slp.gif" /></p>

<p>There&#8217;s just too much to point out so I&#8217;ll just list the rest I briefly spotted in the 5 minutes I looked..</p>

<ul>
<li>They&#8217;re using a centered div w/ css to center the containing wrapper, but they use tables for layout. </li>
<li>Extraneous use of classes all over the markup because they don&#8217;t understand inheritance.</li>
<li><a href="http://validator.w3.org/check?verbose=1&#038;uri=http%3A%2F%2Fwww.victoriassecret.com%2F">Validate much</a>? Of course not, are you even surprised though?</li>
</ul>

<p>As a web developer, you think that &#8220;doing things the right way&#8221; is part of building a successful web presence, but as time goes on I&#8217;m beginning to realize that it really <strong>doesn&#8217;t</strong> matter as much as we often think. I wonder if Victoria&#8217;s Secret developers know that it is not developed with the best practices, I wonder if they care. I wonder if they have an internal team or whether they just outsourced it to a very misguided web shop.</p>

<p>If anyone at VS wants me to scramble their onion, contact me. You deserve better.</p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2008/02/23/victorias-secret-doesnt-know-the-right-way-to-build-a-website-or-just-doesnt-care/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web Design Survey 2007 Results</title>
		<link>http://somedirection.com/2007/10/18/web-design-survey-2007-results/</link>
		<comments>http://somedirection.com/2007/10/18/web-design-survey-2007-results/#comments</comments>
		<pubDate>Thu, 18 Oct 2007 20:13:56 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://somedirection.com/2007/10/18/web-design-survey-2007-results/</guid>
		<description><![CDATA[Back in April I wrote a post to encouraged visitors to take the Web Design Survey. The results are in! And it&#8217;s looking fairly interesting. For the first time, I feel like I have some perspective.]]></description>
			<content:encoded><![CDATA[<p>Back in April I wrote a post to encouraged visitors to take the <a href="http://alistapart.com">Web Design Survey</a>.</p>

<p><a href="http://alistapart.com/articles/2007surveyresults"><img src="http://alistapart.com/d/2007surveyresults/survey-logo.gif" alt="Web Design Survey" /></a> </p>

<p>The results are in! And it&#8217;s looking fairly interesting. For the first time, I feel like I have some perspective. </p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2007/10/18/web-design-survey-2007-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fright Catalog.com, 2007 Edition</title>
		<link>http://somedirection.com/2007/07/19/fright-catalogcom-2007-edition/</link>
		<comments>http://somedirection.com/2007/07/19/fright-catalogcom-2007-edition/#comments</comments>
		<pubDate>Fri, 20 Jul 2007 02:44:21 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://somedirection.com/2007/07/19/fright-catalogcom-2007-edition/</guid>
		<description><![CDATA[At my previous position I worked for Fright Catalog out of Worcester, MA. It was a great position and one I shared with my home grown team of friends and colleagues (Dan, Bill, and Joe). In retrospect, we had the perfect balance of work &#38; fun &#8211; learning &#38; productivity. But like anything in life, [...]]]></description>
			<content:encoded><![CDATA[<p>At my previous position I worked for Fright Catalog out of Worcester, MA. It was a great position and one I shared with my home grown team of friends and colleagues (<a href="http://enlightsolutions.com">Dan</a>, <a href="http://billrowell.com">Bill</a>, and <a href="http://crankhouse.com">Joe</a>). In retrospect, we had the perfect balance of work &amp; fun &#8211; learning &amp; productivity.  But like anything in life, times change. The pinnacle of our achievement, our e-commerce engine codenamed <em>Metroid</em>, is still being improved and growing to this day. After years in development, it&#8217;s a very robust application and one that has been re-factored with ease to power <a href="http://www.yumdrop.com">Yum Drop</a> and forth-coming <a href="http://importcostumes.com">Import Costumes</a> (I&#8217;m sure there will be others soon!).</p>

<p>Although I no longer work there full-time, I am still fairly involved with all developments, and I&#8217;m proud to unveil the 2007 Edition of <a href="http://frightcatalog.com">FrightCatalog.com</a>. Let me know what you think!</p>

<p><a href="http://frightcatalog.com"><img class="pic" src='http://somedirection.com/wp-content/uploads/2007/07/fc_2007.jpg' alt='FC 2007' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2007/07/19/fright-catalogcom-2007-edition/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quibblo Realign Teaser</title>
		<link>http://somedirection.com/2007/06/27/quibblo-realign-teaser/</link>
		<comments>http://somedirection.com/2007/06/27/quibblo-realign-teaser/#comments</comments>
		<pubDate>Thu, 28 Jun 2007 03:11:19 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://somedirection.com/2007/06/27/quibblo-realign-teaser/</guid>
		<description><![CDATA[Quibblo began as a freelance project and has become a full-time position. I&#8217;ve spent the last month cleaning up a lot of the structure, markup and design that was first developed in haste to get Quibblo ready for launch. Here is a teaser, be sure to drop by the site this Friday Monday to see [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://quibblo.com">Quibblo</a> began as a freelance project and has become a full-time position. I&#8217;ve spent the last month cleaning up a lot of the structure, markup and design that was first developed in haste to get Quibblo ready for launch. Here is a teaser, be sure to drop by the site this <span class="strike">Friday</span> Monday to see the result. It feels good to finally get things as they should be, but then again a website is never done.</p>

<p><a href='http://quibblo.com' title='Quibblo Realign Preview'><img class="pic" src='http://somedirection.com/wp-content/uploads/2007/06/quibblo_preview.jpg' alt='Quibblo Realign Preview' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2007/06/27/quibblo-realign-teaser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Easy-Bake CSS Background Transparency</title>
		<link>http://somedirection.com/2007/06/27/easy-bake-css-background-transparency/</link>
		<comments>http://somedirection.com/2007/06/27/easy-bake-css-background-transparency/#comments</comments>
		<pubDate>Thu, 28 Jun 2007 02:34:15 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://somedirection.com/2007/06/27/easy-bake-css-background-transparency/</guid>
		<description><![CDATA[Whenever I feel the need to use transparency it always seems like I am dealing with tones. Make this a little darker, give this a bit softer tone. Couple this with the fact that I&#8217;m always looking for easy and reusable ways of doing things and you have Easy-Bake Background Transparency. It&#8217;s nothing fancy really [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever I feel the need to use transparency it always seems like I am dealing with tones. Make this a little darker, give this a bit softer tone. Couple this with the fact that I&#8217;m always looking for <strong>easy</strong> and <strong>reusable</strong> ways of doing things and you have <strong>Easy-Bake Background Transparency</strong>. </p>

<p>It&#8217;s nothing fancy really just a collection of white and black PNG&#8217;s that are grouped by their transparency 10% &#8211; 90%. Saves fellow designers the 15 minutes it took to create all the images! (background color added for display purposes)
<div id="easy_bake">
<h3>White</h3>
<div class="left percent">10%</div><div class="trans_box w10" style="background: #00f;"></div><div class="trans_box w20"></div><div class="trans_box w30"></div><div class="trans_box w40"></div><div class="trans_box w50"></div><div class="trans_box w60"></div><div class="trans_box w70"></div>
<div class="trans_box w80"></div><div class="trans_box w90"></div><div class="left percent">90%</div>
<br class="clear"/>
<h3>Black</h3>
<div class="left percent">10%</div><div class="trans_box b10"></div><div class="trans_box b20"></div><div class="trans_box b30"></div><div class="trans_box b40"></div><div class="trans_box b50"></div><div class="trans_box b60"></div><div class="trans_box b70"></div><div class="trans_box b80"></div><div class="trans_box b90"></div><div class="left percent">90%</div>
</div><br class="clear"/></p>

<p>PNG&#8217;s are 5x5px that should be tiled. 
Example of use:</p>

<pre>
.w10 {
background: url("/images/w10.png") repeat;
}
</pre>

<p><strong>Download</strong> &raquo; <a href='http://somedirection.com/wp-content/uploads/2007/06/easy-bake-transparents.zip' title='Easy-Bake Transparents Set'>Easy-Bake Transparents Set</a></p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2007/06/27/easy-bake-css-background-transparency/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using jQuery to avoid classititis in IE6</title>
		<link>http://somedirection.com/2007/06/10/using-jquery-to-avoid-classitits-in-ie6/</link>
		<comments>http://somedirection.com/2007/06/10/using-jquery-to-avoid-classitits-in-ie6/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 15:41:31 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://somedirection.com/2007/06/10/using-jquery-to-avoid-classitits-in-ie6/</guid>
		<description><![CDATA[IE6 lacks CSS 2 support and as a CSS guy &#8211; this generally sucks to deal with. One particular pain point is when stylizing form elements. Sometimes overlooked &#8211; it has become one of the first things I usually attack when developing a website. I canâ€™t stand unstylized forms. I tend to leave buttons alone, [...]]]></description>
			<content:encoded><![CDATA[<p>IE6 lacks CSS 2 support and as a CSS guy &#8211; this generally sucks to deal with. One particular pain point is when stylizing form elements. Sometimes overlooked &#8211; it has become one of the first things I usually attack when developing a website. I canâ€™t stand unstylized forms. I tend to leave buttons alone, but slapping a 1px border on input,textarea and select elements can work wonders. But due to lack of CSS 2 support in IE6 there is no easy way to differentiate html elements like these:
  <div class='code_parent'><div class='code_child'><code><pre>&#60;input type="text"/>
&#60;input type="submit" value="submit"/></pre></code></div></div> </p>

<p>This leads to a term <a href="http://zeldman.com">Jeffery Zeldman</a> coined as â€œclassititisâ€? &#8211; the extraneous use of class assignments in markup. To deal with IE6  I previously would create markup such as this: 
<div class='code_parent'><div class='code_child'><code><pre>&#60;input class="text" type="text" />
&#60;input class="submit"  type="submit" value="submit" /></pre></code></div></div></p>

<p>to give myself the proper style hooks required to differentiate the elements.</p>

<p>With browsers that support CSS2 &#8211; Firefox, IE7, Safari, etc (basically every one nowadays except IE6) it is easy to use proper CSS2 selectors<br />
<pre>
input[type=text] { /* styles <em>/}
input[type=submit] { /</em> styles */}
</pre></p>

<p>However, leveraging jQuery and some simple rules can cleanup our markup and avoid classititis. We can even add in sharp focus/blur based styling behaviors for an enhanced prettification of otherwise boring form elements.</p>

<h3>Enter jQuery</h3>

<p><p>I am a huge fan of <a href="http://jquery.com">jQuery</a>. I&#8217;ve used quite a javascript frameworks but none of them <em>stuck</em> more than jQuery. Between the thriving community, excellent documentation, and plethora of <a href="http://jquery.com/plugins/">plugins</a> &#8211; you canâ€™t go wrong.</p></p>

<p>I frequently reuse code snippets of useful functions and css rules that I&#8217;ve accrued over time (more on my CSS toolkit another time). Here is code that allows me to avoid the trap of classititis due to lack of CSS2 support in IE6:</p>

<pre>
$(document).ready(function() { 
        $("input[@type=password], input[@type=text]").addClass("text");

    $("input[@type=password], input[@type=text], textarea").focus(function() {
        $(this).addClass("focus"); 
                //focus class provides a hook to alert the user 
    });
    
    $("input[@type=password], input[@type=text], textarea").blur(function(){
        if ($(this).find(".focus")) {
            $(this).removeClass("focus");
        }
    });
});
</pre>

<p>input type=&#8221;text&#8221; <small>try typing in some text and taking focus off the input box</small>
<input type="text" /></p>

<p>textarea
<textarea>This is a textarea element with some content</textarea></p>

<p>CSS that will pull it all together

<pre>
input.text, textarea, select {
  color: #777;
  padding: 2px 5px;
  font-size: 110%;
  border: 1px solid #333;
  background: #fafafa;
}
.focus {
  background: #fff !important;
  color: #000 !important;
}
</pre>
</p>

<p><p>Be sure to check out <a href="http://www.456bereastreet.com/archive/200509/css_21_selectors_part_1/">456bereastreet</a> for an excellent article on CSS 2.1 selectors.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2007/06/10/using-jquery-to-avoid-classitits-in-ie6/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Quibblo.com Needs A Graphics Guru</title>
		<link>http://somedirection.com/2007/06/05/quibblocom-needs-a-graphics-guru/</link>
		<comments>http://somedirection.com/2007/06/05/quibblocom-needs-a-graphics-guru/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 16:53:08 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://somedirection.com/2007/06/05/quibblocom-needs-a-graphics-guru/</guid>
		<description><![CDATA[View the job post or contact me directly kbradshaw {at} pangeamedia.com]]></description>
			<content:encoded><![CDATA[<p><a href="http://freelanceswitch.com/jobs/jobs/71">View the job post</a> or contact me directly <strong>kbradshaw {at} pangeamedia.com</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2007/06/05/quibblocom-needs-a-graphics-guru/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Take The Web Design Survey 2007</title>
		<link>http://somedirection.com/2007/04/25/take-the-web-design-survey-2007/</link>
		<comments>http://somedirection.com/2007/04/25/take-the-web-design-survey-2007/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 04:34:18 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://somedirection.com/2007/04/25/take-the-web-design-survey-2007/</guid>
		<description><![CDATA[The guys @ ala are doing something long overdue. I&#8217;d like to see the results when they finish aggregating a decent amount of data. If you&#8217;re working in the web design industry take the survey!]]></description>
			<content:encoded><![CDATA[<p>The guys @ ala are doing something long overdue. I&#8217;d like to see the results when they finish aggregating a decent amount of data. If you&#8217;re working in the web design industry take the survey!</p>

<p><a href="http://alistapart.com/articles/webdesignsurvey"><img src="http://aneventapart.com/webdesignsurvey/templates/ala/images/i-took-the-2007-survey.gif" alt="i took the 2007 survey" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://somedirection.com/2007/04/25/take-the-web-design-survey-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
