Default browser highlights in auto-filled fields can clash with a siteβs design. By leveraging the
:-webkit-autofill pseudo-class, developers can override these styles and ensure consistent branding across modern browsers.Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€32π4
Please open Telegram to view this post
VIEW IN TELEGRAM
β€59π₯17π12
Please open Telegram to view this post
VIEW IN TELEGRAM
β€22π₯2
Please open Telegram to view this post
VIEW IN TELEGRAM
β€14π2π₯1
Once you start using it in different contexts, you realize itβs a small tweak that can make a big difference in user experience, design aesthetics, and even performance optimization.
Please open Telegram to view this post
VIEW IN TELEGRAM
β€32π6
Assume you have a 5x5 grid in CSS. There are items spanning different sizes, but no fixed to any specific position.
π€© For such cases, using a "dense" mode for grid-auto-flow property allows you to "fill in the gaps" created by previous elements, by pushing latter elements that fit into the gap
πΌ This could be helpful for things like an image gallery, where you have random sizes of elements
π Sample code snippet:
π€© For such cases, using a "dense" mode for grid-auto-flow property allows you to "fill in the gaps" created by previous elements, by pushing latter elements that fit into the gap
πΌ This could be helpful for things like an image gallery, where you have random sizes of elements
.grid {
grid-template-rows: repeat(5, 10rem);
grid-template-columns: repeat(5, 10rem);
}
.item-2 {
grid-row-end: span 2;
grid-column-end: span 2;
}Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€24π5π₯2
Please open Telegram to view this post
VIEW IN TELEGRAM
β€10π10
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1β€60π11π₯1