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?