- From: Manos M. Batsis <manosb@profile.gr>
- Date: Thu, 11 Jan 2001 13:57:03 +0200
- To: <www-style@w3.org>
 I think the ability of doing the following would bring css coding into a different level.
Lets say i define a couple of classes as:
.templateOne{
background: #f3f3f3;
color:#ff0000;
text-align:right;
}
.templateOne{
background-image:url(myImage.gif);
border:1px solid #000000;
}
Now, to use these as templates in a new class i would do this:
.newclass{
templates:.templateOne, .templateTwo;
border:2px solid #ff0000;
}
Of course the attributes defined in .newclass supersedes the template ones.
One other useful function would be importing templates from a different .css file like:
.newclass{
templates:url(style2.css, .templateOne, .templateTwo) .template;
border:2px solid #ff0000;
}
where template lies in the same stylesheet as .newclass.
Just a thought... please do give some comments :-)
Manos
Received on Thursday, 11 January 2001 08:34:07 UTC