Custom Web Designs by Bay Web Design Firm MJS Web Solutions Building Websites That Can Be Found Contact Us | Our Company | Home
510.523.7312
MJS Web Solutions Blog
Thoughts :: Opinions :: Trends

Wednesday, August 12, 2009
IE6 Multiple Class Selector Hack

IE6 SucksA client’s new website was not displaying correcting in Internet Explorer 6 (Wow, what a surprise…not!). It look fine in every other browser.

Usually I create a separate ie6fix.css file and I’m done, but this problem was a doosey.

IE6 doesn’t recognize two classes for one element. For example: <a class="one two"></a>

I was trying everything to get the navigation rollover to work. It wasn’t until I found this post, by Bennett of Thunderguy.com.

Adding another class and separating the two with a hyphen works. Unbelievable! What a hack.

Like this: <a class="one two one-two"></a>

He saved me more agonizing hours of pain. Thanks Bennett and kudos to you.

Now I’m here to help share this hack with everyone else, but the biggest help I, as a webmaster, can give is if everyone stopped using IE6 and upgraded. Microsoft is now on version 8. There is no good reason to keep using this antiquated browser that doesn’t conform to the new standards of the internet.

Photo credit from IE Sucks

Posted by: Michael Swartz at 5:16 pm

Comments: 1 Comment | Filed under: HTML, Web Design

1 Comment Add your own

  1. This Javascript library available from Google solved this problem, as well as many others with IE6, for me:

    http://code.google.com/p/ie7-js/

    Posted on: February 2nd, 2012 at 1:46 pm

Leave a Comment

Required
Required, hidden
Comment moderation is in use. Please do not submit your comment twice -- it will appear shortly.

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Site Map
Alameda Chamber of Commerce Member
West Alameda Business Association Member (WABA)
© Copyright 2012 MJS Web Solutions Blog. All rights reserved.
Powered by Westhost and WordPress.
Log in