CSS isn't magic
Subscribe
Sign in
Home
Archive
About
Read the all CSS isn't magic posts right away
When is using display: block for ::before or ::after unnecessary?
Oct 9, 2025
•
Stas Melnikov
Latest
Top
Discussions
aspect-ratio is a page jump pill
Page jumps after loading pictures is a pain.
Jan 14
•
Stas Melnikov
1
Focus styles aren't equivalent to hover styles
Focus styles can’t be equal to hover styles because in this case users have to understand a focus state for every element.
Jan 7
•
Stas Melnikov
Decorative lines are hidden in the Window High Contrast Mode
background-color will be set with the same value for all elements in the Windows High Contrast mode.
Dec 30, 2025
•
Stas Melnikov
You missed this super obvious way to display elements in a column
There is the super short way to display elements in a column.
Dec 24, 2025
•
Stas Melnikov
1
CSS without order dependence
A problem with rule order with the same specificity is noticeable when we have one component with a few modifications.
Dec 17, 2025
•
Stas Melnikov
Сustom checkboxes are on steroids with :has()
The next-sibling combinator has one disadvantage.
Dec 10, 2025
•
Stas Melnikov
height 100dvh wins height 100vh
If we use vh units for the height property it won’t consider mobile UI bar size changes.
Dec 3, 2025
•
Stas Melnikov
See all
CSS isn't magic
the tips that help to break the stereotype CSS is magic
Subscribe
Recommendations
DevA11y
Stas Melnikov
The UX&a11y tips
Stas Melnikov
Angular Addicts
Gergely Szerovay
All Things Typescript
Maina Wycliffe
CSS isn't magic
Subscribe
About
Archive
Recommendations
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts