Today I encountered a problem when a rogue z-index property caused problems. Ok, it happens, but the problem was finding the place where it was declared.
Browser shows inline style, but in markup it's empty, searching solution wide for z-index: 1001
also gave nothing.
Finally I found it in some JavaScript
$("#header").css({
//other props
"z-index": "1001"
});
This gave me some ideas about how it should be done, but I'm not sure.
The Question:
Is it better to change CSS from JavaScript prop by prop or make multiple CSS classes and change elements class from JS?
I am inclined to use multiple classes, but another option is welcomed.