Closed Bug 272182 Opened 21 years ago Closed 21 years ago

Style attribute on colgroup tag has no effect

Categories

(Core :: Layout: Tables, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mozillabugs, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Example code: <table style="width: 30em; border: solid red 1px"> <colgroup style="text-align: center;"> <colgroup style="text-align: right;"> <tr><td>a</td><td>b</td></tr> </table> the text in column one (a) should be centered, the text in column two (b) should be right-aligned Reproducible: Always Steps to Reproduce: 1. See Details
text-align cannot be applied to COLGROUP. See http://www.w3.org/TR/CSS21/tables.html#q4
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
*** This bug has been marked as a duplicate of 915 *** *** This bug has been marked as a duplicate of 915 ***
Resolution: INVALID → DUPLICATE
sorry, bill is right. back to invalid.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → INVALID
Just for the record: The previous example code may be invalid. But text-align can be applied to a TD so the following CSS code should work but doesn't: -- colgroup.number td { text-align: right; } colgroup.text td { text-align: center; } -- <table> <colgroup> <col class="number" /> <col class="text" /> </colgroup> <tr> <td>21312</td> <td>dwdwdw</td> </tr> </table>
Justin, that code should not work, since colgroup is not an ancestor of the td in your example.
You need to log in before you can comment on or make changes to this bug.