Previous Message
Next Message

Re: [css-d] Fixed width within display:inline

Sent by Alex Robinson on 22 December 2002 14:02


>    'width' doesn't apply to inline elements, and neither does
>'height', as per CSS2.1:10.3.1
>(http://www.w3.org/TR/CSS21/visudet.html#q4).  IE4/Win and IE5/Win
>did improperly apply those properties to inlines, and IE6/Win will do
>the same when in quirks mode.  In standards mode, it won't, and
>neither will other browsers.

Fine. That's what I guessed. Just wanted to make sure it wasn't really
possible.

Actually Opera 7 (well the latest beta in any case) and IE5/Mac also pick
up on widths applied to inline elements when in quirks mode.

  <http://pix.cloudband.com/alex/camelbones/camelweb/InlineListFixedAgain.html>


>    Note that CSS2.1 introduces a new 'display' type called
>'inline-block'
>(http://www.w3.org/TR/CSS21/visuren.html#propdef-display) that allows
>for an inline box to be treated sort of like a block-level element,
>but without the "line breaks" to before and after.  Unfortunately
>browser support for inline blocks is not the best right now, so
>relying on them is dicey.

Hmmm, tasty.
Previous Message
Next Message

Message thread: