Example for Checkpoint
3.7, continued.

Slide 39 of 120
Previous slide. Next slide.

Note: Your browser must support CSS in order for you to see this example inset from the margins of the page

Use stylesheet markup if you just want to indent a block of text.

This simple style markup in the P element causes the example to be indented from the left and right margins:

<P style="margin-left: 10%; margin-right: 10%; >Bob was going home...</P>

Bob was going home at midnight, because the overnight train was less crowded than the rush-hour special. He was worried about falling asleep and missing his stop, but at least he would have a seat to himself.

Or, in a declared style section,

P.inset {margin-left: 10%; margin-right: 10%;}

then in the HTML:

<P class="inset">Bob was going home...</P>
Up one level To Checkpoints for Guideline 3.
Next slide: Example for Checkpoint 4.1

Introduction: Overview Guidelines: Overview Checkpoints: Overview Examples: Overview

Previous page. Next page.

Chuck Letourneau & Geoff Freed

W3C Web Accessibility Initiative

Copyright © 2000 W3C