|
Posted by Spartanicus on 12/19/05 16:34
"David Graham" <david.graham18@ntlworld.com> wrote:
>Could someone explain what sort of thing you could do to a span to alter its
>display and thereby turn it into a replaced inline element (which according
>to logic would respond to the width property).
You can't "turn it into a replaced inline element". You can set the CSS
display property to "block" (display:block), or to "inline-block"
(display:inline-block), the width property applies to both. The
"inline-block" value is supported by IE5.5+, Opera 7+, recent iCabs and
recent KHTML based browsers (Safari, Konqueror). Inline-block is *not*
supported by Gecko based browsers (Firefox, Mozilla suite).
--
Spartanicus
[Back to original message]
|