Connecting Tech Pros Worldwide Forums | Help | Site Map

margin for <tr> and <td> are not honored

Summercool
Guest
 
Posts: n/a
#1: Nov 4 '07

I just found that for a table, the margin for <trand <tdare not
honored, but the padding is... is this a widely known fact? why make
this an exception for margin, i wonder.


margin not honored:
http://www.0011.com/test_table/index-margin.html

padding honored:
http://www.0011.com/test_table


John Hosking
Guest
 
Posts: n/a
#2: Nov 4 '07

re: margin for <tr> and <td> are not honored


Summercool wrote:
Quote:
I just found that for a table, the margin for <trand <tdare not
honored, but the padding is... is this a widely known fact? why make
this an exception for margin, i wonder.
What effect do you want margin on a <trto have?

--
John
Pondering the value of the UIP: http://improve-usenet.org/
Safalra (Stephen Morley)
Guest
 
Posts: n/a
#3: Nov 4 '07

re: margin for <tr> and <td> are not honored


On Sun, 04 Nov 2007 13:11:00 -0000, Summercool wrote:
Quote:
I just found that for a table, the margin for <trand <tdare not
honored, but the padding is... is this a widely known fact?

Well it's clearly stated in the specification
(http://www.w3.org/TR/CSS21/box.html#propdef-margin):


'margin'
Value: <margin-width>{1,4} | inherit
Initial: see individual properties
Applies to: all elements except elements with table display types other
than table-caption, table and inline-table


--
Safalra (Stephen Morley)

The 'white-space' Property In CSS:
http://www.safalra.com/web-design/cs...pace-property/
Summercool
Guest
 
Posts: n/a
#4: Nov 5 '07

re: margin for <tr> and <td> are not honored



dorayme, you are in Australia?


dorayme
Guest
 
Posts: n/a
#5: Nov 5 '07

re: margin for <tr> and <td> are not honored


In article
<1194251156.715838.198460@y27g2000pre.googlegroups .com>,
Summercool <Summercoolness@gmail.comwrote:
Quote:
dorayme, you are in Australia?
Yes, in Sydney. How you're going, mate!

--
dorayme
rf
Guest
 
Posts: n/a
#6: Nov 5 '07

re: margin for <tr> and <td> are not honored



"Ben C" <spamspam@spam.eggswrote in message
news:slrnfitlvl.5or.spamspam@bowser.marioworld...
Quote:
... but the status of all these various things varies. I don't know
for sure but I don't think cellspacing is even deprecated.
Know for sure, visit the specifications. cellspacing is not deprecated.

--
Richard.


Bergamot
Guest
 
Posts: n/a
#7: Nov 6 '07

re: margin for <tr> and <td> are not honored


Summercool wrote:
Quote:
>
is this just setting the parent's background color? i mean, you can't
set the margin's color of an element per se.
The parent's background color *is* the margin color.

--
Berg
Closed Thread