Changing Font Size

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

What is code to change the size of your font? I want to select a size that
is between sizes on the format tool bar. Example, Font size is 14 on
selection in menu and I want a size greater than this but smaller than next
selection in menu.
Thanks. Liz
 
Have you tried CSS? This is a sample CSS file;

BODY {
MARGIN-TOP: 70px; FONT-SIZE: 11px; BACKGROUND-ATTACHMENT: scroll;
BACKGROUND-IMAGE: url("logo.gif"); MARGIN-LEFT: 80px; BACKGROUND-REPEAT:
no-repeat; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
BACKGROUND-COLOR: #ffffff
}
TD {
FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
P {
BACKGROUND: white
}
H1 {
FONT-SIZE: 12px; COLOR: #979797; FONT-FAMILY: Helvetica, Verdana, Arial
}
A:hover {
COLOR: #804c4c; BACKGROUND-COLOR: #f0efe3
}
H2 {
FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica,
sans-serif
}
H3 {
FONT-SIZE: 18px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica,
sans-serif
}
..textsm {
FONT-SIZE: 14px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica,
sans-serif
}
..textbg {
FONT-SIZE: 20px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica,
sans-serif
}
..textreg {
FONT-SIZE: 12px; COLOR: #979797; FONT-FAMILY: Verdana, Arial, Helvetica,
sans-serif
}
 
An ugly one, too!

There's lots that you do not need in there. Particularly the repreated
declaration of the font family - on a page with a valid and complete
doctype, inheritance is not broken, and you can declare this only once for
the body tag....

Also, be aware that loading your stylesheet with custom classes will quickly
make your stylesheet non-maintanable. Learn how to use the cascade to
specify rule selectors based on the element containers. Your stylesheets
will improve in readability when you do.
 
Back
Top