PDA

View Full Version : Enlarge image (div) when stretching your windowsize


nathalievdpeijl
08-31-2010, 01:12 PM
Hi,

I've got a question; how do I get my image (an ap-div, with a position of 0 left and 0 top) to stretch with the window? So it will enlarge when you want to enlarge your screen?

Hope anyone can help me....

Thanx!

Greets!

DWcourse
08-31-2010, 10:00 PM
Enlarging a div or an image inside the div are two different things but the trick in either case will be to set the width (and possibly the height) as a percentage of the parent container using CSS.