Closed
Bug 48052
Opened 25 years ago
Closed 25 years ago
COLGROUP tag does not respond to CSS styling
Categories
(Core :: Layout: Tables, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: work, Assigned: karnaze)
References
()
Details
(Keywords: verifyme)
It seems that the rendering engine does not know how to apply CSS styles to
column groups specified by the HTML COLGROUP tag. Even IE supports this
feature!!!! Mozilla can never claim to be 100% HTML4 and CSS1 standards
compliant when such simple things are not implemented!!!
Here is my example HTML code snippet along with the CSS code snippet that tries
to center the text in one table column and not in the other. But the text is
left aligned in both columns.
------------------------------------------------------
CSS code
colgroup.h1 { text-align:center; }
colgroup.h2 { text-align:left; }
-------------------------------------------------------
HTML code
<table width="100%" border="1">
<caption>Title</caption>
<colgroup class="h1"></colgroup>
<colgroup class="h2"></colgroup>
<thead>
<tr>
<th>H1</th>
<th>H2</th>
</tr>
</thead>
<tbody>
<tr>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
Comment 1•25 years ago
|
||
Read the W3C CSS Specification and you will find that text-align does not apply
to columns. Sorry.
http://www.w3.org/TR/REC-CSS2/
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•