On Fri, 9 Dec 2005 19:07:36 -0800 Curt Zirzow <czirzow@xxxxxxxxx> wrote: > On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote: > > This question is a little OT but no doubt everyone and their brother is > > generating tables here so heres my question. > > well, i try to only use tables when I present tabular data, i > wonder mabey if i'm a cousin or something. And, yes, it is a bit OT. So what do you use for layout? CSS absolute positioning? I'm highly skeptical. > http://www.csszengarden.com/ But from looking at the "Submit your Design" link I see they have some elaborate forms with no tables. Mmm, I'm less skeptical. > > .t { > > font-size: small; > > border-bottom: 1px lightgrey solid; > > border-right: 1px lightgrey solid; > > } > > Anyway... Change the definition to: > > table.t td, table.t th { > > And Add: > > table.t th { > text-align: left; > } > > > and add a class="t" to EVER SINGLE TH and TD tag like: > > > > echo "<table cellpadding=\"0\" cellspacing=\"0\">"; > > Assign the class of 't' to the table. Yes! This is what I want. So the following: classname descendantelem { style } means to apply the style to descendantelems but you can assign the class to any ancestor? Can I mix styles for table and td tags like the following? table.t, table.t th, table.t td { empty-cells: show; border-collapse: collapse; border-width: 1px; border-style: solid; border-color: lightgrey; } The emtpy-cells and border-callapse styles are table specific I think but the above appears to work. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php