Hi,
I would like to be able to create a CSS class that has all the same
property values as another class but additional ones too. Instead of
having to rewrite the same property values again, can I simply request
that the second class inherits all the values from the first one and
then only have to write the additional properties. For example:
..fancyTable {
border-top: 1px solid #000;
border-right: 1px solid #000;
}
..fancyTable td {
border-bottom: 1px solid #000;
border-left: 1px solid #000;
}
..fancyTableWit hGreyBg {
background: #eee;
}
Is there any way that I can allow fancyTableWithG reyBg to inherit the
border properties (or any others that would have been declared) from
fancyTable?
As you can see, I have also set properties for <td> within
fancyTableWithG reyBg. Will this be passed also to fancyTableWithG reyBg?
If this method is supported, how well is it supported between browsers?
Cheers
Burnsy
I would like to be able to create a CSS class that has all the same
property values as another class but additional ones too. Instead of
having to rewrite the same property values again, can I simply request
that the second class inherits all the values from the first one and
then only have to write the additional properties. For example:
..fancyTable {
border-top: 1px solid #000;
border-right: 1px solid #000;
}
..fancyTable td {
border-bottom: 1px solid #000;
border-left: 1px solid #000;
}
..fancyTableWit hGreyBg {
background: #eee;
}
Is there any way that I can allow fancyTableWithG reyBg to inherit the
border properties (or any others that would have been declared) from
fancyTable?
As you can see, I have also set properties for <td> within
fancyTableWithG reyBg. Will this be passed also to fancyTableWithG reyBg?
If this method is supported, how well is it supported between browsers?
Cheers
Burnsy
Comment