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…
modern.css retweeted
💡 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.
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…
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:
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…
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
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;
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…
modern.css retweeted
🤔 CSS is just styling, they said
Meanwhile CSS with :where() and :has() to look like SQL queries
modern.css retweeted
What we can do with modern CSS is impressive! 🤩
A cool demo is in progress. Stay tuned! 👀
modern.css retweeted
CSS小技✨
文章の最大幅にpxを使うな!
レスポンシブ用に width: min(90%, ○○px)と
1行で書くモダンな設計思想💻
でも上限にpxを使うと、文字を大きくした時に
不自然な改行で大崩れする🤔
正解は【width: min(90%, ○○ch)】
文字の拡大に合わせて枠ごと広がる👍
#CSS #Web制作 #100DaysOfCode
modern.css retweeted
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
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! ❤️
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…
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…
modern.css retweeted
I made an interactive demo showing clamp() in action and comparing it to traditional CSS media queries (link below):
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/…
























