CSS

1325 bookmarks
Custom sorting
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
"Dark Mode" vs "Inverted"
"Dark Mode" vs "Inverted"
One thing we run into a fair amount in our design system work is the need to clarify the difference between "dark mode" and "components rendered on a dark background". What is actual dark mode? prefers-color-scheme is a CSS media feature that listens to a user's preference for dark or light
·bradfrost.com·
"Dark Mode" vs "Inverted"
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
CSS is Going Gosh-Darned Hog Wild, I Tell Ya What
CSS is Going Gosh-Darned Hog Wild, I Tell Ya What
As someone just sittin' back watching CSS evolve, it feels like we're at one of the hottest moments of innovation in CSS history. It was really something
·css-tricks.com·
CSS is Going Gosh-Darned Hog Wild, I Tell Ya What
How to understand CSS by Rachel Andrew
How to understand CSS by Rachel Andrew
We often learn CSS via looking for solutions to problems: We need to create a certain layout, or a particular animation, and so we go look for the exact CSS that will make it so. Many web developers today started their careers using a framework, and so much of their experience of CSS is in tweaking the code written by someone else. Too much time is spent trying to overwrite styles, and make customizations, without an understanding of what the underlying framework is actually doing.
·noti.st·
How to understand CSS by Rachel Andrew