Modern CSS

CSS made easy

Whether you're learning CSS for the first time, or looking for a refresher, Modern CSS has something for everyone.

You don't have to be afraid of CSS. This book will teach you everything you need to know to get started styling, animating, and laying out your pages with CSS.

About the book

A lot of developers are intimidated by CSS. While it is true that CSS is a complicated topic, we can approach it step by step and gain mastery over it.

This book is a tour of modern CSS. It starts with the basic, fundamental concepts like the box model, specificity, selectors, colors, and units. Once you have a solid foundation, we move on to basic styling - text, backgrounds, borders, sizing, and more. As this book is about modern CSS, we will also cover transitions and animations. Finally, we will also cover CSS layout topics - floats, Flexbox, and CSS Grid.

Every concept is accompanied by code examples, and a screenshot of how the example is rendered in a browser.

Modern CSS is aimed at beginners, or experienced developers who need a CSS refresher.

About the author

Joe Attardi

I have been developing software professionally since 2004, working at companies such as Nortel, Dell, Constant Contact, and Salesforce.

For many years, I was squarely in the Java camp, and JavaScript was an afterthought. Over the years, I became more interested in frontend development, and started using JavaScript more and more.

In 2015 I took a job at Constant Contact doing only front-end development. Since then, I haven't looked back. JavaScript is my primary area of expertise now. I have worked with several JavaScript frameworks (though I may not remember how to use all of them off the top of my head!) such as Angular, React, Svelte, and Vue.

I live in the Boston area with my wife, son, and two cats.

You can find my web site at, and you can find me on Twitter at @JoeAttardi. My email address is