Reply to Re: Internal table boundaries via style=""

Your name:

Reply:


Posted by dorayme on 06/28/07 23:56

In article
<1183071632.051220.105200@k79g2000hse.googlegroups.com>,
aaronfude@gmail.com wrote:

> Actually... Suppose I do use a real style sheet. It still means that I
> have to assign a class to every cell in the table, correct? What I'm
> looking for a signle place to set the behavior of internal borders. In
> a way that seems impossible. I can I assign a style to a class - but I
> still have to assign the class to each cell. Please correct me if I'm
> wrong.

No, you don't have to assign a class to each table cell to style
them. You can assign a style to td and all the tds will be so
styled.

td {border: 1px solid #000;}

But let us suppose you have a complex table in which there are
many rows with very many cells in each row. But only some of the
rows are required to be styled a certain way. In this case, it is
effective to class the rows concerned and simply:

tr.results td {border: 1px solid #000;}

All the tds in rows of this class will have this style.

The saving is considerable because there are very many more tds
than trs.

Same goes generally:

div#wrapper div {...}

can target an awful lot of divs in one fell swoop without having
to class each div that requires the desired treatment.

--
dorayme

[Back to original 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

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