Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:27 AM
Michael
Guest
 
Posts: n/a
Default 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



  #2  
Old July 19th, 2005, 07:27 AM
mark | r
Guest
 
Posts: n/a
Default Re: how to preset the default font size for a web page?

<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" <vbado2003@yahoo.com.sg> wrote in message
news:uQYMgFMXDHA.2352@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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
>
>
>[/color]


  #3  
Old July 19th, 2005, 07:27 AM
CJM
Guest
 
Posts: n/a
Default Re: how to preset the default font size for a web page?

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


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles