Hello all,
Still learning CSS. AS I learn new things, I apply them, but it is a slow process.
Here is a piece of my CSS:
.a1 {
font : 16px Arial , Helvetica , Verdana , sans-serif;
color : rgb(0 , 0 , 0);}
.a2 {
font : bold 16px Arial , Helvetica , Verdana , sans-serif;
color : rgb(0 , 0 , 0);}
.a3{
font : 12px Arial , Helvetica , Verdana , sans-serif;
color : rgb(0 , 0 , 0);}
.a4{
font : bold 12px Arial , Helvetica , Verdana , sans-serif;
color : rgb(0 , 0 , 0);}
The way I am using this is a1 is the code for an Arial 16px black font, a2 is the same but bolded, a3 is a size change, a4 is the size change bolded.
I do this same setup with all the colors that I use (.b1 for white 12, .c1 for Navy 12, etc.)
Then in the html, I just put <p class=”a2″>words</p> and the font is changed to the size/color that I want. No <font> tags in the html, no <b> tags, etc.
Looking at the CSS, is there a way to squash that info up a bit. I want to separate the classes by commas but each class is diffeerent from the preceding one by one thing.
The normal font for the page is 12 pt Arial (mostly Navy-colored).
???
Appreciate the help and alleviation of confusion. ?
VR/
JOhn
P.S. I already have the px versus em/% thing on my to-do list. It is easier for me to use px, but that hampers the viewer abit for re-sizing. Still working that one.