Accessibility

CSS Advisor

COL and COLGROUP captured by Caption

by CSSAdvisorAdmin on November 1, 2006
Edited by: Amy C Taylor on November 28, 2009
Avg Rating 3.5 (2)   |   Log in to rate post.

Tagged with Safari 2.0 , Column , Caption , Text , Colgroup , Table

Problem

If a CAPTION tag is placed directly after the opening TABLE tag - as required by the HTML specifications, COL and COLGROUP are no longer accessible as CSS selectors.

Solution

Move the CAPTION tag after the COL and COLGROUP tags, although this will also cause the page to fail validation.

Detailed description

HTML specs specify that CAPTION elements must follow immediately after a table's opening tag. However, in Safari 2.0.3 and earlier, Safari gets confused by the CAPTION tag and does not apply styles to COL or COLGROUP selectors. The workaround is simply to place the table CAPTION tag below COL and COLGROUP tags- which fixes the rendering issue but will render the page unable to be validated.

This issue originally documented by Leif H. Silli (Read original article).




Tagged with Safari 2.0 , Column , Caption , Text , Colgroup , Table

Tag it on del.icio.us or Digg

Text ID: COL_AND_COLGROUP_CAPTURED_BY_CAPTION



Comments (0)

To add a comment, please Log in.








CSS Advisor home
Submit a post

rss

CSS ADVISOR RSS FEEDS
Recent: POSTS | COMMENTS | EDITS


Browsers
Internet Explorer (45)
Mozilla/Firefox (16)
Opera (7)
Safari (13)
CSS Properties
Background (6)
Border (3)
Color (1)
Float (15)
Font (1)
Margin (6)
Padding (4)
Position (15)
Text (13)
Width/Height (9)