Accessibility

CSS Advisor

position:relative ignored on table

by CSSAdvisorAdmin on November 3, 2006
Edited by: sfegette on December 5, 2009
Avg Rating 3.5 (4)   |   Log in to rate post.

Tagged with Firefox 1.0 , Position , Firefox 1.5 , Mozilla 1.1

Problem

Absolutely-positioned children of a relatively-positioned table will be positioned relative to the window, not the table.

Solution

None. This appears to be a known Mozilla bug.

Detailed description

A relatively positioned table with an absolutely positioned element placed inside of it will not calculate the correct position - relative to it's parent - but instead render the absolutely-positioned element in relation to the browser window itself. This does not reproduce when the same absolutely-positioned element is placed inside other relatively-positioned elements such as DIVs, however. Best suggestion, should this be an issue for your design, is to avoid the case entirely.

This issue originally documented by Peter-Paul Koch at quirksmode.org (Read original article).




Tagged with Firefox 1.0 , Position , Firefox 1.5 , Mozilla 1.1

Tag it on del.icio.us or Digg

Text ID: TABLES_NOT_CONTAINERS_FOR_APELEMS



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 (46)
Mozilla/Firefox (16)
Opera (8)
Safari (14)
CSS Properties
Background (6)
Border (3)
Color (1)
Float (15)
Font (1)
Margin (6)
Padding (4)
Position (15)
Text (13)
Width/Height (9)