default font
Posted: Thu Jun 20, 2002 11:10 am
How do you set the default font in the BODY tag? I cant seem to remember
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
BODY {font-family: arial, helvetica, sans-serif;}font-family is CSS not HTML and color and size aren't valid attributes for the body tag therefore the above example won't work. Using CSS the above would look like this:nobody wrote:<body font-family=verdana tahoma size=10 color=#000080>
Code: Select all
BODY {
font-family: verdana, tahoma;
font-size: 10pt;
color: #000080;
}Code: Select all
<basefont face="fontname">