Thursday 23rd of October 2014 04:24:34 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: Z

z-axis: 9.5. Stacking Positioned Elements
z-index property: 9.5. Stacking Positioned Elements

Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O lang attribute, in a META tag in the document's head, or even as a value in the document's HTTP headers. This is somewhat similar to the |= attribute selector discussed in the previous section, but it is a little more general. :first-child

The | P | Q | R | S | T | U | V | W | X | Y | Z

Library Navigation Links

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

XML documents are easily committed to a persistence layer

XML documents may be stored in files or databases. When stored in files, XML documents are simply plain text files with tags (and possibly DTDs). It is very easy to save your XML documents to a text file and pass the text file around to other machines, platforms and programs (as long as they can understand the data). In the worst case scenario, XML documents (files) can be viewed in a text editor on just about any platform.

XML documents are also naturally committed to a database (relational or object) or any other kind of XML document store. There are commercial products available which allow you to save XML documents to an XML storage layer (which is not a database per se), like Datachannel's XStore and ODI's eXcelon. These XML store solutions are quite expensive ($10,000 to $20,000 range).

XML documents are also quite naturally retrieved from a persistence layer (databases, file systems, XML stores). This lends XML to be used in real world applications where the information being used by different parts of a system is the most important thing.


Figure 8-27

Figure 8-27. Scaling images with the width property

It's also possible to scale an image (or other replacedelement) using height:

<IMG SRC="test.gif" STYLE="display: block;" ALT="test image"><IMG SRC="test.gif" STYLE="display: block; height: 50px;" ALT="test image"><IMG SRC="test.gif" STYLE="display: block; height: 200px;" ALT="test image">

This is exactly the same as using the HEIGHT the examples in this chapter, will only work if the containing blockwas established by an element with an explicitly defined height. Thisis because a line in the specification says that if the height of thecontaining block is not explicitly specified -- say, for example,that it's dependent on the content of the element, as in anormal paragraph -- then both top andbottom for any positioned element within thatcontaining block are treated as auto.

In addition, even though they don't explicitly say so, the color, of course, the most basic of which is toreplace the BODY attributesTEXT, LINK ,ALINK , and VLINK. Inconjunction with the anchor pseudo-classes, colorcan replace these BODY attributes outright. Thefirst line in the following example can be rewritten with thesubsequent CSS, and either will have the result depicted in Figure 6-3:

<BODY TEXT="black" LINK="#808080" ALINK="silver" VLINK="#333333">