On 10 Jun 2005, at 8:39 am, Ricky Morley wrote:
Regarding this test page http://www.rickymorley.com/test.html
I wish to have a series of div's that I can display next to one
another. I can then format then as I wish. I can't float them, because
that will force them either right or left, but I wish to have them
centered in their containing div.
In the test page, I gave the divs the style "display: inline-block".
That gives the desired effect in Opera, but only Opera. Indeed, if you
have Opera installed, my test page works perfectly in that browser, so
you can see my desired effect. But neither IE nor Firefox seem to
support inline-block.
Inline-block is supported by (from good to less):
Safari, iCab 3.0, Opera, IE Mac.
IE win (5.5 and 6) do support inline-block for elements 'whose natural
display is inline' (according MS docs).
For Gecko browsers (Firefox), you can use the vendor specific property
display: -moz-inline-box.
Some demo files
<http://www.satzansatz.de/cssd/tmp/inlineblock.html>
<http://www.brunildo.org/test/inline-block3.html>
Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com/>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/