css question

TechBoyJK

Lifer
Oct 17, 2002
16,699
60
91
Is there a better way to declar custom fonts than doing like such

style sheet

.bluesmall {font-family: verdana}
.bluesmall {color: blue}
.bluesmall {font-size: 10px}

/style sheet

content

<span class="bluesmall">example text</span>
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
you are doing it the right way by using a class name, except your css could be shorter
.bluesmall {font-family: verdana;
color: blue;
font-size: 10px;}
 

TechBoyJK

Lifer
Oct 17, 2002
16,699
60
91
Originally posted by: KB
you are doing it the right way by using a class name, except your css could be shorter
.bluesmall {font-family: verdana;
color: blue;
font-size: 10px;}

gotcha. I was just concerned that there was a "better practice" than just declaring the class and its attributes, then wrapping thext with <span class> </span>