Loading ...
Sorry, an error occurred while loading the content.

1887Image Tags and Carriage Returns

Expand Messages
  • mikew@wtribe.com
    May 31, 2001
    • 0 Attachment
      After trying to figure this out for a long, long time, I almost
      accidentally discovered that inserting a carriage break before or
      after an image tag will change the way that the image is displayed in
      IE or NS.

      For example:

      <IMG SRC="a.jpg"><IMG SRC="b.jpg">

      displays differently than:

      <IMG SRC="a.jpg">
      <IMG SRC="b.jpg">

      (The second example has a 4 pixel gap between the images, while the
      first example doesn't.)

      Here's another example:

      <TD><IMG SRC="a.jpg"></TD>
      <TD><IMG SRC="b.jpg"></TD>

      displays differently than:

      <TD>
      <IMG SRC="a.jpg">
      </TD>
      <TD>
      <IMG SRC="b.jpg">
      </TD>

      (Again, the second example has a 4 pixel gap between the images, even
      with cellpadding and cellspacing set to zero in the <TABLE> tag.)

      Can anyone explain this to me or provide me with some related tips?

      Thanks,

      Mike Wilkinson
    • Show all 5 messages in this topic