471,855 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,855 software developers and data experts.

how to preset the default font size for a web page?

Hi,

How can I set my default display font size, type for a web page, or a
<table>?
I dont want to write <font size=....> everywhere, especially inside each
<td>.

I know this is HTML question, kindly please help to tell me.

Thanks
Michael

Jul 19 '05 #1
2 9609
<head>
<style>
td{font-size:10px;font-family:arial,helvetica,sans-serif;}
</style>
</head>

now everything inside a td will have a font size of 10pixels (very small)
the font-family attribute sets the face, note theres three here

mark

"Michael" <vb*******@yahoo.com.sg> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
Hi,

How can I set my default display font size, type for a web page, or a
<table>?
I dont want to write <font size=....> everywhere, especially inside each
<td>.

I know this is HTML question, kindly please help to tell me.

Thanks
Michael

Jul 19 '05 #2
CJM
Use CSS. Ideally a LINKed CSS.

Try www.w3schools.com/css/ for a tutorial.
In the CSS, include one of the following definitions:

body { font-size: 85%; }

or

body { font-size: 0.9em; }

or

body { font-size: x-large; }

Notes: You can set the font-size to be x number of pixels but this is bad
from an accessibility point of view. The above options all allow the user to
resize the text using browser settings. In most browsers, using explicit
pixel sizes prevents this.

Also Mac users often see smaller text than Windows users:
http://db.tidbits.com/getbits.acgi?tbart=05284

hth,

Chris
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.