Web Hosting Talk







View Full Version : Is using z-index layers recommended?


thinguy
01-27-2008, 03:44 PM
I'm designing a site of a few pages that has a lot of graphics that will be changing every few weeks but still need to keep an integrated look and feel and be reusable on multiple pages.

I'm finding the use of z-index layers very helpful, seem to work in IE6, IE7 and firefox testing.

I'm wondering if I'm missing something? They've turned what was a bit of a headache to slice,code, and maintain into something nice.

the_pm
01-27-2008, 05:42 PM
I've never found a need to use the z-index style. I suppose in the end, if it works for your visitors and it works for you as a developer, then go for it.

But the only real point of z-index is to give an object depth on the page. If you don't have anything overlapping, z-index really won't do much for you. Applying position:absolute to multiple objects located next to each other in your page's markup will have the same effect, with the last listed item getting the highest "index" level.

Make sure you test font resizing and mobile devices too!