DEV Community

Discussion on: CSS: bad parts

Collapse
 
muhammedyousrii profile image
Muhammed Yousrii • Edited

We can use SASS to overcome this problem, we can achieve that by making a separate file, let's call it z-indexes-defaults which will contain all the z-indexes definitions for the main elements that will overflow on each other or on the base content,

That will prevent us from facing such a problem and all your all z-indexes definitions are in one place and its values are represented by meaningful variables names

Collapse
 
codemouse92 profile image
Jason C. McDonald

I dunno. Somehow this feels more icky than z-indices.