CSS isn't magic
Subscribe
Sign in
Home
Archive
About
Latest
Top
Discussions
The June CSS isn't magic newsletter
You missed this super obvious way to display elements in a column
Jun 1
•
Stas Melnikov
May 2026
Сustom checkboxes are on steroids with :has()
The next-sibling combinator has one disadvantage.
May 6
•
Stas Melnikov
April 2026
height 100dvh wins height 100vh
If we use vh units for the height property it won’t consider mobile UI bar size changes.
Apr 29
•
Stas Melnikov
aspect-ratio is a page jump pill
Page jumps after loading pictures is a pain.
Apr 22
•
Stas Melnikov
You can read the all CSS isn’t magic posts right away
Hey! I wanted to let you know that I have private posts about CSS.
Apr 16
•
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.
Apr 15
•
Stas Melnikov
1
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.
Apr 8
•
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.
Apr 1
•
Stas Melnikov
March 2026
CSS without order dependence
A problem with rule order with the same specificity is noticeable when we have one component with a few modifications.
Mar 25
•
Stas Melnikov
Сustom checkboxes are on steroids with :has()
The next-sibling combinator has one disadvantage.
Mar 18
•
Stas Melnikov
1
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
3
aspect-ratio is a page jump pill
Page jumps after loading pictures is a pain.
Mar 4
•
Stas Melnikov
1
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts