CSS Button Styling Guide

Stephanie Eckles on May 07, 2020

This is the ninth post in a series examining modern CSS solutions to problems I've been solving over the last 13+ years of being a frontend develo... [Read Full]
markdown guide

"Similarly, since this button is not for a form submit, it needs the explicit role of button to prevent triggering a get request and page reload."

I think you mean for that purpose, it needs type="button", not role="button"


You are correct! I was working on this too late and got my wires crossed :) Updated, thanks!


Great article, Stephanie!

I had a question for you. I am currently working on a book about CSS and it's tentatively entitled "Modern CSS". I was not aware of your site moderncss.dev before I chose that name. If you have an issue with that, please let me know and I will gladly change the name!


You're very gracious to ask! I'll message you

code of conduct - report abuse