[thelist] aligning two images

Means, Eric D eric.d.means at boeing.com
Thu Apr 18 08:55:00 CDT 2002


> i am wanting to have two images (same height) inside a div - beside each
> other - one aligned to the left, one aligned to the right -- i.e. the
amount
> of horizontal white-space between them to be determined automatically.

One final suggestion noone else has posted:
<div>
  <span style="text-align: left; float: left; width: 49%;"><img
src="left.jpg" alt=""></span>
  <span style="text-align: right; float: right; width: 49%;"><img
src="right.jpg" alt=""></span>
</div>

This works in IE6/Win, Moz0.9.9, and Opera 6/Win.  It doesn't work in NN4,
but it doesn't severely screw anything up, either.



More information about the thelist mailing list