webgyver — 2010-06-08T12:34:22-04:00 — #1
Does anyone know which web browsers (and which versions) do not support two classes for web page elements?
For example, does IE6 support:
<div class="mainText specialWidth">This is my content</div>
And are there any other web browser oddities that I should be aware of before using two classes?
Google-ing hasn't helped me much, so I was wondering whether one of you might be able to point to some browser-comparison chart or something.
ryanreese — 2010-06-08T17:57:06-04:00 — #2
All browsers will correctly read the second class unless you concentate them as followed
.oneclass.TwoClass (note how they are together)
IE6 is buggy with that and will only read the second class. If you need to combine classes like that, it's just best to create a unique ID
But AFAIK that's just basic CSS and every browser (even old) supports it
webgyver — 2010-06-08T18:02:19-04:00 — #3
Thanks, that's good to know.
webgyver — 2010-06-08T13:05:25-04:00 — #4
fendeanson: Thanks for the quick reply.
While I'm agreeing with you that all modern web browsers support two classes, I was trying to gauge how far back this practice is supported.
For example, IE4 and NN4 don't support two classes, and I admit, yes, those are archaic web browsers...but are there any other browsers/versions that might only interpret the second class, or neither one?
Simply put, is there any kind of documentation that explains a little more about the "two classes" practice in a variety of web browsers? I've searched through this forum and Google-d Eric Meyer to no avail.
galengidman — 2010-06-08T12:57:30-04:00 — #5
All browsers support multiple classes.