If a border applied to a table in the CSS is not inherited by tr and td then
why does <table border="1"> in your markup give borders around all the tr
and td?

Following the second link give this description:
<H1>The headline <EM>is</EM> important!</H1>
"If no color has been assigned to the EM element, the emphasized "is" will
inherit the color of the parent element, so if H1 has the color blue, the EM
element will likewise be in blue."

which can be logically changed to:
<table border="1"><tr><td>The headline is important!</td></tr></table>
"If no border has been assigned to the TD element, the TD will inherit the
border of the parent element, so if <table> has border="1", the TD element
will likewise be border="1".

Does that logic not hold up? I'm just trying to figure out what seems to be
a huge inconsistency in the application of a border to a table.

Mike

-----Original Message-----
From: Mauricio Samy Silva [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 04, 2007 2:09 PM
To: [EMAIL PROTECTED]; [email protected]
Subject: Re: [css-d] table class

Hi Mike,

Because it's not a cascade issue.[1]
It's an inheritance issue.[2]
The CSS property border isn't an inherited property or in other words,
doesn't apply to children elements.

[1] http://www.w3.org/TR/REC-CSS2/cascade.html#cascade
[2] http://www.w3.org/TR/REC-CSS2/cascade.html#inheritance

MaurĂ­cio Samy Silva
http://www.maujor.com/

----- Original Message -----
From: "Michael Stevens" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, June 04, 2007 8:36 PM
Subject: Re: [css-d] table class


> Hi Ross,
> There is a 'equal sign' missed in your HTML code:
> <table class="signup_table">
>
> In case the missed sign was a typo and you want a border around ALL cells 
> of
> the table you must use the following CSS:
>
> table.signup_table {
> border-collapse:collapse;
> }
> table.signup_table tr td {
> border:1px solid green;
> }
>
> --
>
> Why doesn't applying a border to table cascade the way it should 
> enveloping
> all of it's child elements, namely tr and td?
>
> Mike



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to