DEV Community


Discussion on: What Default CSS Styles Do You Apply To Every Project?

chrishall78 profile image
Christopher Hall

Setting max-width to 100% on images is good, it helps make websites responsive.

Also setting some default transitions on common elements can be useful. I like to set a transition for color, background-color and border on links, buttons, submit buttons.

Using something like normalize.css is good too. (

dylanesque profile image
Michael Caveney Author

These are smart changes I definitely did not think about before! I've wondered about normalize as of late; I write in Gatsby a lot, and I've noticed their default
styles have gotten a lot more comprehensive, like they're added their own version of normalize. But even before that, it seemed like I didn't run into any odd cross-browser behavior on sites I was working on. I suppose it also matters how far back you need to go in terms of compatibility?