default font
Moderator: General Moderators
default font
How do you set the default font in the BODY tag? I cant seem to remember
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Do it in CSS:
Mac
Code: Select all
BODY {font-family: arial, helvetica, sans-serif;}- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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;
}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">