CSS Basics
banner
cssbasics.fridayfrontend.com
CSS Basics
@cssbasics.fridayfrontend.com
Front-end dev links aimed at beginners, posted daily. Brought to you by @fridayfrontend.com and curated by @spaceninja.com
The Universal Focus Ring: "Replace the default focus ring with a stylish one that travels between the elements as you navigate with your keyboard. A funny experiment using Anchor Positioning." #CSS css-tip.com/universal-fo...
The Universal Focus Ring
Using anchor positioning to create a fancy focus ring that travels the whole page
css-tip.com
November 26, 2025 at 8:04 PM
100, 150, or 200? Debunking the Alt text character limit: "There’s no limit, Alt text should be as long or short as it needs to be, just succinct and correct. Just not super long." #a11y chrisyoong.com/blog/the-100...
100, 150, or 200? Debunking the Alt text character limit
The arbitrary limit can be built into input fields and automated tooling
chrisyoong.com
November 26, 2025 at 6:01 PM
Headings: Semantics, Fluidity, and Styling — Oh My! "A few links about headings that I’ve had stored under my top hat." #HTML #CSS css-tricks.com/headings-sem...
Headings: Semantics, Fluidity, and Styling — Oh My! | CSS-Tricks
A few links about headings that I've had stored under my top hat.
css-tricks.com
November 25, 2025 at 8:02 PM
Explaining the Accessible Benefits of Using Semantic HTML Elements: "Why should you use a semantic button element instead of a generic div? Accessibility, right? But how exactly does it help accessibility?" #a11y css-tricks.com/explaining-t...
Explaining the Accessible Benefits of Using Semantic HTML Elements | CSS-Tricks
Why should you use a semantic <button> instead of a generic <div>? Accessibility, right? By how exactly does it help accessibility?
css-tricks.com
November 25, 2025 at 6:03 PM
ARIA and Real World Dangers: "Learn ARIA deeply before deploying it broadly. HTML should always be the first tool of choice. Use ARIA only when necessary, and only with precision. Done right, ARIA enhances accessibility. Done wrong, it undermines it." #a11y www.dennisdeacon.com/web/accessib...
ARIA and Real World Dangers - Dennis Deacon
Learn ARIA deeply before deploying it broadly. HTML should always be the first tool of choice. Use ARIA only when necessary, and only with precision. Done right, ARIA enhances accessibility. Done…
www.dennisdeacon.com
November 24, 2025 at 8:02 PM
Instant snapport: "While I’ve used scroll-margin before, little did I know that scroll-padding is out there too. So let’s take a closer look." #CSS cssence.com/2025/scroll-...
Instant snapport
How to tweak the optimal viewing region of the scrollport.
cssence.com
November 24, 2025 at 6:04 PM
Sometimes the Best Accessibility Fix is a Usability Fix: "Accessibility gains often come from fixing ordinary UX friction points that already frustrate people who don’t have disabilities (yet)." #a11y buttondown.com/access-abili...
Sometimes the Best Accessibility Fix is a Usability Fix
AI cartoon of woman with long dark hair struggling to open a bottle, a common form of usability failure. Teams often arbitrarily divide work into two piles:...
buttondown.com
November 21, 2025 at 8:02 PM
How to use #CSS line-clamp to trim lines of text: "Learn how to use CSS line-clamp to truncate text lines cleanly, handle browser quirks, and avoid common UX issues." blog.logrocket.com/css-line-cla...
How to use CSS line-clamp to trim lines of text - LogRocket Blog
Learn how to use CSS line-clamp to truncate text lines cleanly, handle browser quirks, and avoid common UX issues.
blog.logrocket.com
November 21, 2025 at 6:04 PM
Grayscale testing: The missing step in color accessibility: "A short guide to grayscale testing: why it matters and how to design visuals that work without color." #a11y blog.pope.tech/2025/11/03/g...
Grayscale testing: The missing step in color accessibility - Pope Tech Blog
A short guide to grayscale testing: why it matters and how to design visuals that work without color.
blog.pope.tech
November 20, 2025 at 8:03 PM
The Weird Parts of position: sticky; – "There are a number of things that can rain on your sticky parade. Maybe it's time to actually understand why." #CSS frontendmasters.com/blog/the-wei...
The Weird Parts of position: sticky;
There are a number of things that can rain on your sticky parade. Maybe it's time to actually understand why.
frontendmasters.com
November 20, 2025 at 6:03 PM
Custom Cursor Accessibility: "It’s probably best that you don’t use custom CSS mouse cursors. If you must, please bear in mind the accessibility setting that increases pointer size. If you make your cursor abnormally large, it will be comically large!" #a11y dbushell.com/2025/10/27/c...
Custom Cursor Accessibility
The one where I fat finger with a mouse
dbushell.com
November 19, 2025 at 8:02 PM
Use Cases for Field Sizing: "Have you ever needed to size an input field based on its content? Today, we can do it with #CSS field-sizing property. In this article, I’m going to show you the problem field-sizing solves and how to use it for layout-focused designs." ishadeed.com/article/fiel...
Use Cases for Field Sizing
A quick look at field-sizing and where it can be used.
ishadeed.com
November 19, 2025 at 6:04 PM
Super Simple Full-Bleed & Breakout Styles: "Having a width-limited centered column of content is common and good, but what do you do when you need to break out? It's not hard these days, but it does depend on the situation." #CSS frontendmasters.com/blog/super-s...
Super Simple Full-Bleed & Breakout Styles
Having a width-limited centered column of content is common and good, but what do you do when you need to break out? It's not hard these days, but it does depend on the situation.
frontendmasters.com
November 18, 2025 at 8:02 PM
Pure #CSS Tabs With Details, Grid, and Subgrid: "Can we use the
element as the foundation for a tabbed interface? Why yes, we can!" css-tricks.com/pure-css-tab...
Pure CSS Tabs With Details, Grid, and Subgrid | CSS-Tricks
Can we use the <details> element as the foundation for a tabbed interface? Why yes, we can!
css-tricks.com
November 18, 2025 at 6:04 PM
#CSS layout: flexbox, grid, media queries and container queries: "CSS provides a variety of services for web content: In this chapter, we will use it to lay out content: to place HTML elements on a page." 2ality.com/2025/10/css-...
[Web dev for beginners] CSS layout: flexbox, grid, media queries and container queries
CSS provides a variety of services for web content: In the previous chapter, we used it to format content: to change colors, typefaces, etc. In this chapter, we will use it to lay out content: to…
2ality.com
November 17, 2025 at 8:02 PM
Rethinking Dark Mode Image Strategies with Media Queries in #HTML: "You’re able to supply a light-themed image in light mode, and swap that for a dark-themed image in dark mode, instead of reducing the light image’s opacity in dark mode." www.sarasoueidan.com/newsletter/i...
Rethinking Dark Mode Image Strategies with Media Queries in HTML
— The personal website of Sara Soueidan, inclusive Web UI engineer
www.sarasoueidan.com
November 17, 2025 at 6:02 PM
Getting Creative With Small Screens: "On mobile, people can lose their sense of context and can’t easily tell where a section begins or ends. Good small-screen design can help orient them using a variety of techniques." #CSS css-tricks.com/getting-crea...
Getting Creative With Small Screens | CSS-Tricks
On mobile, people can lose their sense of context and can’t easily tell where a section begins or ends. Good small-screen design can help orient them using a variety of techniques.
css-tricks.com
November 14, 2025 at 8:07 PM
Just Use a Button: "One of the weirdest 'debates' I seem to perpetually have with framework-enthusiastic developers is whether or not a
is 'just as good' as a
Just use a button
One of the weirdest “debates” I seem to perpetually have with framework-enthusiastic developers is whether or not a <div> is “just as good” as a <button>. Spoiler: it’s not. Let’s dig in. The problem…
gomakethings.com
November 14, 2025 at 6:02 PM
Don’t Forget These Tags to Make #HTML Work Like You Expect: "This got me thinking about the basic snippets of HTML I’ve learned to always include in order for my website to work as I expect in the browser." blog.jim-nielsen.com/2025/dont-fo...
Don’t Forget These Tags to Make HTML Work Like You Expect
Writing about the big beautiful mess that is making things for the world wide web.
blog.jim-nielsen.com
November 13, 2025 at 8:02 PM
Sequential linear() Animation With N Elements: "Let’s suppose you have N elements with the same animation that should animate sequentially. Modern #CSS makes this easy and it works for any number of items!" css-tricks.com/sequential-l...
Sequential linear() Animation With N Elements | CSS-Tricks
Let’s suppose you have N elements with the same animation that should animate sequentially. Modern CSS makes this easy and it works for any number of items!
css-tricks.com
November 13, 2025 at 6:04 PM
Springs and Bounces in Native #CSS: "The “linear()” timing function is a game-changer; it allows us to model physics-based motion right in vanilla CSS! I’ll share all of the tips and tricks I’ve learned for using it effectively." www.joshwcomeau.com/animation/li...
Springs and Bounces in Native CSS • Josh W. Comeau
The “linear()” timing function is a game-changer; it allows us to model physics-based motion right in vanilla CSS! That said, there are some limitations and quirks to be aware of. I’ve been…
www.joshwcomeau.com
November 12, 2025 at 8:02 PM
What State ARIA In? "This article explains how to use ARIA to indicate the difference between selected, pressed, current, and checked states of elements." #a11y www.tpgi.com/what-state-a...
What State ARIA In? - TPGi — a Vispero company
This article explains how to use ARIA to indicate the difference between selected, pressed, current, and checked states of elements.
www.tpgi.com
November 12, 2025 at 6:04 PM
#CSS Animations That Leverage the Parent-Child Relationship: "When we change an element’s intrinsic sizing, its children are affected, too. This is something we can use to our advantage." css-tricks.com/css-animatio...
CSS Animations That Leverage the Parent-Child Relationship | CSS-Tricks
When we change an element’s intrinsic sizing, its children are affected, too. This is something we can use to our advantage.
css-tricks.com
November 11, 2025 at 8:02 PM
The Two Button Problem: "When you've got two buttons with two different looks (and no cursor), how do you know which one you're about to activate? You'll need to be careful with the #design." frontendmasters.com/blog/the-two...
The Two Button Problem
When you've got two buttons with two different looks (and no cursor), how do you know which one you're about to activate? You'll need to be careful with the design.
frontendmasters.com
November 11, 2025 at 6:02 PM
Counting columns: a couple neat things you can do: "Using a bit of algebra to solve a common — and less common — layout problem" #CSS noahliebman.net/2025/10/coun...
Noah Liebman | Counting columns: a couple neat things you can do
Using a bit of algebra to solve a common — and less common — layout problem
noahliebman.net
November 10, 2025 at 8:02 PM