HighDots Forums  

Re: Subclassing a style class?

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


Discuss Re: Subclassing a style class? in the Cascading Style Sheets forum.



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

Default Re: Subclassing a style class? - 03-04-2008 , 11:41 AM






darius schrieb:
Quote:
is it possible to subclass a style class and gives it additional
properties or override some properties, e.g.

..foo {
.......
}

/* inherit all of foo and make font red */
..foored << .foo {
color: red;
}
No, but

.foo, .foored {
.......
}

.foored {
color: red;
}

while foored is hardly an appropriate class name.

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Reply With Quote
  #2  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: Subclassing a style class? - 03-05-2008 , 06:43 AM






On Tue, 04 Mar 2008 18:41:01 +0100, Johannes Koch <koch (AT) w3development (DOT) de>
wrote:

Quote:
darius schrieb:
is it possible to subclass a style class and gives it additional
properties or override some properties, e.g.
..foo {
.......
}
/* inherit all of foo and make font red */
..foored << .foo {
color: red;
}

No, but

.foo, .foored {
.......
}

.foored {
color: red;
}

while foored is hardly an appropriate class name.
Or just:
..foo{
.....
}
..foored{
color: red;
}
<tag class="foo foored"></tag>
--
Rik Wasmus


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.