Wellington Fan wrote:
> Hello all,
> 
> I have a small <div> that I'd like to position in the upper right corner 
> of a table cell, regardless of any align/valign attributes. See this page:
> 
> http://www.illuminoid.com/tables/cellposition.php
> 
> I thought that adding 'position:relative' to the <td> and 
> 'position:absolute; top:0px; right:0px;' would do the trick, but it 
> seems that my <div> is still positioned with respect to the page, not 
> the <td>.
...

CSS 2.1: 9.1.3 leaves position:relative on elements with table-* undefined.
You can try to insert an inner wrapper element into the td and position 
it relatively as containing block for another, absolutely positioned 
element.

Ingo

-- 
http://www.satzansatz.de/css.html
http://www.dolphinsback.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to