Page 1 of 1

default font

Posted: Thu Jun 20, 2002 11:10 am
by toppac
How do you set the default font in the BODY tag? I cant seem to remember

Posted: Thu Jun 20, 2002 11:39 am
by twigletmac
Do it in CSS:

Code: Select all

BODY {font-family: arial, helvetica, sans-serif;}
Mac

Posted: Fri Jun 21, 2002 5:39 am
by nobody
it's easy...

<body font-family=verdana tahoma size=10 color=#000080>

nobody

Posted: Fri Jun 21, 2002 5:49 am
by twigletmac
nobody wrote:<body font-family=verdana tahoma size=10 color=#000080>
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:

Code: Select all

BODY &#123;
    font-family: verdana, tahoma;
    font-size: 10pt;
    color: #000080;
&#125;
Mac

Posted: Sat Jun 22, 2002 4:38 pm
by MattF
Also in HTML any attributes that are not entirely numeric should have quotes around them.

Posted: Sat Jun 22, 2002 6:09 pm
by will
you could do it in straight HTML, but with the power of CSS, i'm not sure why you'd want to....

Code: Select all

<basefont face="fontname">