With the following CSS:
* {
margin: 0;
padding: 0;
font-family:"Segoe UI";
font-variant: small-caps;
}
.red {
color: hsl(0, 100%, 50%);
font-size: 3em;
}
.orange {
color: hsl(30, 100%, 50%);
font-size: 3em;
}
.yellow {
color: hsl(60, 100%, 50%);
font-size: 3em;
}
.green {
color: hsl(120, 100%, 50%);
font-size: 3em;
}
.blue {
color: hsl(210, 100%, 50%);
font-size: 3em;
}
.indigo {
color: hsl(230, 100%, 50%);
font-size: 3em;
}
.violet {
color: hsl(274, 100%, 50%);
font-size: 3em;
}
...the attributes in the * selector work fine - they apply to all of the classes; however, if I move font-size there, the text grows to tyrannosauric proportions. You can see this by moving the font-size from the individual classes to the * class here: http://jsfiddle.net/NvTvr/8/
Why does this happen?
UPDATE
So this is the way to go, then:
* {
margin: 0;
padding: 0;
font-family:"Segoe UI";
font-variant: small-caps;
font-size: 48px;
}
.red {
color: hsl(0, 100%, 50%);
}
...etc. (no font-size specified within the color classes); as seen in http://jsfiddle.net/NvTvr/10/