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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.