On Thu, 6 May 2004 18:16:07 +0000 (UTC), Christopher Benson-Manica
<at***@nospam.cyberspace.org> wrote:
Given
table#main {
border-collapse: collapse;
border: black 1px solid;
}
, why does the main table have borders around the outside only? IOW,
why won't the tr and td elements inherit the border property?
Because border doesn't inherit:
'border'
Value: [ <border-width> || <border-style> || <'border-top-color'> ] |
inherit
Initial: see individual properties
Applies to: all elements
Inherited: no
If you use 'collapse', you are not using the old-style HTML 3 table border
anymore. So if you want specific effects on table cells etc you better
specify them all yourself :)
--
Rijk van Geijtenbeek
The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen