You Want border-color: transparent, Not border: none
Dave Rupert explains why, instead of removing the border from elements entirely, you should set the border-color to transparent instead. - https://frontendmasters.com/blog/you-want-border-color-transparent-not-border-none
#css
Dave Rupert explains why, instead of removing the border from elements entirely, you should set the border-color to transparent instead. - https://frontendmasters.com/blog/you-want-border-color-transparent-not-border-none
#css
Frontendmasters
You Want border-color: transparent, Not border: none – Frontend Masters Boost
If you find yourself removing a border from an element that has a border and are tempted to use border: 0 , border: none, or outline: none, I’d urge you to stop for a moment and reconsider. It’s like the old G.K. Chesterton saying about fences: Do not remove…
A highly configurable switch component using modern CSS techniques
Andy Bell shows how to build a highly configurable switch component using modern CSS, such as :has(), container queries, Logical Properties, and Custom Properties. - https://piccalil.li/blog/a-highly-configurable-switch-component-using-modern-css
#css
Andy Bell shows how to build a highly configurable switch component using modern CSS, such as :has(), container queries, Logical Properties, and Custom Properties. - https://piccalil.li/blog/a-highly-configurable-switch-component-using-modern-css
#css
Piccalilli
A highly configurable switch component using modern CSS techniques
Learn These Viewport-Relative CSS Units (100vh, 100dvh, 100lvh, 100svh)
George Martsoukos covers the challenges of working with the classic 100vh unit to make full-screen sections and discusses some alternative CSS units. - https://webdesign.tutsplus.com/learn-these-viewport-relative-css-units-100vh-100dvh-100lvh-100svh--cms-108537t
#css
George Martsoukos covers the challenges of working with the classic 100vh unit to make full-screen sections and discusses some alternative CSS units. - https://webdesign.tutsplus.com/learn-these-viewport-relative-css-units-100vh-100dvh-100lvh-100svh--cms-108537t
#css
Web Design Envato Tuts+
Learn These Viewport-Relative CSS Units (100vh, 100dvh, 100lvh,...
In this tutorial, we’ll cover the challenges when working with the classic 100vh unit for making full-screen sections and discuss some great alternative CSS units.
Creating Wavy Circles with Fancy Animations in CSS
Temani Afif shows how to create flower-like animated shapes using modern CSS. - https://frontendmasters.com/blog/creating-wavy-circles-with-fancy-animations
#css
Temani Afif shows how to create flower-like animated shapes using modern CSS. - https://frontendmasters.com/blog/creating-wavy-circles-with-fancy-animations
#css
Frontendmasters
Creating Wavy Circles with Fancy Animations in CSS – Frontend Masters Boost
In a previous article, we created flower-like shapes using modern CSS (mask, trigonometric functions, etc). This article is a follow-up where we will create a similar shape and also introduce some fancy animations. Here is a demo of what we are building.…
CSS Button Styles You Might Not Know
David Bushell shares a few lesser-known CSS styles that can enhance your buttons. - https://dbushell.com/2024/03/10/css-button-styles-you-might-not-know
#css
David Bushell shares a few lesser-known CSS styles that can enhance your buttons. - https://dbushell.com/2024/03/10/css-button-styles-you-might-not-know
#css
dbushell.com
CSS Button Styles You Might Not Know – David Bushell – Freelance Web Design (UK)
The one where I demo some lesser-known CSS for stylin’ buttons
Desert Racer: World's First CSS-Only Swipe-Aware Game!
Philip Warkentien II created a CSS-only, no JS, no checkbox, swipe-aware (scroll-aware) game. In this article, you’ll learn exactly how it was built. - https://dev.to/warkentien2/desert-racer-worlds-first-css-only-swipe-aware-game-4j0h
#css
Philip Warkentien II created a CSS-only, no JS, no checkbox, swipe-aware (scroll-aware) game. In this article, you’ll learn exactly how it was built. - https://dev.to/warkentien2/desert-racer-worlds-first-css-only-swipe-aware-game-4j0h
#css
DEV Community
Desert Racer 🏜️: World's First CSS-only Swipe-Aware Game!
A CSS-only, no JS, no checkbox, swipe-aware (scroll-aware) game. With config options and...
An Interactive Guide to CSS Container Queries
Ahmad Shadeed shares an interactive guide to container queries, explaining the problems they solve, how they work, and how you can use them today in your workflows. - https://ishadeed.com/article/css-container-query-guide
#css
Ahmad Shadeed shares an interactive guide to container queries, explaining the problems they solve, how they work, and how you can use them today in your workflows. - https://ishadeed.com/article/css-container-query-guide
#css
Ishadeed
An Interactive Guide to CSS Container Queries
Learn how to use CSS container queries today.
Setting And Persisting Color Scheme Preferences With CSS And A “Touch” Of JavaScript
Henry Bley-Vroman will walk you through a new possibility to implement Dark Mode that leans into cutting-edge CSS, with minimal JavaScript to support persisting the user’s color scheme preference across pages. - https://www.smashingmagazine.com/2024/03/setting-persisting-color-scheme-preferences-css-javascript
#css
Henry Bley-Vroman will walk you through a new possibility to implement Dark Mode that leans into cutting-edge CSS, with minimal JavaScript to support persisting the user’s color scheme preference across pages. - https://www.smashingmagazine.com/2024/03/setting-persisting-color-scheme-preferences-css-javascript
#css
Smashing Magazine
Setting And Persisting Color Scheme Preferences With CSS And A “Touch” Of JavaScript — Smashing Magazine
There are many ways to approach a “Dark Mode” feature that respects a user’s system color scheme preferences and allows for per-site customization. Henry Bley-Vroman walks through a new possibility that leans into cutting-edge CSS, with minimal JavaScript…
Infinite-Scrolling Logos In Flat HTML And Pure CSS
Silvestar Bistrović demonstrates a CSS-only technique to create an infinite-scrolling list of images with as little HTML as possible. - https://www.smashingmagazine.com/2024/04/infinite-scrolling-logos-html-css
#css
Silvestar Bistrović demonstrates a CSS-only technique to create an infinite-scrolling list of images with as little HTML as possible. - https://www.smashingmagazine.com/2024/04/infinite-scrolling-logos-html-css
#css
Smashing Magazine
Infinite-Scrolling Logos In Flat HTML And Pure CSS — Smashing Magazine
Remember the HTML `` element? It’s deprecated, so it’s not like you’re going to use it when you need some sort of horizontal auto-scrolling feature. That’s where CSS comes in because it has all the tools we need to pull it off. Silvestar Bistrović demonstrates…
Testing HTML With Modern CSS
Heydon Pickering shows how to use modern CSS selectors to find and expose bad markup. - https://heydonworks.com/article/testing-html-with-modern-css
#css
Heydon Pickering shows how to use modern CSS selectors to find and expose bad markup. - https://heydonworks.com/article/testing-html-with-modern-css
#css
The box model and box sizing
Andy Bell gives a quick run-through of the box model and box sizing. - https://piccalil.li/blog/the-box-model-and-box-sizing
#css
Andy Bell gives a quick run-through of the box model and box sizing. - https://piccalil.li/blog/the-box-model-and-box-sizing
#css
Piccalilli
The box model and box sizing
Things That Can Break aspect-ratio in CSS
Chris Coyier outlines some cases where aspect-ratio property might give unexpected results. - https://frontendmasters.com/blog/things-that-can-break-aspect-ratio-in-css
#css
Chris Coyier outlines some cases where aspect-ratio property might give unexpected results. - https://frontendmasters.com/blog/things-that-can-break-aspect-ratio-in-css
#css
Frontendmasters
Things That Can Break aspect-ratio in CSS – Frontend Masters Boost
CSS has an aspect-ratio property, which has had full support since around 2021. It can be a very satisfying property to use, because it can help match how your brain 🧠 works or what the desired design outcome does better than forcing dimensions does. “I need…
Drawing a Line to Connect Elements with CSS Anchor Positioning
Silvestar Bistrović demonstrates how to utilize CSS Anchor Positioning to create an interesting and useful effect. - https://frontendmasters.com/blog/drawing-a-line-to-connect-elements-with-css-anchor-positioning
#css
Silvestar Bistrović demonstrates how to utilize CSS Anchor Positioning to create an interesting and useful effect. - https://frontendmasters.com/blog/drawing-a-line-to-connect-elements-with-css-anchor-positioning
#css
Frontendmasters
Drawing a Line to Connect Elements with CSS Anchor Positioning – Frontend Masters Boost
The World Wide Web Consortium (W3C) published a First Public Working Draft of CSS Anchor Positioning last year, so I thought I would give it a try. I already had a perfect candidate to try it on: a component on my other site, adedicated.dev, which showcase…
Should AVIF Be the Dominant Image Format on the Web?
Tim Severien explores how AVIF compares to competing image formats like JPEG and WebP. - https://tsev.dev/posts/2023-11-10-should-avif-be-the-dominant-image-format
#css
Tim Severien explores how AVIF compares to competing image formats like JPEG and WebP. - https://tsev.dev/posts/2023-11-10-should-avif-be-the-dominant-image-format
#css
Should AVIF be the dominant image format on the web?
Tim Severien
Blog of another senior web engineer
The New CSS Math: rem() and mod()
Daniel C. Wilson shows how remainders and modulo CSS Math functions work. - https://danielcwilson.com/posts/mathematicss-rem-mod
#css
Daniel C. Wilson shows how remainders and modulo CSS Math functions work. - https://danielcwilson.com/posts/mathematicss-rem-mod
#css
Danielcwilson
The New CSS Math: rem() and mod()
New math constants and functions are coming to CSS... now with more remainders and modulo
Modular CSS and different ways to structure your stylesheets
Chris Ferdinandi shares how to structure CSS and work with modular files if you’re not using a compiler like Sass. - https://gomakethings.com/modular-css-and-different-ways-to-structure-your-stylesheets
#css
Chris Ferdinandi shares how to structure CSS and work with modular files if you’re not using a compiler like Sass. - https://gomakethings.com/modular-css-and-different-ways-to-structure-your-stylesheets
#css
Gomakethings
Modular CSS and different ways to structure your stylesheets
This week, I’ve written about classless vs. class-based CSS, and how I approach CSS architecture. I’ve also written a fair bit recently about how I’m starting to consider build tools and anti-pattern.
This has led to a few conversations about how to structure…
This has led to a few conversations about how to structure…
Using CSS content-visibility To Boost Your Rendering Performance
Rob O’Leary dives into the benefits and practical use cases of the content-visibility CSS property, as well as situations where it might not be the most suitable option. - https://blog.logrocket.com/using-css-content-visibility-boost-rendering-performance
#css
Rob O’Leary dives into the benefits and practical use cases of the content-visibility CSS property, as well as situations where it might not be the most suitable option. - https://blog.logrocket.com/using-css-content-visibility-boost-rendering-performance
#css
LogRocket Blog
Using CSS content-visibility to boost your rendering performance - LogRocket Blog
CSS content-visibility helps boost rendering performance by controlling whether or not an element renders its contents.
Textareas with auto-increasing height using CSS
Amit Merchant gives a short intro to an experimental CSS rule with form-sizing property that will let you increase the height of the textarea automatically based on the amount of text the user enters. - https://www.amitmerchant.com/textarea-auto-increase-height
#css
Amit Merchant gives a short intro to an experimental CSS rule with form-sizing property that will let you increase the height of the textarea automatically based on the amount of text the user enters. - https://www.amitmerchant.com/textarea-auto-increase-height
#css
Amit Merchant - A blog on PHP, JavaScript, and more
Textareas with auto-increasing height using CSS
Textareas areas are great when it comes to accepting a large amount of text from the user. But, the problem with textareas is that they have a fixed height. So, if the user enters more text than the height of the text, the text will overflow and the user…
How Custom Property Values are Computed
Stephanie Eckles reviews how the browser determines values for any property, the impact of “computed value time,” pitfalls around using custom properties with cutting-edge CSS, and why inheritance should inform your custom property architecture. - https://moderncss.dev/how-custom-property-values-are-computed/
#css
Stephanie Eckles reviews how the browser determines values for any property, the impact of “computed value time,” pitfalls around using custom properties with cutting-edge CSS, and why inheritance should inform your custom property architecture. - https://moderncss.dev/how-custom-property-values-are-computed/
#css
Modern CSS Solutions
How Custom Property Values are Computed | Modern CSS Solutions
Review behaviors to be aware of regarding how the browser computes final custom property values. A misunderstanding of this process may lead to an unexpected or missing value and difficulty troubleshooting and resolving the issue.
Solved by CSS Scroll-Driven Animations: Detect if an element can scroll or not
Bramus Van Damme shows how to selectively style an element based on it being scrollable or not. - https://www.bram.us/2023/09/16/solved-by-css-scroll-driven-animations-detect-if-an-element-can-scroll-or-not
#css
Bramus Van Damme shows how to selectively style an element based on it being scrollable or not. - https://www.bram.us/2023/09/16/solved-by-css-scroll-driven-animations-detect-if-an-element-can-scroll-or-not
#css
Bram.us
Solved by CSS Scroll-Driven Animations: Detect if an element can scroll or not
Leverage Scroll-Driven Animations + a Space Toggle or State Query to selectively style an element based on it being scrollable or not.