Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > how to preset the default font size for a web page?

Reply
Thread Tools

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

 
 
Michael
Guest
Posts: n/a
 
      08-07-2003
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



 
Reply With Quote
 
 
 
 
mark | r
Guest
Posts: n/a
 
      08-07-2003
<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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
 
 
 
 
CJM
Guest
Posts: n/a
 
      08-07-2003
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


 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
Windows XP explorer font and font size Lookout Computer Support 0 06-04-2006 02:58 AM
Modifing Default Font and Size When Visiting Web Sites. Dennis M. Marks HTML 1 09-18-2004 07:52 PM
Selecting font size based on available font dave richards HTML 2 02-19-2004 02:47 PM



Advertisments