By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,225 Members | 2,170 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,225 IT Pros & Developers. It's quick & easy.

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

P: n/a

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

Nov 4 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Summercool wrote:
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/
Nov 4 '07 #2

P: n/a
On Sun, 04 Nov 2007 13:11:00 -0000, Summercool wrote:
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/
Nov 4 '07 #3

P: n/a

dorayme, you are in Australia?
Nov 5 '07 #4

P: n/a
In article
<11**********************@y27g2000pre.googlegroups .com>,
Summercool <Su************@gmail.comwrote:
dorayme, you are in Australia?
Yes, in Sydney. How you're going, mate!

--
dorayme
Nov 5 '07 #5

P: n/a
rf

"Ben C" <sp******@spam.eggswrote in message
news:sl*********************@bowser.marioworld...
... 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.
Nov 5 '07 #6

P: n/a
Summercool wrote:
>
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
Nov 6 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.