PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Dec 18, 2018 7:16 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: default font
PostPosted: Thu Jun 20, 2002 11:10 am 
Offline
Forum Commoner

Joined: Fri Jun 14, 2002 10:44 am
Posts: 29
How do you set the default font in the BODY tag? I cant seem to remember


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 20, 2002 11:39 am 
Offline
Her Royal Site Adminness
User avatar

Joined: Tue Apr 23, 2002 2:21 am
Posts: 5371
Location: Essex, UK
Do it in CSS:
Syntax: [ Download ] [ Hide ]
BODY {font-family: arial, helvetica, sans-serif;}

Mac


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 21, 2002 5:39 am 
Offline
Forum Newbie

Joined: Fri Jun 21, 2002 5:39 am
Posts: 1
Location: Brasil
it's easy...

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

nobody


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 21, 2002 5:49 am 
Offline
Her Royal Site Adminness
User avatar

Joined: Tue Apr 23, 2002 2:21 am
Posts: 5371
Location: Essex, UK
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:
Syntax: [ Download ] [ Hide ]
BODY &#123;
   font-family: verdana, tahoma;
    font-size: 10pt;
    color: #000080;
&#125;

Mac


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 22, 2002 4:38 pm 
Offline
Forum Contributor

Joined: Sun May 19, 2002 9:58 am
Posts: 225
Location: Sussex, UK
Also in HTML any attributes that are not entirely numeric should have quotes around them.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 22, 2002 6:09 pm 
Offline
Forum Contributor

Joined: Fri Jun 21, 2002 9:38 am
Posts: 120
Location: Memphis, TN
you could do it in straight HTML, but with the power of CSS, i'm not sure why you'd want to....

Syntax: [ Download ] [ Hide ]
&lt;basefont face="fontname"&gt;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group