You are previewing Stylin’ with CSS: A Designer’s Guide, Third Edition.

Stylin’ with CSS: A Designer’s Guide, Third Edition

Cover of Stylin’ with CSS: A Designer’s Guide, Third Edition by Charles Wyke-Smith Published by New Riders
O'Reilly logo

Appendix. Technical Notes

Writing CSS

CSS is the mechanism for styling HTML. Almost every example in the book begins with a block of HTML code that I then style with CSS. HTML is shown like this:

Image

HTML ignores all white space, returns, and tabs, except within text, where single spaces are respected, but more than one space is ignored. This gives you options for formatting. For example, these are all equivalents and display: An HTML paragraph element.

Image

CSS is shown like this:

CSS also ignores white space, tabs, and returns, so these are equivalents: ...

The best content for your career. Discover unlimited learning on demand for around $1/day.