Closed Bug 213465 Opened 22 years ago Closed 22 years ago

There is no way to collapse the space below a caption when giving a margin-top to a table.

Categories

(Core :: Layout: Tables, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.5beta

People

(Reporter: kisaragi_24, Assigned: dbaron)

Details

(Whiteboard: [patch])

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5a) Gecko/20030721 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5a) Gecko/20030721 Mozilla Firebird/0.6 When applying such a stylesheet: table { margin-top: 2em; margin-bottom: 2em; } If a table has a caption, Mozilla puts a 2em-space between the caption and the body of the table. However, the space is not collapsed even when applying a negative value to the margin-bottom of the caption, so perplexed when writing a page that includes tables with captions and ones with no captions. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: A caption is always contained within table borders, or make it possible to apply negative values to the table-body-side margin of the caption element. (IE and Opera seem to consider a caption is always within table borders, so it does not have margins)
Attached file Sample
A sample html.
Taking.
Assignee: table → dbaron
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 98 → All
Priority: -- → P3
Hardware: PC → All
Whiteboard: [patch]
Target Milestone: --- → mozilla1.5beta
Attachment #128289 - Flags: review?(bernd.mielke) → review+
Attachment #128289 - Flags: superreview?(roc+moz) → superreview+
Fix checked in to trunk, 2003-07-23 16:04 -0700.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
It works well on Mozilla {Build ID: 2003072404}. Thank you.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: