My favorite CSS hacks

My favorite CSS hacks [Thumbnail image]
As it is with every coding language, there are several shortcuts or hacks with CSS that allow you to write cleaner code, improve design elements, and save valuable time. Furthermore, you can directly insert these snippets to your site using a code editor. And here is my favorite CSS Hacks. Inherit box sizing The border-box […]

Detect dark or light system mode

Detect dark or light system mode [Thumbnail image]
As developer, I do prefer dark schema for system and all my apps except Gmail on mobile 🙂 Emails still not so friendly for dark theme mode 🙂 Detect with CSS media query The prefers-color-scheme CSS media feature is used to detect if the user has requested a light or dark color theme. The user […]