[thelist] aligning two images
kris burford [midtempo]
kris at midtempo.net
Thu Apr 18 08:40:01 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.
i've just done this and used:
<div id="strip"><img src="images/foo.gif" hspace="0"
align="left" width="10" height="10" class="none" alt="" /><img
src="images/bar_right.gif" hspace="0" align="right" width="10"
height="10" class="none" alt="" /></div>
(note, no spaces within the div)
where strip is
#strip {
position: relative;
height:10px;
width: 100%;
padding:0px;
margin:0px;
}
it validates to xhtml transitional. oh, and i found that trying to use
float caused all sorts of cross browser issues.
hth
kris
More information about the thelist
mailing list