Tuesday 06th of December 2016 04:53:51 PM

by Eric A. Meyer
ISBN 1-56592-622-6
First edition, published May 2000.
(See the catalog page for this book.)

Search the text of Cascading Style Sheets: The Definitive Guide.

Table of Contents

Copyright Page
Preface
Chapter 1: HTML and CSS
Chapter 2: Selectors and Structure
becomes important when there is more than one LINKtag -- and there can be more than one. In these cases, however,only those LINK tags with a RELof stylesheet will be used in the initial displayof the document. Thus, if you wanted to link in two style sheets withthe names basic.css andsplash.css, the markup would look like this:

<LINK REL="stylesheet" TYPE="text/css" HREF="basic.css"><LINK REL="stylesheet" TYPE="text/css" HREF="splash.css">
Chapter 3: Units and Values
Chapter 4: Text Properties
Chapter 5: Fonts
Chapter 6: Colors and Backgrounds
Chapter 7: Boxes and Borders
Chapter 8: Visual Formatting
Chapter 9: Positioning
Chapter 10: CSS2: A Look Ahead
Chapter 11: CSS in Action
Appendix A: CSS Resources
Appendix B: HTML 2.0 Style Sheet
Appendix C: CSS1 Properties
Appendix D: CSS Support Chart
Index
Colophon
Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.

HTML, the root element is the HTML element, although some browsers may incorrectly use BODY.

  • For nonroot elements that are not absolutely positioned, the containing block for an element is set as the content edge of the nearest block-level ancestor. This is true even in relative positioning, although it might not seem so at first.

  • elements. In that case, we need to use the child selector:

    This translates as, "any paragraph that is a first child, andis a child of a DIV, should be in italics."If we were to leave out the child selector as follows, though:

    then the rule would read, "any paragraph that is a first childof any element, and is also a descendant of a DIV,should be in italics." The difference is subtle, but real.