Friday 20th of April 2018 08:23:43 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: R

raised look: 7.4.1. Borders with Style
readers, selecting alternate style sheets: 1.4.1.2. Alternate style sheets
relative font sizing: 5.3.2. Relative Sizes
relative length units: 3.2.2. Relative Length Units
relative positioning: 9.2. Relative Positioning
relative URLs: 3.4. URLs
rendering engines: 8. Visual Formatting
repeating images: 6.2.2. Repeats with Direction
6.2.4. Repeats with Direction (Revisited)
replaced elements: 2.9. Classification of Elements
8.2.4. Block-Level Replaced Elements
8.4. Inline Elements
inline: 8.4.4. Inline Replaced Elements
adding box properties to: 8.4.4.1. Adding box properties
replication
border color: 7.4.3. Border Colors
border widths: 7.4.2. Border Widths
margins: 7.3.3. Replicating Values
value: 7.4.1.1. Multiple styles
resources for further information
instances: 11.2.4. Styling Common Elements
restrictions on pseudo-classes/ pseudo-elements: 2.4.3. Restrictions on Pseudo-Class and Pseudo-Element Selectors
RGB colors: 3.1.2. Colors by RGB
richness property: 10.8.2. The Spoken Word
right property: 9.1.2. Side Offsets
:right pseudo-class: 10.8.1. Paged Media
root element: 2.5. Structure
@ rules: 10.8. Media Types and @-rules


no-repeat. The reason for this is simple: with only a single background image, it's much easier to see how positioning affects the placement of the first background image. We don't have to prevent the background image from repeating, though:

BODY {background-image: url(bigyinyang.gif);
background-position: -150px -100px;}

So, with the background repeating, we can see from Figure 6-48 that the tiling pattern starts with the position specified by background-position. This

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.

Inherited

no

Applies to
Even if clients don't support XML natively, it is not a big hindrance. In fact, Java with Servlets (on the server side) can convert XML with stylesheets to generate plain HTML that can be displayed in all web browsers.

Using XML to pass parameters and return values on servers makes it very easy to allow these servers to be web-enabled. A thin server side Java layer might be added that interacts with web browsers using HTML and translates the requests and responses from the client into XML, that is then fed into the server.

XML is totally extensible

By not predefining any tags in the XML Recommendation, the W3C allowed developers full control over customizing their data as they see fit. This makes XML very attractive to encoding data that already exists in legacy databases (by using database metadata, and other schema information). This extensibility of XML makes it such a great fit when trying to get different systems to work with each other.

XML supports shareable structure (using DTDs)

the origin image's position as the window is resized. If thedocument width is fixed (perhaps by assigning an explicit width tothe BODY element), then resizing the viewing areawon't affect the placement of the origin image.

6.1.3. Special Effects

Let's return to the happier realmof how things should work. Thanks to color andbackground-color, you can create some niceeffects. This example is shown in Figure 6-18:

H1 {padding: 0 0 0 0.25in;}
H2 {padding-left: 0.25in;}

7.5.3. Padding and Inline Elements

There is one major difference between margins and padding when it comes to inline elements. Let's turn things around and talk about left and right padding first off. Here, if we set values for the left or