Chapter 5
Taking the Measure of CSS
IN THIS CHAPTER
A brief overview of measuring CSS things
Understanding the CSS absolute measurements
Becoming acquainted with CSS relative measurements
Figuring out what viewport measurements are all about
How to calculate stuff with CSS
Measure what is measurable, and make measurable what is not so.
— GALILEO GALILEI
With its close ties to design, CSS feels more than a little like the artistic side of web development. And it’s certainly true that CSS offers plenty of ways to give your right-brain a good workout: colors, backgrounds, and gradients (refer to Book 3, Chapter 6); fonts, alignment, and other typographical tidbits (Book 3, Chapter 7); fancy page layouts (Book 5); and eye-popping, grin-inducing animations (Bonus Chapters 1-3, downloadable at www.dummies.com/go/htmlcss&javascriptaiofd).
But CSS also has a side that’s more likely to warm the cockles of an engineer’s heart than an artist’s. This is the part of CSS where you measure things: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access