2 replies [Last post]
earph
earph's picture
Offline
Enthusiast
Austin, TX
Last seen: 14 years 1 week ago
Austin, TX
Joined: 2003-11-12
Posts: 62
Points: 0

I've tried everything to get my background image to align to the bottom of my DIV. The DIV stretches vertically 100% and I would like the "background-image" to stick to the bottom of the DIV no matter what size it might be.

Any suggestions? I'm stumped.

Thanks!

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 4 years 20 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

Align background-image of DIV to bottom?

Hi

The only thing I can think of is to put a div after the 100% div, and then give it a negative margin-top the same as the height of your image and a z-index under the main div and put the image in that.

Trevor

earph
earph's picture
Offline
Enthusiast
Austin, TX
Last seen: 14 years 1 week ago
Austin, TX
Joined: 2003-11-12
Posts: 62
Points: 0

Align background-image of DIV to bottom?

I ended up figuring it out.

background: url(graphix/phone.gif) no-repeat bottom;