Wednesday 13th of December 2017 08:02:56 PM

Book Home

Cascading Style Sheets: The Definitive GuideSearch this book

Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: D

decimal values in percentage values: 3.1.2.1. Percentage colors
declarations: 2.1.1. Rule Structure
2.1.3. Declarations
grouping: 2.2.2. Grouping Declarations
ignored: 2.1.3. Declarations
decorating text (see text decoration)
descendants: 2.5. Structure
display driver, setting on Windows systems: 3.2.1.1. Working with absolute lengths
display property: 2.9. Classification of Elements
additions/changes with CSS2: 10.1.1. Additions and Changes to the display Property
markers (bullets): 10.4.2. Markers
table-related values: 10.7. Tables
distance (see length units)
DIV element
creating columns: 11.1.3. Case 3: Putting a Magazine Article Online
wrapping images: 4.1.1.2. Aligning text
document style sheets: 1.4.2. The STYLE Element
document type definition (DTD): 2.9. Classification of Elements
dots-per-inch (dpi) environment: 5.3.5. Using Length Units
double quotation marks ( ): 1.4.6. Inline Styles
curly, in generated content: 10.4. Generated Content
in font-family declarations: 5.1.3. Using Quotation Marks
dpi (dots-per-inch) environment: 5.3.5. Using Length Units
drop cap: 11.1.3. Case 3: Putting a Magazine Article Online
with or without \:first-letter pseudo-element: 11.2.9. Drop Caps With and Without :first-letter
drop shadow: 10.3.2. text-shadow
DTD (document type definition): 2.9. Classification of Elements


Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z


Library Navigation Links
A[name] {color: purple;}      /* colors any NAME anchor purple */
IMG[border] {border-color: blue;}  /* sets blue border for any bordered IMG */
[class] {color: red;}        /* sets any classed element red */

In none of these situations does it matter what value is assigned to the attributes of each element. As long as the given attribute is present for the element, the element will match the selector shown. Thus, in the following example, the first two IMG elements shown will match the preceding rule, whereas the third will not, as illustrated by Figure 10-7: >

Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.

8.2.2.3. More than one auto

Now let us consider the cases where two of these three properties areset to auto. If both the margins are set toauto, then they are set to equal lengths, thuscentering the element within its parent, as you can see from Figure 8-14:

P {width: 100px; margin-left: auto; margin-right: auto;}