The line-clamp property is a way to truncate text at a specific number of lines. At time of writing the spec is currently in Editor's Draft which means it could change before it's first published.
What Happens When Border Radii Overlap? | CSS-Tricks
I’d wager that most times we’re rounding box corners in CSS, we’re applying a uniform border-radius value across the border. It’s a nice touch of polish
Do you know the feeling when a subject never lets you go? In the last years, I
have worked with different graphics programs and have written many lines of CSS.
Even though it is now easy to copy CSS code for gradients directly from e.g.
Figma, I always had the feeling that gradients in graphics programs behave
somewhat differently than gradients created with CSS. Especially the angle of a
gradient sometimes seemed more like a random product to me. In the end, copying
the CSS code often leads to
More Control Over CSS Borders With background-image | CSS-Tricks
You can make a typical CSS border dashed or dotted. For example: .box { border: 1px dashed black; border: 3px dotted red; } You don't have all that much
content-visibility: the new CSS property that boosts your rendering performance
The CSS content-visibility property enables web content rendering performance benefits by skipping rendering of off-screen content. This article shows you how to leverage this new CSS property for faster initial load times, using the auto keyword. You will also learn about the CSS Containment Spec and other values for content-visibility that give you more control over how your content renders in the browser.
Back in May, I learned about Firefox adding masonry to CSS grid. Masonry layouts are something I've been wanting to do on my own from scratch for a very
Modern CSS Techniques To Improve Legibility — Smashing Magazine
In this article, we cover how we can improve websites legibility using some modern CSS techniques, great new technologies like variable fonts and putting into practise what we learned from doing scientific researches.
Fluid Images in a Variable Proportion Layout | CSS-Tricks
Creating fluid images when they stand alone in a layout is easy enough nowadays. However, with more sophisticated interfaces we often have to place images