This email is to be read subject to the disclaimer below.

Scott,

You can't do inheritance as in '.class1 extends .class2' like in OOP. What
you can do is to either have a .fontClass element somewhere further up in
the DOM of the document or give your HTML element two classes in the form
of <table class="fontClass tblClass">

Viktor Radnai
Web Developer, National E-Commerce, Ernst & Young
Direct:  +61 2 9248 4361



                                                                                       
                                             
                    "Scott Barnes"                                                     
                                             
                    <[EMAIL PROTECTED]>                  To:     "CFAussie Mailing 
List" <[EMAIL PROTECTED]>            
                    Sent by:                              cc:                          
                                             
                    [EMAIL PROTECTED]        Subject:     [cfaussie] Re: CSS 
Inheritanceananannceers                   
                    mon.com.au                                                         
                                             
                                                                                       
                                             
                    27/02/2003 04:38 PM                                                
                                             
                    Please respond to "CFAussie                                        
                                             
                    Mailing List"                                                      
                                             
                                                                                       
                                             
                                                                                       
                                             




like:

.fontClass {
    font-family: verdana, arial;
    color: white;
}

.tblClass {
    background: red;
    border: 1px solid black;
}


i want the fontclass's fonts to be inherited by the tblClass

i've tried

.tblClass > .fontClass {}

and it won't work ??

Scott


"Brian Gilbert" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> this what you mean Scott??
>
>
> #main {
> background: #FFFFFF;
> border: 1px solid #000000;
> }
>
>
> #main #menu {
> background: #CCCCFF;
> border-bottom: 1px dashed #000000;
> border-left: 1px dashed #000000;
> float: right;
> margin: 0px 0px 10px 10px;
> width: 150px;
> }
>
>
> Brian Gilbert
>
> Wesley College, Melbourne Australia
> Position:  Web Architect
> E-mail:     [EMAIL PROTECTED]
> Ph:          +61 (0)3 9881 5459
> Fx:           +61 (0)3 9802 0142
>
> Personal Website: http://www.realityloop.com/
>
> >>> [EMAIL PROTECTED] 02/27/03 04:13pm >>>
> HTF do you do CSS inheritance?
>
> ie i have parent class with all my font properties, and i want my
> specific
> "tblHeadingClass" to inherit the font properties?
>
> Someones got my green book (CSS bible) and i'm lost without it.
>
> (of course .Parent Child {} won'twork)
>
> Scott.
>
>
>
> ---
> 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/




--------------------
NOTICE - This communication contains information which is confidential and
the copyright of Ernst & Young or a third party.

If you are not the intended recipient of this communication please delete
and destroy all copies and telephone Ernst & Young on 1800 655 717
immediately. If you are the intended recipient of this communication you
should not copy, disclose  or distribute this communication without the
authority of Ernst & Young.

Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views of
Ernst & Young.

Except as required at law, Ernst & Young does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained nor
that the communication is free of errors, virus, interception or
interference.

Liability limited by the Accountants Scheme, approved under the
Professional Standards Act 1994 (NSW)
--------------------




---
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/

Reply via email to