Re: [css-d] alternative to inline-block

2006-09-07 Thread Bradley Wright
Is there an alternative to display:inline-block that will give a div hasLayout? It goes a bit against the validation grain, but I suggest using: zoom: 1; in a separate CSS file hidden from the validator by conditional comments. It's a little more future-proof (since it's a proprietary

Re: [css-d] alternative to inline-block

2006-09-07 Thread Philippe Wittenbergh
On Sep 8, 2006, at 12:37 AM, Brian Cummiskey wrote: I have a menu that is floated, and the only way it renders correctly in ie6 is if it gets a hasLayout attribute. I added display: inline- block to the container div, and all is well. except, it doesn't validate. If that menu is

Re: [css-d] alternative to inline-block

2006-09-07 Thread Brian Cummiskey
Philippe Wittenbergh wrote: If that menu is floated, it already 'hasLayout' [1] I suspect something else is going on with it. Do you have a sample url ? No sample URL to post right now, but Here's the basic markup and css: div id=wrapper mast head/// div id=navbar ul

Re: [css-d] alternative to inline-block

2006-09-07 Thread Philippe Wittenbergh
On Sep 8, 2006, at 1:28 PM, Brian Cummiskey wrote: Philippe Wittenbergh wrote: If that menu is floated, it already 'hasLayout' [1] I suspect something else is going on with it. Do you have a sample url ? No sample URL to post right now, but Here's the basic markup and css: [snip]

Re: [css-d] alternative to inline-block

2006-09-07 Thread Brian Cummiskey
Aha. #navbar is not floated. And yes it better has 'layout' in order to contain and constrain the floated ul inside of it. options as 'layout triggers': width, height, zoom:1, Zoom:1 is probably the best option: hidden from other browsers, and will work for both IE 6 and 7. If you