Z-Index

K

Kevin Spencer

Yes.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
M

Murray

Why not make the image the page's background?

Imagine this -

1. A page with a background image.
2. A layer with a z-index of 1
3. A layer with a z-index of -1

IE5+ will show the background image on the page, then the layer with z-index
of -1 above the background image, but below the layer with the z-index of 1.

Netscape will show the background image on the page, and the layer with the
z-index of 1. The layer with the z-index of -1 is below the page (hence
masked by the page's background image).
 
M

Murray

- I want the picture to appear at a specific place. If I set it as a
background image, it would be hard for me to position it.

Actually, not. With CSS, you can position the image on the background of
the page, and it's supported in all modern browsers, e.g.,

body { background-position: top center; }

or

body { background-position: 25px 340px; }
- I want different background picture for different web pages and making
such a vast number of background image will take up plenty of space, as well
as slowing down the time required to download the picture.

I'm not sure I follow you here. You are going to have to make separate
images anyhow, no? You would have to download them anyhow, no? Where is
the difference?
- I want the background to appear once only, but I don't want it to be
watermarked either.

That's no problem either - again, CSS to the rescue -

body { background-repeat:no-repeat; }
So I think layer would be a solution for me.

Clearly not....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top