font size in tables

Is there any way to change the font size in your table cells without having to change it in every <TD></TD>?
joseelandryAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rupertsCommented:
Yes!
Use style sheets..

<STYLE TYPE="text/css">
<!--
    table {}
    TD { color: black; background-color:#F1F1F1; font: 9pt Verdana, Arial, Helvetica, sans-serif }  
    TH { color: black; background-color:#cfcfcf; font: 10pt Verdana, Arial, Helvetica, sans-serif; font-weight:bold}
-->

Put this in your <head>

0
oubelkasCommented:
Bear in mind that this only works in IE.

Joseph
0
joseelandryAuthor Commented:
The code dosn't seem to work, of course I know nothing of style sheets.  I might be doing it wrong.  

I also need to have this running on Netscape 4.51.  Is there any other way?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

oubelkasCommented:
Surround the text with font tags :

<FONT SIZE=3> my text </FONT>

Joseph
0
rupertsCommented:
good point,

option 2.

Search and Replace "<td>" for "<td><font....>"

At least its automated! (Frontpage is quite handy when you want to play around with fonts in tables.

Rupert
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
joseelandryAuthor Commented:
I guess this is what I'll have to do.  I was trying to go around surrounding more than 1000 peices of data, but search and replace is a good idea that should simply my task.  Thanks to both of you.
0
oubelkasCommented:
So I'm afraid you'll have to do it each time again.... :(

Joseph
0
oubelkasCommented:
hmmmm, I guess I deserve some credit too, since I came up with <font...>

Joseph
0
rupertsCommented:
oubelkas..

I believe Joseelandry must of already used the font statement before!

Please give him some credit!
0
joseelandryAuthor Commented:
Yeah, font was what I was trying to stay away from, but the combination of both your awnsers got me to where I am right now.  With a lower font for my table. I'd give him 50 points too, if I knew how.
0
oubelkasCommented:
Oh, if you want to give me 50 points (which I would greatly appreciate of course :) ) you can post a question personally titling it oubelkas or so :)

Joseph
0
oubelkasCommented:
Of course I'd owe you one ;)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.