Closed Bug 9067 Opened 26 years ago Closed 26 years ago

margin/vertical padding doesn't work for table cells

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 2886

People

(Reporter: Klaus.Malorny, Assigned: karnaze)

Details

Vertical padding via CSS doesn't work correctly in table cells. Instead of using the correct values, it seems that the top and bottom padding is equal to (top + bottom) / 2. The 'margin' CSS properties don't seem to work at all. I can set the values to anything, but the size of the cell doesn't change. This HTML file shows the padding bug: ---8<--- <html> <head> <style> .title { background: #f0f0f0; padding-top: 80px; padding-bottom: 20px; } </style> </head> <body> <table> <tr><td class=title><span style="background: #FFFF00">this is a sample text</span></td></tr></table> </body> </html> ---8<--- Using any 'margin' properties (both horizontal and vertical) in the .title style sheet doesn't change the size of the cell. Regards Klaus Malorny
I forgot: Tested against M7. Klaus Malorny
Assignee: rickg → peterl
Peter -- please take a look. It may be Chris's bug, but it also involves style.
Assignee: peterl → karnaze
Component: Layout → HTMLTables
Margins are not supposed to apply to internal table components (there are other properties to control spacing there). The padding is a table layout issue.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 2886 ***
Status: RESOLVED → VERIFIED
Agreed. This is a duplicate of 2886.
You need to log in before you can comment on or make changes to this bug.