SolutionSet Blog

Tuesday, Feb 19, 2008 at 2:42 pm | 0 Comments

SolutionSet, the company I contract for, has recently started a company blog. I've recently written my first post over there, detailing the Internet Explorer ID-Class bug. I recommended checking out the article, as well as the entire blog, as there is a lot of in-house talent at SolutionSet. Once more of our developers start writing there, the blog could turn into a very good read...

Recent Discussion

Victor on “Multiple Classes in IE”:

Oww that pretty neat. pretty useful for on the fly class changes and some nice ajax effects can be done with this

Prestaul on “Multiple Classes in IE”:

Mark - IE6 does NOT support chained class selectors. Your example was flawed because your classes specified style changes that are exclusive. (i.e. background changed background color and border changed border style, but neither effected the other)

If you chain classes in a selector IE6 ONLY RECOGNIZES THE LAST ONE. This means that in IE6 this:

div {
color: green;
margin: 10px;
background-color:maroon
}

div.border {
border: solid 1px black;
}
div.background {
background-color: black;
}

div.background.border {
background-color: yellow;
}

is equivalent to:

div {
color: green;
margin: 10px;
background-color:maroon
}

div.border {
border: solid 1px black;
}
div.background {
background-color: black;
}

div.border {
background-color: yellow;
}

Test it and see if I'm right on that.

Or, try this:

div.background {
background-color: black;
}

div.border.background {
background-color: yellow;
}

and see if you can get a div with class="background" to show up with a black background in IE6... You can't.

Still Fresh

SolutionSet Blog 0 comments 02/19/2008
Controlling Resizable Text Fields in Safari 1 comments 06/20/2007
Multiple Classes in IE 25 comments 06/04/2007
What I've Been Doing 8 comments 05/25/2007
Why I've Not Been Blogging Lately 0 comments 08/04/2006