This is my take on the situation
>From what I have read, this is what Scott wants.
.fontClass {font-family: verdana, arial; color: white;}
.tblClass {background: red;border: 1px solid black;}
Now all of the .fontClass attributes need to be also assigned to .tblClass.
The way I would do this is by doing this
.fontClass, .tblClass {font-family: verdana, arial; color: white;}
.tblClass {background: red;border: 1px solid black;}
This tells the style that both .fontClass and .tblClass both are verdana and
have white text, but .tblClass has a red background and a black border
If i did not want to explicity declare this globaly, I could do this
<style>
.style1{font-family:arial; color:green;}
.style2 {font-size:12px;}
</style>
<p class="style1 style2">sdfsdf</p>
This works under IE5+ and Netscape6+
Steve Onnis
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mark
Stanton
Sent: Thursday, February 27, 2003 4:58 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: CSS Inheritanceananannceers
.tblClass > .fontClass {}
I'm not sure that that is meant to work. I know
form > p {
styles..
}
is supposed to work. It means only apply this style to a paragraph INSIDE a
form tag NOT let p tags INHERIT the form tag style. But AFAIK the > stuff is
broken in most IE versions.
OK, just done some reading & testing.... the > is called the "child
selector" and its CCS2.
<style type="text/css">
form {
color:red;
}
p {
color:green;
}
form > p {
color:blue;
}
</style>
<form>form</form>
<p>p</p>
<form>form <p>p</p></form>
It works as I described in Opera & Moz but not in IE.
I don't think there is anyway to do what you want (relationships between
classes) and I think the CSS people have deliberately not put this in place.
Their logic is if x has some relationship to y then express it in html
structure rather than using classes.
Cheers
Mark
______________
Mark Stanton
Web Production
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
www.gruden.com
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/