Closed Bug 301116 Opened 19 years ago Closed 19 years ago

giving colgroup and/or col elements properties like align or css text-align has no effect

Categories

(Core :: Layout: Tables, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 915

People

(Reporter: bgrupe, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050717 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050717 Firefox/1.0+

According to the HTML4 spec, <col align="right"> for example should align the
text in the given col right. WFM in MSIE, Opera, doesn't work with Gecko browsers.

Using CSS text-align doesn't work either.

Reproducible: Always

Steps to Reproduce:
1. Create a table with a col giving it align="center" OR: CSS text-align: center

Actual Results:  
The column contents are aligned left (the default).

Expected Results:  
The column contents are centered.

This helps writing less code and more semantic code.
I modified the W3 sample table (see URL) and added CSS text-align to
demonstrate that the CSS approach doesn't work either.
Component: HTML: Parser → Layout: Tables
Assignee: parser → nobody
QA Contact: mrbkap → layout.tables

*** This bug has been marked as a duplicate of 915 ***
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.

Attachment

General

Creator:
Created:
Updated:
Size: