Tuesday 07th of February 2012 04:12:30 AM
Copyright © 2000 O'Reilly & Associates, Inc. All rights reserved.
Printed in the United States of America.
Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. The association between the image of a koala and the topic of HTML and XHTML is a trademark of O'Reilly & Associates, Inc.
While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility for errors or omissions, or for damages resulting from the use of the information contained a certain value. Figure 8-27 shows a fewpossibilities.

It's also possible to scale an image (or other replacedelement) using height:
herein.<IMG SRC="test.gif" STYLE="display: block;" ALT="test image"><IMG SRC="test.gif" STYLE="display: block; height: 50px;" ALT="test image"><IMG SRC="test.gif" STYLE="display: block; height: 200px;" ALT="test image">
Copyright © 2002 O'Reilly & Associates. All rights reserved.
{background: green;} andwe're set. Or are we?Not quite, no. In the old page, the navigation bar was separated slightly fromthe main display, but ran right up against the sidebar, therebycreating a sort of inverted green "L" shape. We want tomake sure that this is still the case in the new setup. This is mosteasily accomplished by making sure that the division has no paddingor border set, and that it is guaranteed to be as wide as the tablecell in which it's found. Plus, we want the bar to have aelement is not necessarily its parent element. In fact, it often isnot, unless the author takes steps to correct this situation.Fortunately, that's easy to do. Just pick the element that youwant to use as the containing block for the absolutely positionedelement, and give it a position ofrelative with no offsets. Thus:
P.contain {position: relative;}Consider the example in Figure 9-19. It shows twoparagraphs that contain identical text. However, the first paragraph

If only one keyword appears, then the other is assumed to becenter. Table 6-1 showsequivalent keyword statements.