Click to See Complete Forum and Search --> : Too many <font> tags!


Aronya1
09-09-2003, 10:27 PM
I'm sure I've seen this here before, but can't find it doing a search, so...

Creating a form. Using tables. How do I apply text formatting across the whole table without using a billion <font> tags? I'm really only concerned with designating the font family.

Is this a CSS question?


TIA
Aronya1

Fang
09-10-2003, 01:48 AM
yes it is CSS, but: define classes i.e.
td with class='atd' in a table with id='sometable'
CSS #sometable td .atd {font-family:Arial, Helvetica, sans-serif;}
td with class='btd' in a table with id='sometable'
CSS #sometable td .btd {font-family:"Courier New", Courier, monospace;}

96turnerri
09-10-2003, 05:33 AM
ah yes i remember making one of my sites i had that problem it is really annoying in the end i had to use something like what FANG posted

Aronya1
09-10-2003, 12:25 PM
Thanks Fang,

That looks like just what I need.


96,

Exactly. I'm using DW to create the site, but tweaking things by hand, and when you start looking at the table's code with all the <font> tags for every freakin' line, it doesn't take long for the eyes to cross...

96turnerri
09-10-2003, 12:57 PM
yeah it did make my eyes go funny to and there not in the best of condition anyway lol :(