bades — 2011-04-09T15:37:58-04:00 — #1
Do z-indexes only work if they're being used in the same CSS sheet?
For instance page1.css has an element that has a z-index:1;
and page2.css has an element that a z-index:0;
Will this work? Or do both elements need to be in the same css page?
stevie_d — 2011-04-09T17:06:05-04:00 — #2
It doesn't matter - all linked and embedded CSS will be evaluated and treated the same. It doesn't matter whether you have different elements referenced in different CSS files, or if you have one separate CSS file that deals only with z-indexes, it will work out the same.
(Ok, that ignores the rules of precedence if you have two conflicting rules being applied to the same thing, but assuming you haven't done that, it will work out the same)