Posted by Jonathan N. Little on 09/25/06 15:45
freesoft_2000 wrote:
> Say I have a css class like:
>
> .foo {
> background-color: blue;
> width: 500px;
> }
>
> and I have another class:
>
> .central {
> margin-left: auto;
> margin-right: auto;
> }
>
> I want 'foo' to inherit the properties of 'central'.
>
> Is this possible to be done?
No inheritance in CSS but your can to this:
<ELEMENT class="foo central">...</ELEMENT>
then ELEMENT with have styling rules of 'foo' & 'central'
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|