Closed Bug 300624 Opened 19 years ago Closed 19 years ago

caption does not move together with table if table has margin-top

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 297676

People

(Reporter: alexei, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

caption does not move together with table if table has margin-top
code:
-----
<table style="margin-top:100px">
 <caption>this is caption</caption>
 <tr><td>Lorem Ipsum</td><tr>
</table>
------
Result:
Caption and table have a gap 100px. 

Expected Result:
Caption stays together with table and margin on top of caption is 100px.

Reproducible: Always

Steps to Reproduce:
see details

Actual Results:  
Caption and table have a gap 100px. 

Expected Results:  
Caption stays together with table and margin on top of caption is 100px.
actually, margin should be counted from table's top edge (at least Opera and IE
do this). Caption should be on top af the table unless it has its own margins.
Alias: css2

*** This bug has been marked as a duplicate of 297676 ***
Alias: css2
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.