From: jameswoody on
How do I position images at the bottom of a div tag?

These images are going to be used as links and Im using a template which will
double there size on certain pages, so I cant use background images.

Please help as I cant believe this isn't possible!
James

From: Randy Edmunds on
James,

> How do I position images at the bottom of a div tag?

One way to do it is to make the div a positioned box by giving it:

position: relative;

Then position the images in that div at the bottom with:

position: absolute
bottom: 0px;

HTH,
Randy
From: jameswoody on
That works in Dreamweaver but not when I preview in firefox or safari.

I have a number of images next to each other and making the position
'absolute' makes them sit on top of each other. This happens in Dreamweaver and
the browsers.

In neither browser do the images go to the bottom, and in safari the images go
to the left rather than center.

james

From: jameswoody on
OK, I've made the div tag position relative,
and the image position absolute with a bottom of 0px.

The image now sits on the bottom of the div tag like I wanted, but I want a
number of images to be next to each other, and at the moment they all on top of
one another.

Im assuming that this is because of the 'absolute' positioning, is there a way
round this?

Thanks
James

From: Randy Edmunds on
> The image now sits on the bottom of the div tag like I wanted, but I want a
> number of images to be next to each other, and at the moment they all on top of
> one another.

Are you giving them a left or right position? I thought that by omitting
that, the horizontal position would flow. If not, then give each one a
unique left position.

If you do not know the widths, and you want them all to flow one after
the other, the make another div as their container, and move the
"position:absolute;right:0px;" styles to the new div.

Randy