![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How far back do you have to go lose support for multiple classes: p class="class1 class2" I'm thinking that at this time that this is widely supported. Is that about right? |
|
I'd like to add this to my bag of tricks. On a related note, I was working on something that needed a "hack" for IE5 to keep from being broken. Has IE5 now joined the dustbin of browsers? |
#3
| |||
| |||
|
|
p class="class1 class2" I'm thinking that at this time that this is widely supported. Is that about right? |
#4
| |||
| |||
|
|
In article <13p4gb0bupe4v92 (AT) corp (DOT) supernews.com>, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: How far back do you have to go lose support for multiple classes: p class="class1 class2" I'm thinking that at this time that this is widely supported. Is that about right? Yes |
#5
| |||
| |||
|
|
Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> writes: dorayme wrote: In article <13p4gb0bupe4v92 (AT) corp (DOT) supernews.com>, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: How far back do you have to go lose support for multiple classes: p class="class1 class2" I'm thinking that at this time that this is widely supported. Is that about right? Yes As I recall IE6 doesn't handle .class1.class2 { ... } correctly--it matches all class1 elements whether or not they have class2 as well. Is that correct? If so, has IE7 fixed it? I'd check but I'm not in front of IE7 at the moment. Quick check suggests you are correct. .class1.class2 { ... } broken in IE6, fixed in IE7. In IE6, <p class="class1 class2"> will correctly be styled for both class1 and class2, but you can't write a CSS selector for "both class1 and class2" |
#6
| |||
| |||
|
|
In article <87prvtj0vk.fsf (AT) bsb (DOT) me.uk>, Ben Bacarisse <ben.usenet (AT) bsb (DOT) me.uk> wrote: Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> writes: dorayme wrote: In article <13p4gb0bupe4v92 (AT) corp (DOT) supernews.com>, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: How far back do you have to go lose support for multiple classes: p class="class1 class2" I'm thinking that at this time that this is widely supported. Is that about right? Yes As I recall IE6 doesn't handle .class1.class2 { ... } correctly--it matches all class1 elements whether or not they have class2 as well. Is that correct? If so, has IE7 fixed it? I'd check but I'm not in front of IE7 at the moment. Quick check suggests you are correct. .class1.class2 { ... } broken in IE6, fixed in IE7. In IE6, <p class="class1 class2"> will correctly be styled for both class1 and class2, but you can't write a CSS selector for "both class1 and class2" Yes. On rare occasions, I have found it practical to use a couple of classes in an element. But not because there was any forethought and provision made in the specification. In other words, one class might have been specified for colour and another (in a quite separate statement) for size; it comes up now and then that both are needed. |
|
specified in the css are two different questions. |
![]() |
| Thread Tools | |
| Display Modes | |
| |