A quick way to create a chat message element in css
π One confusing part might be the clip-path, it is used to clip an element to a particular shape
In this case, the shape is a triangle with three points - top left (0 0), top right (100% 0) and bottom left (0 100%)
π One confusing part might be the clip-path, it is used to clip an element to a particular shape
In this case, the shape is a triangle with three points - top left (0 0), top right (100% 0) and bottom left (0 100%)
β€16π4π₯1
Please open Telegram to view this post
VIEW IN TELEGRAM
β€8
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€13π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
π11β€6π₯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
β€12π4
Please open Telegram to view this post
VIEW IN TELEGRAM
β€8
Please open Telegram to view this post
VIEW IN TELEGRAM
Ex_Files_CSS_Inheritance_Specificity_Cascade.zip
846.3 KB
Please open Telegram to view this post
VIEW IN TELEGRAM
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
β€5π2