modern.css

26 posts

modern.css

modern.css

@moderncss

Curated collection of modern CSS code snippets. Every old CSS hack next to its clean, native replacement, side by side.

Interwebz 加入时间 Şubat 2026
25 关注59 粉丝
modern.css 已转推
Chrome for Developers
Chrome for Developers@ChromiumDev·
CSS shape() is now Baseline Newly Available → goo.gle/47nnZBG The shape() function allows you to create responsive, complex paths for layouts and animations using standard CSS units like %, rem, and calc().
English
3
16
223
21.1K
modern.css 已转推
MDN Web Docs
MDN Web Docs@MozDevNet·
CSS nesting is now Baseline 🎉 Write nested selectors directly in CSS — just like Sass, but natively. .card { color: black; &:hover { color: blue; } .title { font-weight: bold; } } No preprocessor needed. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
English
35
179
1.6K
67.1K
modern.css 已转推
Victor
Victor@vponamariov·
Modals suck. Want them to suck less? Use overscroll-behavior: contain;
Victor tweet media
English
15
40
802
35.6K
modern.css 已转推
Syntax
Syntax@syntaxfm·
all there is to say is JUSTICE FOR @cassidoo
Syntax tweet media
English
8
3
60
22.7K
modern.css 已转推
IP
IP@ipwanciu·
Put this into your main CSS file; it won't break your app, I promise! 👇 Your customers will thank you!
IP tweet media
English
29
62
1.8K
289.3K
Wes Bos
Wes Bos@wesbos·
only 5% of you have picked me to win MadCSS?! Hurts. At least I'm not Scott 2linsky
Wes Bos tweet media
English
15
3
136
44.4K
modern.css 已转推
Wes Bos
Wes Bos@wesbos·
When did they add this? Chrome devtools now shows the computed step values for css calc + variables Makes debugging 100x easier
Wes Bos tweet media
English
22
67
1.1K
44.6K
modern.css 已转推
Ronald Rey
Ronald Rey@reyronald·
One of the best websites I've come across recently, I had a bunch of these already that I've saved myself over the years so glad to see them compiled openly in such a neat way Thank you so much whoever built this modern-css.com
English
1
2
3
132
modern.css 已转推
Sousa
Sousa@TiagoSousa0·
just came across @moderncss, perfect timing as i’m building a UI library, where a lot of this good techniques will be useful
English
0
1
1
99
modern.css 已转推
Camille Roux
Camille Roux@CamilleRoux·
Tous les hacks CSS d'avant à côté de leur équivalent moderne et natif : une collection de snippets bien utile pour nettoyer son code @moderncss modern-css.com
Camille Roux tweet media
Français
2
14
151
11.9K
tara_
tara_@TechByTaraa·
What was the first code editor you ever used?
tara_ tweet media
English
425
14
335
28.2K
Zubair Ibn Zamir
Zubair Ibn Zamir@ZubairIbnZamir·
@moderncss you guys are hosted your website on very bad hosting. (H word) please change. its shows boolshit captcha.
English
1
0
0
23