Posted by danrumney on 08/21/06 16:39
dfloss wrote:
> Is it possible to subclass a css element, then modify it?
>
> For example, given this definition:
>
> TABLE.bordered {border-left: 1px solid; border-top: 1px solid;
> border-bottom: 1px solid; border-right: 1px solid; border-color: #000}
>
> ...can you create a style based on it using shorthand (which in this
> case would have no top border)?
>
> .bordered2.bordered {border-top: none}
Yes
See:
http://www.w3.org/TR/CSS21/selector.html#class-html
Dan Rumney
Navigation:
[Reply to this message]
|