Link to home
Start Free TrialLog in
Avatar of joseelandry
joseelandry

asked on

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>?
Avatar of ruperts
ruperts

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>

Bear in mind that this only works in IE.

Joseph
Avatar of joseelandry

ASKER

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?
Surround the text with font tags :

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

Joseph
ASKER CERTIFIED SOLUTION
Avatar of ruperts
ruperts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
So I'm afraid you'll have to do it each time again.... :(

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

Joseph
oubelkas..

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

Please give him some credit!
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.
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
Of course I'd owe you one ;)