Forum Moderators: open

Message Too Old, No Replies

Firefox adds space for new lines

         

Emperor

2:23 am on Mar 17, 2006 (gmt 0)

10+ Year Member



Hi,

If I do this:

<img ...>
<img ...>
<img ...>

...I get a gap between the images, but when I do this:

<div style="display: inline"><img ...></div>
<div style="display: inline"><img ...></div>
<div style="display: inline"><img ...></div>

...it fixes it on IE but not on Firefox. I guess I have to put them all on one line but I have anchors and Javascript in there, it's very hard to code that way.

What else can I do?

treeline

2:33 am on Mar 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The browser may be inserting padding or margins between the images, or you may have typed spaces that it's showing.

Try setting in your style for the images margin=0 and border=0.

tedster

3:52 am on Mar 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That sounds like it might be a quirks mode vs, standards mode problem. For more information, see [webmasterworld.com...]