Fonts and tables - Setting a font face/size for an entire page/table

They have: 5,633 posts

Joined: Jan 1970

I've been looking for a while for a way to set font attributes for an entire page, including tables, so that I don't have to put font tags in each individual cell, which makes a mess of my HTML. So far I haven't had any success. Does anyone know if this is possible at all?

They have: 36 posts

Joined: Jul 1999

This problem can be overcome with some simple CSS, here's how to do it.

<html>
<head>
<title>blah blah blah</title>

<style type="text/css">
td {font-family:sarif; font-size:4; color:black; }
</style>

</head>
<body>

blah. on this page, whenever you use the <td> tag, it will format everything inside it with SARIF font family, size 4 text, and BLACK text. Obviously you can change these things.

</body>
</html>

----------
Dan Tucker
http://ctpball.paintballresource.com

They have: 2,390 posts

Joined: Nov 1998

Just a note that CSS can also be used in a separate file .css giving you more felxibility.
JP

----------
[red]The Next Step in Website Development [/red] - http://www.what-next.com
The Webmaster Promotion and Resource Center

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.