Figure 8-12

Figure 8-12. Overriding the margin-right setting

TIP

Note that margin-right is forced to be auto only for left-to-right languages such as English. In right-to-left languages, everything gets flipped around, so margin-left is forced to be auto, not margin-right. This is not so much an issue under CSS1 as it is in CSS2, which introduces properties related to writing direction. kostenlos dating partner chat treffen singles Sunday 20th of April 2014 05:43:07 AM

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

x-height: 3.2.2.1. em and ex units
XML (Extensible Markup Language): 1.2.6. Preparing for the Future
display property and: 2.9.1. Why Does the display Property Exist?
selectors in: 2.1.2. Simple Selectors


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.

background-repeat: no-repeat;background-position: 50% 50%;}

This causes the background image to be placed such that its center isaligned with the center of its parent element, as demonstrated inFigure 6-39. In other words, the percentage valuesapply to both the element and the background image.

Figure 6-39

Figure 6-39. Centering the background image using percentages

In order to understand this concept, let's examine this processin closer detail. When you center a background image in an element,

none | dotted | dashed | solid | double | groove | ridge | inset | outset

There are nine distinct styles for the property border-style defined in CSS1, including the default value of none. They are demonstrated in Figure 7-29.