Is it possible to create a class that is simply one or more other classes with added attribures.
Eg.
If I had the following classes in a generic style sheet:
and then on a particular HTML page I wanted a class that combined the above classes and made the font size 20px, I know I COULD do the following:
but I would prefer to create a new class something along the lines of:
So, is this possible, and if so what is the syntax.
Thanks in advance.
Eg.
If I had the following classes in a generic style sheet:
Code:
.bgcBlack { background-color: #000000; }
.fgcWhite { color: #FFFFFF; }
.ffMonospace { font-family: monospace; }
Code:
<span class="bcgBlack fgcWhite ffMonospace" style="font-size:20px;">
this is the text
</span>
Code:
.newClass {bcgBlack;fgcWhite;ffMonospace;font-size:20px;}
So, is this possible, and if so what is the syntax.
Thanks in advance.