You are here: Re: CSS inheritence - Maybe Easy « HTML « IT news, forums, messages
Re: CSS inheritence - Maybe Easy

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация