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

Posted by Jonathan N. Little on 01/05/07 20:27

Jukka K. Korpela wrote:
> 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; }

Thanks, missed it...
>
> (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.
>

And I offered is as such. Until there is a standard it's the best we can
do. Following this draft at least you know your page will probably
display properly in web browsers, the OSCPWB, (Operating System
Component Posing as a Web Browser) well with that it is always a
crap-shoot ;-)

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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