W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: breaking overflow

From: James Hopkins <james@idreamincode.co.uk>
Date: Fri, 1 Jan 2010 17:08:40 +0000
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Anton Prowse <prowse@moonhenge.net>, www-style <www-style@w3.org>, Niels Matthijs <niels.matthijs@internetarchitects.be>
Message-Id: <3CDB911D-BC61-4E1A-885D-FA0AA157F8E0@idreamincode.co.uk>
To: Brad Kemper <brad.kemper@gmail.com>
> On Jan 1, 2010, at 8:45 AM, James Hopkins wrote:
>
>>> On Dec 31, 2009, at 9:50 AM, "Tab Atkins Jr."  
>>> <jackalmage@gmail.com> wrote:
>>>
>>>> Specifically, one of the common uses for float-containment is to  
>>>> make
>>>> a <ul> properly wrap around its floated <li> children in a  
>>>> horizontal
>>>> nav menu.  This problem will be solved properly by Flexbox or its
>>>> successor.
>>>
>>> It's solved pretty easily by using 'display:inline-block' instead  
>>> of floats.
>>
>> What happens if you require the UL to expand-to-fill it's parent?
>
> UL { display:block; }
> LI { display:inline-block }
>
> What am I missing, aside from a way to suppress white space between  
> LIs?

Ah, I was assuming you would be applying inline-block to the UL in  
order for the floats of the LI to be cleared. My bad
Received on Friday, 1 January 2010 17:09:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:23 GMT