You are here: Re: [PHP] CSS and Tables « PHP « IT news, forums, messages
Re: [PHP] CSS and Tables

Posted by Michael B Allen on 12/10/05 05:38

On Fri, 9 Dec 2005 19:07:36 -0800
Curt Zirzow <czirzow@gmail.com> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация