You are here: Re: set a class to another class in a CSS stylesheet « HTML « IT news, forums, messages
Re: set a class to another class in a CSS stylesheet

Posted by Bernhard Sturm on 03/05/07 18:10

Ciaran wrote:
> Hi is it possible to set a class to another class in a stylesheet
> file? As circumstance would have it I need to do something like this:
>
> .class1{ color:#ccc;}
>
> .class2{ class:class1; width:200px;}
>
> It kind of goes agains the whole "cascading" idea so I'm not sure if
> its possible. if it is, can someone post the syntax?

why not:

..class1, .class2 { color:#ccc;}

..class2{width:200px;}

should do the trick...


--
www.daszeichen.ch
remove nixspam to reply

 

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

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