Book HomeCascading Style Sheets: The Definitive GuideSearch this book Thursday 26th of November 2015 12:39:18 AM

0.3. How to Contact Us

We have tested and verified the information in this book to the best of our ability, but you may find that features have changed (or even that we have made mistakes!). Please let us know about any errors you find, as well as your suggestions for future editions, by writing to:

O'Reilly & Associates, Inc.

1005 Gravenstein Highway North

Sebastopol, CA 95472

(800) 998-9938 (in the U.S. or Canada)

(707) 829-0515 (international/local)

(707) 829-0104 (fax)

You can also send us messages electronically. To be put on the mailing list or request a catalog, send email to:

To ask technical questions or comment on the book, send email to:

We have a web site for the book, where we'll list examples, errata, and any plans for future editions. You can access this page at:

For more information about this book and others, see the O'Reilly web site:

Figure 7-18

Figure 7-18. Negative top margin

In a like manner, setting a negative value on the other sides willpull them beyond their normal limits:

<P STYLE="margin: -2em; font-weight: bold;">...

As Figure 7-19 makes abundantly clear, the paragraphhas spilled beyond the edges of the browser window and has not onlypulled up far enough to overlap the end of the previous paragraph,but has also pulled the following paragraph up to overlap its last

Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.

XML is derived from SGML, and so was HTML. So in essence, the current infrastructure available today to deal with HTML content can be re-used to work with XML. This is a very big advantage towards delivering XML content using the software and networking infrastructure already in place today. This should be a big plus in considering XML for use in any of your projects, because XML naturally lends itself to being used over the web.

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.

like Figure 9-7 will occur:

top: 0; bottom: auto; left: auto; right: 0; width: 33%; height: 45%;

Many of the same principles hold true for widths, of course. Forexample:

top: 100px; bottom: 200px; left: 30%; right: 10%; height: auto; width: auto;

Here, the width of the element is effectively 60% the width of itscontaining block.

order to get float to work with text elements, youneed to explicitly declare a width as well, likeso: width: 10em . To be honest,I'm not sure why this should permit floating where itwouldn't otherwise happen. It does make some sense, given theusual desire for declaring a width on floated textelements in any case, but the specification does notrequire that a width bedeclared in order to make a text element float successfully. InternetExplorer 4.x for Windows does. the same as what we discussed with margins and inline elements.

In the first place, no matter how thick you make your borders oninline elements, the line-height of the element won't change.Let's set top and bottom borders on boldfaced text:

B {border-top: 10px solid gray; border-bottom: 5px solid silver;}

Once more, this is allowed in the specification, but it will haveabsolutely no effect on the line height. However, since borders arevisible, they'll be drawn -- as you can see for yourself in