Posted by dorayme on 11/26/34 11:55
In article <HYNDg.3133$r61.1117@text.news.blueyonder.co.uk>,
"David Smithz" <dave1900@blueyonder.co.uk> wrote:
> Hi there,
>
> I have my own CSS class, lets say example.
>
> .example { color: red}.
>
> And I want to define another class that has all the properties of the
> example class but also has it's own additional properties (therefore say I
> want class example 2 to inherit from example 1).
>
> Is this possible and if so what is the syntax?
>
> Thanks
..example1 {color:red}
..example2 {font-size:500%;}
<p class="example1">This should be red and normal in size</p>
<p class="example2">This should be just enormous in size</p>
<p class="example1 example2">This should red and enormous in
size</p>
--
dorayme
Navigation:
[Reply to this message]
|