The min() function allows us to define values, and browsers will choose the smallest value from them. How can it be used? Define the width and max-width properties in one line ☝️ ❤ Thank you so much, my sponsors: Ben Rinehart, Tatiana Ten
Did you use the top, right, bottom and left properties to stretch elements over the full width and height of the parent? 🤔 Reduce it to one line with…
Folks, did you define display: flex or display: inline-flex to the parent? Yeap? Stop defining display: block for ::before or ::after. Browsers make it…
I'm angry when controls merge with a white screen before loading pictures. Uh uh, why don't you show me them?😡It's easy to add background-color if you…
How do you define basic typography styles? If you set styles via the type selector and reset via class I'll offer to make it without resetting. Just use…
Motion animation might lead users with vestibular disorders to experience dizziness 😩 So we should wrap it in prefers-reduced-motion to avoid problems…
Please, stop using outline: none 🤚 We have another solution! Just reset outline with :focus:not(:focus-visible) for users who click on controls and…
We used to use resize: none to disable textarea resizing. We end up textareas are terrible for typing data😒 resize: vertical and limit height resizing…
See all

CSS isn't magic