HighDots Forums  

support level for multiple classes

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss support level for multiple classes in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default support level for multiple classes - 01-19-2008 , 12:28 PM






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?

Jeff

Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: support level for multiple classes - 01-19-2008 , 12:55 PM






In article <13p4gb0bupe4v92 (AT) corp (DOT) supernews.com>,
Jeff <jeff (AT) spam_me_not (DOT) com> wrote:

Quote:
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

Quote:
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?

Yes

I sometimes have a go at making things nice for MacIE5 but this
is just an entertainment for me. <g>

--
dorayme


Reply With Quote
  #3  
Old   
Andy Dingley
 
Posts: n/a

Default Re: support level for multiple classes - 01-21-2008 , 03:42 AM



On 19 Jan, 18:28, Jeff <jeff (AT) spam_me_not (DOT) com> wrote:

Quote:
p class="class1 class2"

I'm thinking that at this time that this is widely supported. Is that
about right?
Yes.

On IE5/Mac it also works, but the parser is fussy about surplus
whitespace: double spaces between classnames, trailing space after the
last classname etc.


Reply With Quote
  #4  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: support level for multiple classes - 01-22-2008 , 09:51 AM



dorayme wrote:
Quote:
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.


Reply With Quote
  #5  
Old   
dorayme
 
Posts: n/a

Default Re: support level for multiple classes - 01-22-2008 , 01:59 PM



In article <87prvtj0vk.fsf (AT) bsb (DOT) me.uk>,
Ben Bacarisse <ben.usenet (AT) bsb (DOT) me.uk> wrote:

Quote:
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. Using two classes and how they are
specified in the css are two different questions.

--
dorayme


Reply With Quote
  #6  
Old   
Jeff
 
Posts: n/a

Default Re: support level for multiple classes - 01-22-2008 , 02:33 PM



dorayme wrote:
Quote:
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.
I agree. Oddly it cuts down on the number of classes you need.
Simplifying stylesheets is a worthy ambition.

Jeff


Using two classes and how they are
Quote:
specified in the css are two different questions.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.