|
Posted by Toby Inkster on 04/26/06 02:21
Steve Pugh wrote:
> 1. Width doesn't apply to inline elements.
True, but it does apply to inline-block, which is supported by IE, Opera
and Safari; and to "-moz-inline-box" which is Mozilla's experimental
implementation of the same thing.
Try:
element {
display: inline;
display: -moz-inline-box;
display: inline-block;
}
That way a browser will choose the last display property it supports; and
most will end up with inline-block. Then you'll have an element that
mostly behaves like it's inline, but with working "height" and "width"
properties.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|