473,387 Members | 1,495 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.

Setting a default font face and size for a table?

Hi everyone,

Rather than have this construct in my pages:

<table>
<tr><td><font face=arial size=3>line1</font></td></tr>
<tr><td><font face=arial size=3>line2</font></td></tr>
<tr><td><font face=arial size=3>line3</font></td></tr>
</table>

Is there a way to have a default "font" statement somewhere within the table
that sets the font parameters for every cell in that table?

Thanks,
Isaac

Are you losing $14,200.00 per year without your knowledge?
http://bigmoneyandfreetime.web1000.com
Jul 20 '05 #1
2 26501
Isaac Grover wrote:
Hi everyone,

Rather than have this construct in my pages:

<table>
<tr><td><font face=arial size=3>line1</font></td></tr>


http://dorward.me.uk/www/css/#tutorials

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #2
ep*****@myexcel.com (Isaac Grover) wrote:
Rather than have this construct in my pages:

<table>
<tr><td><font face=arial size=3>line1</font></td></tr>
<tr><td><font face=arial size=3>line2</font></td></tr>
<tr><td><font face=arial size=3>line3</font></td></tr>
</table>

Is there a way to have a default "font" statement somewhere within
the table that sets the font parameters for every cell in that table?


Yes, it is in the browser settings.

Admittedly, in _some_ cases it may make _some_ sense to suggest font
properties for a table. But size=3 is pointless, to begin with; unless
there's something weird on the page otherwise, <font size=3> just tells
the browser to do what it would do anyway.

The simple way to suggest font for a table is to use CSS. This used to be
a frequently asked question, but most people have probably found the CSS
way by now. Start by removing all font tags (using a suitable utility
like Tidy if needed), and then use a simple style sheet, e.g.

<style type="text/css">
td { font-family: Arial, Helvetica, sans-serif; }
</style>

For a little longer example, see
http://www.cs.tut.fi/~jkorpela/styles/simple/table.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Clive Everett | last post by:
I thought it would be rather fun to try out @font-face, but I cannot get it to work. I used Microsoft WEFT to generate several embedded fonts and find that the example below works when I use my...
32
by: Andreas Prilop | last post by:
Here is an illustration of the warning http://ppewww.ph.gla.ac.uk/~flavell/charset/browsers-fonts.html#dont that you should not specify a typeface when you have characters outside West European...
55
by: Haines Brown | last post by:
I've been setting font-size 1em; as the default in my style sheets. Until now, that seemed to be ok. But now I'm beginning to wonder. My aim is to have an easily readable, but not overly large...
54
by: Brett Baisley | last post by:
Hello, I am trying to figure out how to change the default font-family and font-size. I tried adding this to the BODY section, but it didn't work. I tried to the P section, but they are not...
20
by: B Wooster | last post by:
There is a page that shows Firefox 1.0 render text differently for CSS as compared to FONT FACE for one particular font: http://www.aczoom.com/fonts/xdvng.ttf is the font that does not work. ...
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...
2
by: Ben Long | last post by:
I'm curious if it is possible to detect the browsers default font and size? Most of the posts on this topic predate Windows XP, IE 5.5, Mozilla Firefox, et al. I've searched up and down the DOM...
4
by: ateale | last post by:
Hey guys I have had a bit of a hunt around on google to try find out how to change the overall default font style/size for a wx.python app - but not had any luck. Does anyone have any idea if...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.