theEclipse
Programmer
Does anybody know if there is a way to specify that one class will inherit the values of another?
ex:
That way, all elements with class foo or bar will have font family and size but only elems with bar will have left padding.
Robert Carpenter
"You and I have need of the strongest spell that can be found to wake us from the evil enchantment of worldliness." - C.S. Lewis (The Weight of Glory)
ex:
Code:
<style>
.foo {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
}
.bar {
superclass:foo;
padding-left:10px;
}
</style>
That way, all elements with class foo or bar will have font family and size but only elems with bar will have left padding.
Robert Carpenter
"You and I have need of the strongest spell that can be found to wake us from the evil enchantment of worldliness." - C.S. Lewis (The Weight of Glory)