W3C home > Mailing lists > Public > www-style@w3.org > January 2003

Image inside inline block

From: Vasiliy Gagin <vasiliy@gazooc.com>
Date: Fri, 10 Jan 2003 01:38:16 -0500
Message-ID: <3E1E6A58.6070902@gazooc.com>
To: www-style@w3.org

Write or wrong?

   <span style="border: solid black">
     Hello <img src="redbox.jpg" width="30" height="30" alt="MAIL"> world
   </span>

As I understand CSS2 spec "red box" and surrounding it "Hello world" 
should form "line box".
And as spec states "A line box is always tall enough for all of the 
boxes it contains."

So I belive my red box should be inside black border. But browsers I 
tried (Mozilla and Opera) display red box partially outside frame (box 
crosses top line of frame).

Question is: am I right and these respectable browsers wrong?

PS. Internet Explorer displayed red box inside frame!! But scrued frame 
itself. Is there any "reliable" browser?
Received on Friday, 10 January 2003 01:38:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:19 GMT