Posted by Jonathan N. Little on 03/05/07 16:43
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?
No but your can use more than one class
..sample { color: #fff; background-color: #500; }
..wide { width: 1000px; }
..skinny { width: 100px; }
<div class="sample wide">A very wide block</div>
<div class="sample skinny">A very narrow block</div>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|