473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 9671
<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Fast Eddie | last post by:
I've done a bit of searching, and I can't find the answer to this question: If you omit the "font-size" property from all of your CSS, does it default to 100%? Thanks for bearing with a newbie.
2
by: Woody Splawn | last post by:
When placing labels and text boxes on winforms they are coming up by default in a size that is just a little too small. How do I change this so that in the future they will come up with a bigger...
58
by: Don Li | last post by:
I've tried <body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;"> or <body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;"> or <body...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.