Thanks, Eric. It was just so nice when I had stripped away a ton of code and 
had all these cells with no classes assigned or inline styling or anything 
(literally just: <td>X</td>, whereas the old version that somebody else coded 
looked like <td align="center" valign="middle" bgcolor="E1E4E4"><span 
class="x">X</span></td>) and it worked, and worked beautifully, but only in IE. 
I'm tempted to keep my coding how it is now because they told me when I started 
here the usual thing: "As long as it works in IE . . . "
 
Christian
 
 
-----Original Message-----
From: Eric A. Meyer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; [email protected]
Sent: Thu, 10 Nov 2005 09:46:38 -0500
Subject: Re: [css-d] Styling COL and COLGROUP


At 8:32 PM -0500 11/9/05, [EMAIL PROTECTED] wrote: 
 
>So the only way to bold and center all the text in every cell of a 
>particular column is to add those rules to every cell? (Sounds like bad 
>coding to me.) Or to pretend that they are header cells when they 
>aren't? (Sounds like bad coding to me.) 
 
  No, though that is one way. The other way is to class all of the cells that 
share a column, and style via that class. A simple example: 
 
  <table> 
  <tr> 
  <td class="city">New York</td> 
  <td class="amnt">$6,123</td> 
  </tr> 
  <tr> 
  <td class="city">Boston</td> 
  <td class="amnt">$5,627</td> 
  </tr> 
  <tr> 
  <td class="city">Cleveland</td> 
  <td class="amnt">$7,111</td> 
  </tr> 
  <tr> 
  <td class="city">Chicago</td> 
  <td class="amnt">$5,966</td> 
  </tr> 
  </table> 
 
Now you can style each column uniquely. 
  Yes, the city names could probably be th element with scope="row", and then 
you could dump all the class names for this example, but pretend it's a table 
with more than two columns. Also, the markup there isn't very accessible, but 
it's good enough to illustrate the point I'm making. I hope. 
 
-- Eric A. Meyer (http://meyerweb.com/eric/), List Chaperone 
"CSS is much too interesting and elegant to be not taken seriously." 
  -- Martina Kosloff (http://mako4css.com/) 
___________________________________________________
Try the New Netscape Mail Today!
Virtually Spam-Free | More Storage | Import Your Contact List
http://mail.netscape.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to