Description: A blog from the Ritter Insurance Marketing Software development department, a.k.a. RIMdev
The Pets of RIMdev Search Close Never Get Bit by z-index Again Ted Krueger frontend css custom properties Leveling Up Your Project Testing with tSQLt Unit Tests for SQL Queries Cheng Yang .NET SQL tSQLt Unit Tests Creating A Pagination Component With Astro Ted Krueger Astro JavaScript frontend Generating your own fonts with Fantasicon Kevin Hougasian Fonts Icons Design UI/UX CSS Using custom elements and pinia with Vue 3 Jaime Jones JavaScript Vue pinia RIMdev Radio: Building with Astro Ryan Trimble Astro S
Sometimes I do things that make me very pleased with myself. I try to remain humble, but this is something that I thought fell into the too-good-not-to-share category. It has to do with z-index. Something that can be a developers worst enemy when writing css. What I’m about to share with you will hopefully ensure you never lose your z-index order again.
I’ve been trying to use a lot more custom properties when writing css. So far, it has allowed us to write cleaner and more customizable css. Typically I think of values like color, font-size, and size (height, width) as values where you might set a custom property. I never thought to use one for setting z-index on a component. Until today.