CSS div order\hiding images

Soldato
Joined
27 Dec 2005
Posts
17,316
Location
Bristol
I've got a small problem. I have a website with 2 images in each top corner, however because the images are absolute and the rest of my site and content isn't, if you shrink the browser to a smaller size like 1024x768 or less the images appear above the content.

What I want to be able to do is have them go behind, or (as I've seen on some websites) become hidden if there's not enough room for them without overlapping something.

Searched high and low on the internet but found nothing, so hopefully someone here can help.

Cheers guys :)
 
It's not the answer to your problem but I thought I'd make a quick suggestion - would you be able to tackle the problem in some way by using these images as the main background image to the page.

Rgds
 
How about making a div for the entire page which is set to a fixed width? That way the user cannot resize the page to further than this width (eliminating the problem of the images overlapping).

Easiest way I think.
 
Back
Top Bottom