Is there a way to define a CSS class that inherits the attributes of
another (parent) class?

Currently, I have:
.outset
{
        border-left: 1px #b2b2b2 solid;
        border-top: 1px #b2b2b2 solid;
        border-right: 1px black solid;
        border-bottom: 1px black solid;
        
}

.closeBar
{
        padding: 2px 2px 3px 4px;
        font-weight: bold;
        background-color: #B5DFC3;
        height: 18px;
}

I'd like to have .closeBar inherit the attributes from .outset and use
.outset for multiple inhertance (i.e., one parent; multiple children)
AND avoid having to include .outset (ex. class="closeBar outset") in
my HTML.

Does CSS inheritance also work in this fashion?  I want to say I've
seen something like this before using '>' or something between the
parent and child class, but I'm failing to find any examples at the
moment.

Thanks for reading.
Eric P.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to