Good point Mike. You are mixing things. Your logic fails because is applying 'markup rules' to 'CSS rules'.
In <table border="1"> [the old and deprecated way to apply borders] border is assigned via an HTML * attribute* and must follow what the HTML Specs [1] says: ........ The value "border" in the start tag of the TABLE element should be interpreted as the value of the frame attribute. It implies rules="all" and some default (non-zero) value for the border attribute. ........ In <h1>The headline <em>is</em> important!</h1> There isn't an attribute border like <h1 border="1">... So, borders are applied via CSS, and now the CSS Specs [2] must be followed. 'border' Value: [ <'border-width'> || <'border-style'> || <color> ] | inherit Initial: see individual properties Applies to: all elements Inherited: no Percentages: N/A Media: visual It isn't an inherited property! [1] http://www.w3.org/TR/REC-html40/struct/tables.html#adef-border-TABLE [2] http://www.w3.org/TR/REC-CSS2/box.html#propdef-border MaurĂcio Samy Silva http://www.maujor.com/ ----- Original Message ----- From: "Michael Stevens" <[EMAIL PROTECTED]> To: <css-d@lists.css-discuss.org> Sent: Monday, June 04, 2007 10:19 PM Subject: Re: [css-d] table class 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]; css-d@lists.css-discuss.org 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: <css-d@lists.css-discuss.org> 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/ ______________________________________________________________________ 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/