CSS

1304 bookmarks
Custom sorting
Create Responsive Image Effects With CSS Gradients And aspect-ratio — Smashing Magazine
Create Responsive Image Effects With CSS Gradients And aspect-ratio — Smashing Magazine
A classic problem in CSS is maintaining the aspect ratio of images across related components, such as cards. The newly supported `aspect-ratio` property in combination with `object-fit` provides a remedy to this headache of the past! Let’s learn to use these properties, in addition to creating a responsive gradient image effect for extra flair.
·smashingmagazine.com·
Create Responsive Image Effects With CSS Gradients And aspect-ratio — Smashing Magazine
What the heck, z-index??
What the heck, z-index??
The z-index property can be a tricky little bugger. Sometimes, no matter how much you crank up the number, the element never rises to the top! In this article, we explore stacking contexts, and see how they can thwart our efforts to use z-index. We'll also learn how to use this mechanism to our advantage.
·joshwcomeau.com·
What the heck, z-index??
Getting Deep into Shadows | CSS-Tricks
Getting Deep into Shadows | CSS-Tricks
Let’s talk shadows in web design. Shadows add texture, perspective, and emphasize the dimensions of objects. In web design, using light and shadow can add
·css-tricks.com·
Getting Deep into Shadows | CSS-Tricks
Things You Can Do With CSS Today — Smashing Magazine
Things You Can Do With CSS Today — Smashing Magazine
The present and future of CSS are very bright indeed and if you take a pragmatic, progressive approach to your CSS, then things will continue to get better and better on your projects, too.
·smashingmagazine.com·
Things You Can Do With CSS Today — Smashing Magazine
min(), max(), and clamp(): three logical CSS functions to use today
min(), max(), and clamp(): three logical CSS functions to use today
Min, max, and clamp provide some powerful CSS capabilities that enable more responsive styling with fewer liens of code. This post goes over how to control element sizing, maintain proper spacing, and implement fluid typography using these well-supported CSS math functions.
·web.dev·
min(), max(), and clamp(): three logical CSS functions to use today