Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Try to use a css preprocessor like sass, less, stylus.

Now make a file Called z-index.styl

Make variables for all your z indexes used in the app, organized by stack level

Do not use a z-index directly in css. Always use a variable after you import the file. This means you can see all the z-indexes in the app and change them atomically if you want.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: