Forum Moderators: open

Message Too Old, No Replies

Two images together side to side.

It lets a margin between them

         

fischermx

6:02 pm on Jan 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So, I have this code :


<div style="float:left;">
<img alt="logo" src="images/logo.gif" />
<img alt="background" src="images/bkgd.gif" />
</div>

What I pretend is that logo aligns on the left and in the same row (both are same height) the background images aligns on the right with perfect fit.
However, both firefox and IE let a space of about 4 pixels between them.
I tried border set to none with same results.
How do I fix achive this?

coho75

6:17 pm on Jan 12, 2006 (gmt 0)

10+ Year Member



Try putting the images on the same line in your file. Something like this:

<div style="float:left;">
<img alt="logo" src="images/logo.gif" /><img alt="background" src="images/bkgd.gif" />
</div>

This seems to have done the trick for me.

Edouard_H

6:19 pm on Jan 12, 2006 (gmt 0)

10+ Year Member



Try applying style="float: left;" to the first image.

fischermx

6:45 pm on Jan 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks a lot!