W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: Shrink to fit

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 26 Sep 2009 14:00:09 -0700
Message-Id: <316DC5A4-6F5C-4778-AAEA-C00A8B27122F@gmail.com>
To: Eduard Pascual <herenvardo@gmail.com>
Cc: Alex Mogilevsky <alexmog@microsoft.com>, "L. David Baron" <dbaron@dbaron.org>, "www-style@w3.org" <www-style@w3.org>
On Sep 26, 2009, at 1:14 PM, Eduard Pascual <herenvardo@gmail.com>  

> On Sat, Sep 26, 2009 at 7:38 PM, Brad Kemper <brad.kemper@gmail.com>  
> wrote:
>> I don't understand why this couldn't have been accomplished with
>> inline-block elements inside a text-align:center element.
> Sorry, my bad. I just have tested the "menu" thing alone and it seems
> that display:inline-block + text-align:center does the job. Of course,
> it breaks miserably on IE7 and earlier, which I guess was the reason I
> had to mess so heavily with the code.
> Since it is pointless to discuss legacy browsers' incompatibilities
> here, please ignore that example and accept my apologies for the
> mistake.
> Regards,
> Eduard Pascual

IE6 and higher can do a good job on display:inline-block as long as  
the original HTML object was inline or inline-block to begin with. So,  
it would not work on LI elements, but a series of A elements (without  
the list structures) should work. Just an FYI. 
Received on Saturday, 26 September 2009 21:00:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:29 UTC