You are here: Re: Style for tables « HTML « IT news, forums, messages
Re: Style for tables

Posted by Jukka K. Korpela on 01/05/07 18:51

Scripsit Jonathan N. Little:

>> <table border="0" width="100%" id="table1" cellspacing="0"
>> cellpadding="0">
- -
> TABLE {
> border-collapse: collapse;
> border: 0;
> width: 100%;
> }

That does not cover the cellpadding="0" attribute, which has the following
as its CSS counterpart:

caption, th, td { padding: 0; }

(Such settings as here mean, though, that the OP is probably using tables
just for layout and should really consider better approaches. Rarely have I
seen data table where zero padding is suitable; more often, the default
small nonzero padding should be _increased_.)

> FWIW: see http://www.w3.org/TR/CSS21/cover.html

It says: "This is a draft document and may be updated, replaced or obsoleted
by other documents at any time. It is inappropriate to cite this document as
other than work in progress." So you have been warned. It's still what's
closest to an approximation of an excuse for a current de facto CSS
"standard" that we have, but take care.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

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

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