Previous Message
Next Message

display: -moz-inline-box; (&) inline-block;

Sent by Michael Hulse on 19 December 2005 00:12


Hi!

On Dec 18, 2005, at 6:07 AM, Philippe Wittenbergh wrote:
> Without knowing what you're trying to do, have you tried with display/
> table+display:table-cell?
>
> Here is a little experiment I did with various display types for a
> 'navbar' kind of things:
> <http://dev.l-c-n.com/inline-block/inline-list.php>

Thanks so much for responding Philippe! I really appreciate your time.  
:)

Also, thanks for the link, that looks very helpful.

Actually, I am happy you responded. For my horizontal menu, I started 
with your menu examples found here:

http://www.l-c-n.com/IE5tests/phantom-links/test_2b.html
http://www.l-c-n.com/IE5tests/phantom-links/inline-block_list.php

(Using pieces of above two menus, I ended up with a centered horizontal 
menu that is not floated and avoids phantom links on a Mac.)

The above and other menus/code found on your site work wonders (esp. 
for the Mac)! Thanks!

Question: in my horizontal menu, I ended-up using -moz-inline-box like 
so:

	.nv dl dd a {
			color: #fff;
			line-height: normal;
			letter-spacing: normal;
			padding: .2em 1em;
			display: -moz-inline-box; /* Fixes Firefox */
			display: inline-block;
		}

Using above code as example, would it be possible for you to explain 
how I could replace -moz-inline-box with 
display/table+display:table-cell?

I just downloaded Firefox 1.5/Mac, the above seems to work good... but 
not sure on a PC. Will have to test later...

I am looking on the wiki now, but does anyone have any good links that 
could help explain how/when I would apply 
display/table+display:table-cell?


Thanks Philippe and Ingo! I really appreciate your responses!   :D
Cheers,
Micky.

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: