Re: inline-block in CSS 2.1 (was: New drafts, CSS 2.1, ...)

On Tuesday 06 August 2002 7:08 pm, Rijk van Geijtenbeek wrote:
|  > CSS 2.1
|  >     CSS level 2 revision 1
|  >     http://www.w3.org/TR/2002/WD-CSS21-20020802/
|  ..
|  > css3-ui
|  >     CSS3 module: Basic User Interface
|  >     http://www.w3.org/TR/2002/WD-css3-ui-20020802
|
|  <quote from CSS3-UI>
|
|  Note. It is expected that CSS2.1 will add the 'inline-block' value to
|  the 'display' property. At that point, this draft can simply refer to
|  CSS2.1 and omit the definition of 'inline-block'
|
|  </quote>
|
|  I checked out 'inline-block' in the CSS2.1 WD. This seems an major
|  (and useful) addition to me. Is this actually supported yet?
|

Yes, by MS IE6/Windows and Mac IE 5.x

|  When using such an inline-block, I'd expect to be able to use the
|  style property 'verticl-align' on it. The definition of
|  'vertical-align' says:
|
|  Applies to:
|  inline-level and 'table-cell' elements

Good question...
In my opinion, 'inline-block' is more close to 'block' than to 'inline' 
elelment, so you can't align it in the same way as inline-level and 
'table-cell' elements

|
|  There's no easy way to find out what constitutes 'inline-level
|  elements'. I found this:
|
|  http://www.w3.org/TR/2002/WD-CSS21-20020802/visuren.html#q7
|
|
|  <quote from CSS 2.1>
|
|  Inline-level elements are those elements of the source document that
|  do not form new blocks of content; the content is distributed in lines
|  (e.g., emphasized pieces of text within a paragraph, inline images,
|  etc.). Several values of the 'display' property make an element
|  inline: 'inline', 'inline-table', and 'run-in' (part of the time; see
|  run-in boxes). Inline-level elements generate inline boxes.
|
|  </quote>
|
|  inline-block should be added to the last sentence, but the description
|  of 'do not form new blocks' seems silly for 'inline-block' and
|  'inline-table'.
|
|  Greetings,
|   Rijk                            mailto:rijk@iname.com

-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/

Received on Wednesday, 7 August 2002 03:31:36 UTC