Pin Bottle Boston & Tucson Website Design
Web Design, SEO and sometimes more

Google Reader or Homepage  Add to My Yahoo!  Add to Technorati Favorites!   

Monday, December 18, 2006

Conditional Statements

I designed my first site using 100% CSS recently and I have to say I was not very impressed with the lack of browser support from Internet Explorer. In testing, the latest versions of Netscape, Firefox, Safari and Opera all produced the results I was looking for but Explorer wasn’t very cooperative. I admit that IE7 wasn’t that bad, but why couldn’t they just get it right this time around like the other browsers? Lucky for me, conditional statements came in handy.

Conditional statements are something developed by Microsoft that allow Explorer to peak inside an additional CSS for alternate styles. For instance, if IE6 is rendering an element slightly differently than Firefox, a custom style sheet made specifically for IE6 will allow you to create an identical look in both browsers. There’s also an SEO advantage to using conditional statements. Previously, building different pages for different browsers was quite common. The method caused two problems with SEO though:

1) Duplicate pages means duplicate content
2) Using this method leaves the index page free of content, as it acts as a doorway page to the browser specific page.

Conditional statements eliminate the use of doorway pages and browser specific pages which is a great thing for SEO. But as far as designing is concerned, it would be great if Microsoft gets it right next time around.
Labels pt. 2 - Are you in the Game? - Googleisms - Labels and Duplicate Content - Firefox Extentions - Yahoo Mystery - Did Google Read my Last Blog Post? - Growing Tired - The Age of LINKS - "Index(ing)" Your Preffered URL - September 2006 - October 2006 - November 2006 - December 2006 - January 2007 - February 2007 - April 2007 - June 2007 - July 2007 - July 2008 - September 2009 - Website Design History
Website Design Awards

Theme: Day Dream by Jim Whimpey. Get a free blog at WordPress.com.
Pin Bottle Boston Website Design 2007, All Rights Reserved - Site Map