Chapter Seven. Formatting Page Elements with CSS

In Chapter 4, “Designing Pages with Absolute Placement Objects,” and in Chapter 5, “Working with Text and Images,” I explained how to use CSS (Cascading Style Sheets) for page design and text formatting. Beyond controlling page positioning and text format, you can use CSS to format almost any element on a page.

You can use CSS to format:

• Body tags that define pagewide formatting, such as page background, margins, and default font color, type, and size

• HTML tags ranging from images to tables

• Links with special attributes

• Special printable page formatting

Before you dive into formatting with CSS, a note of caution: Don’t rely on CSS styles to make your page readable in a browser. You should ...

Get Adobe 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.