pr*********@hotmail.com (Michael Liu) wrote:
Michael Liu <pr*********@hotmail.com> wrote: >
> But in
>Netscape/Firebird, there's 2em space before and after the table.
Here's a URL: http://home.pacbell.net/nexus/temp.html
Setting padding to 0 (as done in this page) doesn't seem to help.
I viewed this page in IE6 SP1 and Firebird 0.7 on Windows XP. I
didn't try it with this particular page, but a similar problem
occurred on another page with Netscape 7.1.
The problem vanishes if you set table to display: block, and appears
between two adjacent paragraphs if p is set to display: table.
I believe this is a bug in Gecko's handling of display: table as the
CSS specs seem to be clear that display: table generates a block level
box and that vertical margins of block level boxes should be
collapsed.
http://www.w3.org/TR/CSS2/tables.html#q2 http://www.w3.org/TR/CSS2/box.html#x24 http://www.w3.org/TR/CSS2/visuren.html#q5
For more information on whether this is a bug and whether it's likely
to be fixed soon I'd suggest searching Bugzilla or asking on a Mozilla
newsgroup.
Any work around would depend on your particular design. In the simple
test case given here setting table {margin: 0 1em} would suffice.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>