CSS isn't magic
Subscribe
Sign in
Home
Archive
About
Latest
Top
Discussions
height 100dvh wins height 100vh
If we use vh units for the height property it won’t consider mobile UI bar size changes.
Mar 11
•
Stas Melnikov
aspect-ratio is a page jump pill
Page jumps after loading pictures is a pain.
Mar 4
•
Stas Melnikov
February 2026
Focus styles aren't equivalent to hover styles
Note!
Feb 25
•
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.
Feb 18
•
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.
Feb 11
•
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.
Feb 4
•
Stas Melnikov
1
January 2026
Сustom checkboxes are on steroids with :has()
Jan 28
•
Stas Melnikov
2
height 100dvh wins height 100vh
If we use vh units for the height property it won’t consider mobile UI bar size changes.
Jan 21
•
Stas Melnikov
aspect-ratio is a page jump pill
Page jumps after loading pictures is a pain.
Jan 14
•
Stas Melnikov
4
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
1
December 2025
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
1
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
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts