modern.css (@moderncss) header
modern.css (@moderncss) profile picture

Old CSS side by side with modern CSS.

Audit your CSS →
Joined February 2026
Photo by modern.css (@moderncss)Photo by modern.css (@moderncss)Photo by modern.css (@moderncss)
modern.css retweeted
I'm a certified Flexbox Survivor: 3,010 points on the Modern CSS Quiz, 12 of 20 right. Can you beat it? modern-css.com/quiz/score/2q…
1
2
89
CSS小技✨ 画像の上にグラデーションを重ねる3つの方法💻 ① ::before(超定番) ② border-image + fill(モダン) ③ backgroundの複数指定(1行で完結) 実務で一番手軽でおすすめなのは③! CSS1行で疑似要素も不要なのは便利すぎます💡 みんなはどれ使ってる? #CSS #Web制作
5
44
2,432
💡 CSS Tip! Save this code for the future. It's another way to create that famous breakout effect. A strange code, right? Learn how it works 👇 css-tip.com/breakout-backgro… Until better support for border-shape, you will find another way using border-image.
1
7
1
91
18,805
modern.css retweeted
The LH unit in CSS is cool! In my new article, I wrote about it and shared my favorite demos. ishadeed.com/article/lh-unit…
8
46
2,785
modern.css retweeted
You can use pure CSS to truncate texts with ellipsis: .text-element { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30rem; } Make sure the text element or its parent have a width set for it to work:
3
3
20
2,069
modern.css retweeted
✍️ New Article: Rebuilding FIFA Standings Layout with CSS Subgrid I rebuilt FIFA’s standings layout with CSS Grid and subgrid. It starts with the layout problem, then moves into the final solution, with interactive examples along the way, as usual! ishadeed.com/article/fifa-la…
2
7
1
47
6,850
modern.css retweeted
progressively enhanced css scroll-driven parallax animation 👨‍🍳 3 columns use the same @​keyframes driven by container position + calc() to keep things responsive
8
17
261
15,308
CSS小技✨ CSS Gridの可変ルールを証明! 画面幅が縮むと 1️⃣min-content:最初から最小幅なので 左側は微動だにせず右(1fr)だけ縮む。 2️⃣fit-content:右が縮みきった後 自分も折り返して縮む。 後半は上限を150→50pxに絞って効果を証明🎶 動画で一発で分かります💻 #CSS #web制作
4
36
1,575
modern.css retweeted
if you’re dynamically masking a scroll container with css, consider leaving room for the scrollbar instead of masking it too 🧑‍🍳 mask-repeat: no-repeat; mask-size: calc(100% - 10px) 100px;
Scroll masking with CSS scroll animation as a progressive enhancement ⭐️ .scroller { animation: mask-up; animation-timeline: scroll(self); animation-range: 0 1rem; mask-composite: exclude; } @​keyframes mask-up { to { mask-size: 100% 120px, 100% 100%; } }
10
61
5
1,537
214,752
modern.css retweeted
In case you missed it, I wrote about the CSS round() function. ishadeed.com/article/css-rou…
✍️ New Article: Better fluid sizing with round() I wrote about how CSS round() enhances the values you get from clamp() in sizing, typography, and spacing. Why it matters, and how to use it. 🔗 ishadeed.com/article/css-rou…
4
42
4,350
modern.css retweeted
🤔 CSS is just styling, they said Meanwhile CSS with :where() and :has() to look like SQL queries
7
42
2,446
What we can do with modern CSS is impressive! 🤩 A cool demo is in progress. Stay tuned! 👀
9
10
139
12,209
CSS小技✨ 文章の最大幅にpxを使うな! レスポンシブ用に width: min(90%, ○○px)と 1行で書くモダンな設計思想💻 でも上限にpxを使うと、文字を大きくした時に 不自然な改行で大崩れする🤔 正解は【width: min(90%, ○○ch)】 文字の拡大に合わせて枠ごと広がる👍 #CSS #Web制作 #100DaysOfCode
1
13
1
125
7,747
Every site has a story to scroll 📖 With the new Scroll-Triggered Animations, you can transform your site into an immersive narrative that keeps your users engaged. Create beautiful time-based animations with zero JS, all natively in CSS. Break free from static UI and create your story in minutes. #GoogleIO
2
24
1
200
12,302
modern.css retweeted
This CSS unit is quietly ruining your website's mobile experience. In mobile, "vh" doesn't account for the browser's address bar so the bottom of your page gets cut off. Even worse if you have a bottom right action button since users won't even know it's there. The "svh" unit fixes it: .page { min-height: 100svh; } If you found this one useful, follow for more! ❤️
5
21
176
11,900
modern.css retweeted
I made this small demo 👇. I needed it! I know there are a few fonts that support tabular numbers by default, but this CSS rule is a game-changer. `font-variant-numeric: tabular-nums` makes numbers look as they should. Play with this little demo here → iprodan.dev/l/font-variant-t…
1
3
14
1,758
modern.css retweeted
Gap decorations are now in Chromium 149 (stable rollout in 5 days)! Shoutout to the folks at @MSEdgeDev for the implementation, post, and demos: developer.chrome.com/blog/ga…
6
20
3
145
11,101
modern.css retweeted
I made an interactive demo showing clamp() in action and comparing it to traditional CSS media queries (link below):
One line of CSS. Perfectly responsive typography on every screen. font-size: clamp(1rem, 1vw, 1.75rem); 🪄 1rem minimum keeps text readable on phones 🪄 1vw makes it scale fluidly with the viewport 🪄 1.75rem caps it elegantly on large displays No media queries or breakpoints. Try it!
7
19
310
32,575
modern.css retweeted
🦊 Firefox 150: color-mix() now accepts more than two colors at once. Mix any number of colors in a single declaration — no more nesting multiple calls. Read Now 👇 developer.mozilla.org/en-US/…
4
44
2,501
modern.css retweeted
New CSS text-fit property chromestatus.com/feature/510…
5
46
4
655
57,494