Saturday 25th of October 2014 06:43:47 PM

Book Home properties related to writing direction.

If both margins are set explicitly, and width is auto, then the value of width will be set to be whatever is needed to reach the required total (that is, the content width of the parent element). The following markup is displayed as shown in Figure 8-13:

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

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: U

U element: 4.1.6. Text Decoration
UA (see user agent)
underlining: 4.1.6. Text Decoration
changing color of: 4.1.6.1. Weird decorations
removing from hyperlinks: 4.1.6. Text Decoration
turned off by browsers: 4.1.6.1. Weird decorations
Uniform Resource Identifier (URI): 3.5. CSS2 Units
Uniform Resource Locators (see URLs)
units: 11.1.3. Case 3: Putting a Magazine Article Online
(see also length units; CSS2 units)
for aural style sheets: 3.5. CSS2 Units
avoiding mixing: 11.1.3. Case 3: Putting a Magazine Article Online
color: 3.6. Summary
universal selector: 10.2.1.1. Universal selector
unordered lists: 7.7.1. Types of Lists
unvisited anchors: 2.4.1. Pseudo-Class Selectors
uppercase text: 4.1.5. Text Transformation
upright text: 5.4.1. Fonts with Style
URI (Uniform Resource Identifier): 3.5. CSS2 Units
URLs (Uniform Resource Locators): 3.4. URLs
HREF attribute and: 1.4.1.1. LINK attributes
referring to in style sheets: 3.4. URLs
specifying for images: 6.2.1. Background Images
user agent (UA): 2.2.2. Grouping Declarations
2.2.2. Grouping Declarations
(see also browsers)
users, selecting alternate style sheets: 1.4.1.2. Alternate style sheets


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

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

image using text-align is to wrap a DIV around the image, and set the DIV 's contents to be centered:

<DIV STYLE="text-align: center;">
<IMG SRC="shiny.gif" ALT="Shiny object">
</DIV>

As Figure 4-14 shows, this will center the image.

the darker and "more bold" a font appears, the heavier itis said to be. There are a great many ways to label the heaviness offonts. For example, the font family known as Zurich has a number ofvariants such as Zurich Bold, Zurich Black, Zurich UltraBlack, ZurichLight, and Zurich Regular. Each of these uses the same basic font,but each has a different weight.

So let's say that you want to use Zurich for a document, butyou'd like to make use of all those different heaviness levels.You could refer to them directly through the <LI CLASS="off">Item the fourth<LI>Item the fifth</OL>

Figure 7-80

Figure 7-80. Switching off list-item markers

list-style-type is inherited, so if you want tohave different styles of bullet in nested lists, you'll need todefine them individually. You may also have to explicitly declarestyles for nested lists because the user agent's style sheetmay already have defined such styles. Assume that a UA has thefollowing styles defined: