Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€17π6
Want to add dividers between items? But unsure how to handle the last element? This snippet is for you!
This also features the very cool inline direction selection property π€© check it out if you haven't already, they are quite useful
Please open Telegram to view this post
VIEW IN TELEGRAM
π13β€10π₯2
Container queries make components truly smart. They adapt to their space, not the screen.
Once you use them, layout bugs feel like a thing of the past.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€14π5
Please open Telegram to view this post
VIEW IN TELEGRAM
β€14
Please open Telegram to view this post
VIEW IN TELEGRAM
β€3
Ex_Files_CSS_Inheritance_Specificity_Cascade.zip
846.3 KB
Please open Telegram to view this post
VIEW IN TELEGRAM
β€4
Try this the next time when you are placing an icon next to some text in CSS.
Instead of using the em unit to make the icon the same size as the text, try using the cap unit π€©
1em is equal to the font size, which is not a direct measurement of the height of the letters
However, 1cap is the size of a capital letter of the font, which helps to neatly align the icon with the text.
β οΈ You may also need flex and align baseline to achieve an alignment as demonstrated above!
Please open Telegram to view this post
VIEW IN TELEGRAM
β€27π7π₯2
Lazy loading is a strategy to load images only when required (when the browser detects that the user is going to scroll near it)
Please open Telegram to view this post
VIEW IN TELEGRAM
β€18π8
Using the clip-path to create a slanted section in CSS!
More developers should start using clip-path, it is very underrated π you can create any shape you want with it!
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€23π7
Please open Telegram to view this post
VIEW IN TELEGRAM
β€8π2
Please open Telegram to view this post
VIEW IN TELEGRAM
π7