Found 307 bookmarks
Newest
Defensive CSS
Defensive CSS
Practical CSS and design tips that helps in building future-proof user interfaces.
·defensivecss.dev·
Defensive CSS
Using mask as clip-path
Using mask as clip-path
When I first learned that the path() function is supported in the clip-path attribute, I was quite excited because it allows clipping with complex shapes other than ellipse or polygons.
·yuanchuan.dev·
Using mask as clip-path
Responsive iframes with the CSS aspect-ratio property
Responsive iframes with the CSS aspect-ratio property
Today, I want to show you can use a few lines of CSS to make your embedded iframes fully responsive. Let’s dig in! The challenge with iframes and responsive layouts Unlike images and the native HTML5 video element, iframes do not scale responsively by default. /** * This does NOT work */ iframe { max-width: 100%; height: auto; } Years back, Dave Rupert put together a great video showing the challenge with responsive iframe videos.
·gomakethings.com·
Responsive iframes with the CSS aspect-ratio property
Practical CSS Scroll Snapping
Practical CSS Scroll Snapping
CSS scroll snapping allows you to lock the viewport to certain elements or locations after a user has finished scrolling. It’s great for building
·css-tricks.com·
Practical CSS Scroll Snapping
aspect-ratio — ppk
aspect-ratio — ppk
This week we’ll take a look at the new aspect-ratio declaration and its use. Una Kravets wrote the introductory article, but there are some additional technical points to be made. I also wrote a little fallback that you might use...
·quirksmode.org·
aspect-ratio — ppk
fit-content and fit-content() — ppk
fit-content and fit-content() — ppk
Today we will look at fit-content and fit-content(), which are special values for width and grid definitions. It’s ... complicated — not as a concept, but in its practical application....
·quirksmode.org·
fit-content and fit-content() — ppk
Writing self-contained layout components in CSS
Writing self-contained layout components in CSS
As developers, when using modern UI libraries and frameworks like React, Vue or Web Components, we often like to write our CSS specifically for a single component. That way we c...
·allround.io·
Writing self-contained layout components in CSS