Gary Turner wrote:

David Cortesi wrote:

http://www.tassos-oak.com/tempp/TocDivTest.html

<snip>

The problem is the absolute-positioned page numbers -- in all but IE6, these are positioned at the right edge of their containing list or div. In IE6, they are positioned at the right of the body (or html, I don't know [or care] which).

This failure is true UNLESS I happen to add the "width:" property to the container styles. If the containing div (or list) is styled BOTH position:relative AND width:nn%, it properly behaves as a container for absolute positioning. Comment-out the width: property -- the page numbers shoot out to the right edge.

The Holly Hack applied to the ul, in my tests, seems to do the job. It seems pretty ridiculous that IE requires hasLayout to be true in addition to having position.


And in case anyone hasn't heard about hasLayout and is curious about other ways you can make an element "have layout" in IE, here's the reference:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp


I always use the Holly Hack to give elements layout, but others prefer zoom.

Zoe

--
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu


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

Reply via email to