Chapter 2. Styling with CSS

Image

“Design is more than just a few tricks to the eye. It’s a few tricks to the brain.”

— Neville Brody

When we get ready each day, we don’t change our internal organs to get ready for the day. No, we just change our clothes. Changing a website design should be as easy as changing a set of clothes.

Imagine you’re designing a website that consists of twenty pages, and you want to change design elements such as the colors, fonts, sizing, and alignment. Using traditional HTML coding, you’d have to mark up every single element for its specific color, font, alignment, and layout—an extremely tedious and error-prone process. ...

Get Designing Web & Mobile Graphics: Fundamental Concepts for Web and Interactive Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.