W3C home > Mailing lists > Public > www-style@w3.org > July 1997

margin support in IE vs NS vs spec

From: Sho Kuwamoto <skuwamoto@macromedia.com>
Date: Wed, 2 Jul 1997 14:51:13 -0700
Message-Id: <v03007816afe07ac03caf@[192.168.65.140]>
To: www-style@w3.org
I notice that both IE and Netscape seem to treat margins
in a funny way when applying them to inline elements.

Source:
  Before before before. <span style="margin-left: 1cm">This is
  inside the span. I have to make this part long in order
  to make the example make sense.</span> After after after.

as rendered on IE4:
  Before before before. This is inside. I have to make this part
       long in order to make the example make sense. After
  after after.

Netscape renders it similarly, except that the sentence starting
with "This is inside" actually moves left so that it starts
1cm from the edge of the canvas and overlaps the text which
came before it.

My reading of the spec suggests that the proper rendering
for margins on inline elements is thus:

                     1cm of space
                         |
                         V
  Before before before.      This is inside. I have to make
  this part long in order to make the example make sense. After
  after after.

Is my understanding correct?

-Sho
Received on Wednesday, 2 July 1997 17:41:40 GMT

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