Search
Sanding UI
10.9.2024
Jim hit a snag while working on a form. Placing labels next to inputs is trivial with flexbox, sure, but what happened in Jim’s case was a bit of dead-clicking between the labels and radio buttons.
The issue? Not the …
Sanding UI originally published on CSS-Tricks, which is part of...
Hades 2 Is A Good Time On Steam Deck (Here’s How To Make It Better)
8.5.2024
Hades 2 arrived via Early Access on Steam and the Epic Games Store on May 6 and already it’s been stirring up a ton of excitement. If you’re looking to take its Greek-mythos-inspired roguelike action-RPG gameplay on the go with the Steam Deck, there are a few settings you may wish to tweak. Read...
Cyberpunk 2077 Gets One Thig Right: Cars Need Buttons
17.2.2023
The world of Cyberpunk 2077 is one where technological innovation has run wild. Its citizens are full of robot parts, can send data with their minds and can literally see other people’s dreams and memories. Yet despite all this, one aspect of everyone’s daily lives is still incredibly quaint...
Styling Buttons in WordPress Block Themes
9.1.2023
A little while back, Ganesh Dahal penned a post here on CSS-Tricks responding to a tweet that asked about adding CSS box shadows on WordPress blocks and elements. There’s a lot of great stuff in there that leverages new features …
Styling Buttons in WordPress Block Themes originally...
Increase Your Reach
22.12.2021
NGL, I was a little overwhelmed when I sat down to write this article. There are so many things that immediately flooded my mind—take out any extra divs; use links for URLs, use buttons for events and actions; use …
Standardizing Focus Styles With CSS Custom Properties
10.12.2021
Take two minutes right now and visit your current project in a browser. Then, using only the Tab key, you should be able to navigate between interactive elements including buttons, links, and form elements.
If you are sighted, you should…
Zero Trickery Custom Radios and Checkboxes
18.11.2021
I feel like half of all “custom-designed radio buttons and checkboxes” do two things:
Make them bigger
Colorize them
I always think of SurveyMonkey for having big chunky radios and checkboxes. And indeed, just poking at their interface quickly, even …
The post Zero Trickery...
Buttons vs. Links
1.11.2021
There are thousands of articles out there about buttons and links on the web; the differences and how to use them properly. Hey, I don’t mind. I wrote my own as well¹.
It’s such a common mistake on …
The post Buttons vs. Links appeared first on CSS-Tricks. You can support...
CSS-ing Candy Ghost Buttons
1.11.2021
Recently, while looking for some ideas on what to code as I have zero artistic sense so the only thing I can do is find pretty things that other people have come up with and remake them with clean and …
The post CSS-ing Candy Ghost Buttons appeared first on CSS-Tricks. You can support...
Tales Of Arise Is Even Better If You Remap The Buttons
10.9.2021
For years, Bandai Namco’s Tales games have largely been role-playing games with an action bent. Tales of Arise, out now for PlayStation, Xbox, and PC, is as close to a pure action game as ever, thanks to a streamlined battle system and a switch on the development end to the Unreal engine. It rules....
Some Articles About Accessibility I’ve Saved Recently III
26.8.2021
The perfect link — Rian Rietveld defines them: “When you click on them, they take you somewhere else.” Not much code in here (we’ve got that), just a lot of practical accessibility advice. For example, the alt text
…
The post Some Articles About Accessibility I’ve Saved...
When a Click is Not Just a Click
30.6.2021
The click event is quite simple and easy to use; you listen for the event and run code when the event is fired. It works on just about every HTML element there is, a core feature of the DOM API.…
The post When a Click is Not Just a Click appeared first on CSS-Tricks. You can support...
Making Disabled Buttons More Inclusive
12.5.2021
Let’s talk about disabled buttons. Specifically, let’s get into why we use them and how we can do better than the traditional disabled attribute in HTML (e.g. <button disabled> ) to mark a button as disabled.
There are lots of …
The post Making Disabled Buttons More Inclusive...
Some Performance Blog Posts I’ve Bookmarked and Read Lately
3.2.2021
Back/forward cache — I always assumed browsers just do fancy stuff with the back/forward buttons and us developers had very little control. Philip Walton tells us it’s critical that we understand “what makes pages eligible (and ineligible) for bfcache to
…
The post Some...
Immortals Fenyx Rising Is Even Better If You Remap The Buttons
4.1.2021
Immortals Fenyx Rising, Ubisoft’s latest open-world game set in mythological Ancient Greece, is pretty damn good. It’s even better if you shake up the standard control scheme.Read more
“Yes or No?”
23.12.2020
Sara Soueidan digs into this HTML/UX situation. “Yes” or “no” is a boolean situation. A checkbox represents this: it’s either on or off (uh, mostly). But is a checkbox always the best UX? It depends, of course:
Use radio buttons if you expect the answer to be equally...
How to Recreate the Ripple Effect of Material Design Buttons
12.10.2020
When I first discovered Material Design, I was particularly inspired by its button component. It uses a ripple effect to give users feedback in a simple, elegant way.
How does this effect work? Material Design’s buttons don’t just sport a neat ripple animation, but the animation also...
How to Make an Unobtrusive Scroll-to-Top Button
5.10.2020
A button to return to the top of the page allows the user to quickly return to the top of the page without making too much effort. This can be very useful when the page has a lot of content or which happens, for example, on one page websites, when infinite scrolling is used, or on mobile devices...
Using a brightness() filter to generically highlight content
12.9.2020
Rick Strahl:
I can’t tell you how many times over the years I’ve implemented a custom ‘button’ like CSS implementation. Over the years I’ve used images, backgrounds, gradients, and opacity to effectively ‘highlight’ a control. All that works of course,...
Magnetic Buttons
5.8.2020
A small set of magnetic buttons with some fun hover animations.
The post Magnetic Buttons appeared first on Codrops