22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

50<br />

Part III: Taking Precise Control Over Web Pages and Styles<br />

Figure 10-2: The navigation bar now looks more like standard<br />

left-hand navigation.<br />

In the preceding rules, we<br />

✓ Added a element<br />

✓ Defined the navBar id inside the element<br />

✓ Used the navBar id to instruct the content to float to the left of images,<br />

which causes them to appear in the same part of the page to the left,<br />

rather than above the graphic<br />

This rule says that anything on the page that belongs to the navBar id (as<br />

shown in Figure 10-2) should display with<br />

✓ A light-gray background<br />

✓ A thin, grooved-line border at bottom and left, in a darker gray<br />

✓ No top or right border<br />

✓ A block that floats to the left (so everything else on the page moves<br />

right, as with the image in Figure 10-2)<br />

✓ A left margin of 10 pixels (px)<br />

✓ Padding at top and bottom of 10px each<br />

✓ A navbar area 100px wide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!