On 6/5/07, Michael Stevens <[EMAIL PROTECTED]> wrote: > Well, I understand you are right, and did from the start because I've > experienced it myself (even though my argument's logic failed), but I still > say it's an inconsistency. :) > > border= in HTML should equal border: in CSS. I understand they are different > but to make them inconsistent would be one reason why people have a hard > time with the "CSS or die" theory of late. > Border in HTML cannot be changed after all these years - it would break millions of old pages - and adding new HTML attributes to provide the much greater capabilities that CSS has would go against the entire modern philosophy of content/structural markup/presentational styling layers. Imagine what a pain it would be if, in order to get an outer border (only) on a table using CSS you had to set it for the table element and then unset it for each child td and th element.
What browsers do when they encounter a presentational HTML attribute is convert it to the nearest equivalent CSS. So for <table border=1> (assums the default cellspacing of 2px) equates to: table {border:1px outset; border-spacing: 2px;} th, td {border: 1px inset;} while <table border=1 celllspacing=0> becomes td,th {border: 1px solid;} -- Richard Grevers, New Plymouth, New Zealand Hat 1: Development Engineer, Webfarm Ltd. Hat 2: Dramatic Design www.dramatic.co.nz Lost yet? http://www.lost.eu/3d33f ______________________________________________________________________ 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/