Tables (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets and Accessibility



Message


Brandon -> Tables (4/5/2007 10:41:28)

OK, I just took over the site and the whole thing is done with tables. [:@] Since I haven't really work with tables in a long time, I forget how to do some stuff.

Lets say I want this style below for the following. TABLE, TR, TD, TH

font-size: 12px; 
font-family: Verdana;
color: #000000;


Instead of writing that for ever single one, is there a way to group them together instead of one by one.
The site also didn't have a DOCTYPE so I added the following.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Can I even use tables with that DOCTYPE, or I'm I going to have to go in and change them all over to DIV?





coreybryant -> RE: Tables (4/5/2007 11:35:00)

You could just apply that to everything
table, td, th, tr
{font-size: 12px; 
font-family: Verdana;
color: #000000;}
That is what I have done. Tables will validate in the code as well. Tables will at least show you what is deprecated - but chances are you already know all of that. It's just that most people think that tables are meant for eating dinner on, not laying out a site




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875