[thelist] aligning two images

Chris axe at suburbia.com.au
Thu Apr 18 05:49:01 CDT 2002


If you need to have the two images in a <div>, you would do it
like this:

<div align='your_align'>
<img src='image1' align='left'>
<img src='image2' align='right'>
</div>

I tested this only in IE6 however.

Regards,
Chris


-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Syed Zeeshan Haider
Sent: Thursday, 18 April 2002 6:36 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] aligning two images


Hi Rachel,
Dreamweaver 4 generated following HTML code for this purpose:

<img src=".../image1.jpg" width="142" height="36" align="left"><img
src=".../image2.jpg" width="142" height="36" align="right">

Note that it did not used any <div> tags, instead, it used "align"
attribute of <img> tag. It works well in IE 5.5, NN 4.7x, NN 6.2, Opera
6. I used separate pairs of <div> tags with "align" attribute for each
image just to check what happens. It dragged the second image downward
by a reasonable height. It means, this did not work in any browser
mentioned above.
Hope this helps.
Syed Zeeshan Haider.
http://syedzeeshanhaider.faithweb.com/

----- Original Message -----
From: "Rachel Cunliffe" <rachel at cre8d-design.com>
To: <thelist at lists.evolt.org>
Date: Thu, 18 Apr 2002 15:37:53 +1200
Subject: [thelist] aligning two images
Reply-To: thelist at lists.evolt.org

hiya..

this is probably so simple i'm gonna kick myself..

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.

can someone enlighten me please?

tia muchly
rachel






--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !




More information about the thelist mailing list