Help - Search - Members - Calendar
Full Version: HELP?
Forums > Resource Center > Webmasters' Corner > Resolved Topics
nikx618
what is z-index?
anyone? please help.
what is it used for, &what does it affect?
thaaanks in advance.
Anarchy
Z-index is very clever. It can help you choose which parts of your layout goes on the top or on the bottom, in a stacking manner. Click here, for example.

If you look at the codes, the image class "x" is set to z-index 1. Since you didn't specify a z-index for the words, it's set to default, which is z-index 0. Therefore, the bulb goes on top of the words because its z-index is higher than the words. However, if you change the bulb's z-index to -1, it will go under the text since it's lower than the default z-index.

Yeah, too much z-index. Hopefully, I made at least a little bit of sense.
nikx618
^ohhh, thank you. i never knew what that was, haha.
well, now i do. thanks.


CLOSED & MOVED to resolved topics
right? [:
Anarchy
Haha! No problem. thumbsup.gif
Markster
Just wondering. Is there a minimum or maximum number that you can put for the z-index property?
9001
I believe it's 0-9. I may be wrong, though.
fixtatik
there is no maximum, or minimum for that matter. i know of (poorly designed) sites that were using a z-index of over 1,000,000. for example, myspace. they use a z-index of 100001 in a lousy attempt at keeping the advertisement above everything else.
manny-the-dino
QUOTE(nikx618 @ Jul 25 2008, 06:55 PM) *
CLOSED & MOVED to resolved topics
right? [:

thumbsup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.