Re: overflow and list-items

Brad Kemper wrote:
> 
> 
> I always thought it would make the most sense to treat the marker as 
> though it was position:absolute within (and relative to) the LI, with a 
> negative LEFT value and auto TOP and BOTTOM. In that case, it would not 
> affect the line-height, would not take up space, would not be affected 
> by the horizontal scroll position (but would be affected by the vertical 
> scroll position). I was thinking that it would be visible outside the 
> scrollbox of the UL or OL, but it looks like not: even though it is out 
> of the flow, it is still clipped by its overflow container, even when 
> overflow-x is supposed to be visible.
> I've posted some samples of what I mean here:
> 
> http://bradclicks.com/cssplay/scrolling%20lists.html

The discussion isn't about setting overflow on <ol>, but rather of
setting overflow on <li>. <ol> isn't special in CSS, it's just another
block. <li> elements, however, are display: list-item.

~fantasai

Received on Wednesday, 14 January 2009 02:22:31 UTC