navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Save time and trouble - set all your fonts at once.

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Save time and trouble - set all your fonts at once.
Page: [1]
 
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
Save time and trouble - set all your fonts at once. - 10/29/2003 13:16:24   
At the start of your style sheet put something like this:


* {
font: 95% Verdana, Arial, Helvetica, sans-serif;
}

You have now declared the fonts for everything.

Points to note:

1. Applying fonts to anything below that in the style sheet will affect that selector without messing up anything else :-)

2. IE has a notoriously troublesome bug where it does not some cascade the font down into

<td>

You can fix it like this:

* , td {
font: 90% Verdana, Arial, Helvetica, sans-serif;
}

or by explicitly declaring the properties for the td element. thus:

td {
font: 90% Verdana, Arial, Helvetica, sans-serif;
}

3. Members of the gorilla group have a policy of using font relative sizing rather than pt or px. If you use pt or px you will have to replace my percentages with the appropriate unit of measurement..

Remembering always that 1px = 0,75pt

JB

< Message edited by gorilla -- 10/29/2003 1:18:35 PM >


_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower


Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Save time and trouble - set all your fonts at once.
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts