Monday 26th of January 2015 05:23:22 PM

by Eric A. Meyer
ISBN 1-56592-622-6
First edition, published May 2000.
(See the catalog page for this book.)

Search the text of Cascading Style Sheets: The Definitive Guide.

Table of Contents

Copyright Page
Chapter 1: HTML and CSS
Chapter 2: Selectors and Structure
Chapter 3: Units and Values
Chapter 4: Text Properties
Chapter 5: Fonts
Chapter 6: Colors and Backgrounds
Chapter 7: Boxes and Borders
Chapter 8: Visual Formatting
Chapter 9: Positioning
Chapter 10: CSS2: A Look Ahead
Chapter 11: CSS in Action
Appendix A: CSS Resources

Here's where the famous phrase returns: "there may beimplementation-specific limits." User agents aren'trequired to support this type of effect.

7.5.4. Padding: Known Issues

In the first place, padding and Navigator 4.x just plain don't getalong. The main problem is that you can set padding on an elementwith a background color, but the background won't extend into Appendix B: HTML 2.0 Style Sheet
Appendix C: CSS1 Properties
Appendix D: CSS Support Chart

Library Navigation Links

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

the size of the overall padding of an element. The padding will"inherit" the element's background; in other words,the background of an element fills its content area and padding.Padding set on inline elements does not affect line-heightcalculations, but will be applied to the right and left ends of theelement. If an inline element has both padding and a background, thebackground may be extended above and below the edges of the line-boxin which the inline element appears, but user agents are not requiredto support this behavior. There is also no defined behavior to saywhether the foreground content of a previous line appears above the

Client side - Graphical Java Applications

The simplest category of XML Java applications is the kind of Java application that stores information in XML documents (files). This is illustrated in Figure 1. By using XML to create your own markup languages (i.e. your own file formats for your information) in an open way, you don't have to use propietary and binary file formats. Using XML over proprietary binary file formats, allows your applications to have immense inter operability across platforms, applications and even programming languages. Since any kind of markup language can be defined using XML (you can even formalize it by creating a DTD for it) applications can store their information using their own markup languages. For example, address book information can be stored in an AddressBookML file. A few commercial programs currently available allow saving their application data to XML files, e.g., Framemaker can save its documents as XML files.

In order to create applications of this category, you might have to define a DTD for your information. Then you have to write classes to import and export information from your XML document(s) (validating using your application's DTD if you have one). You must also write the classes which create the user interface in your application. The user of your application can view and modify information using the GUI (graphical user interface), and they can save (and load) their information to (and from) an XML file (that might use your DTD); in other words, they can save (and load) their information to (and from) an ApplicationML file (where Application is the name of your application). Some examples are AddressBookML, MathML, SVGML, etc.

H2 {color: #903BC0;} /* set H2's to a dusky purple */H3 {color: #000000;} /* set H3's to be black */H4 {color: #808080;} /* set H4's to be medium gray */

If you aren't familiar with this notation, here's a quickprimer. First, hexadecimal means base-16counting, so the basic unit is groups of 16, not the groups of 10 towhich we're accustomed. In hexadecimal numbering, the validdigits are 0 through 9 andA through F. Once you'vereached F, the next number is 10. Thus, a child be done under CSS2 and is briefly discussed in Chapter 10, "CSS2: A Look Ahead".

7.7.3. List Item Positions

There is one other thing you can do toinfluence the appearance of list items under CSS1, and that'schange the position of the bullet itself, in relation to the contentof the list item. This is accomplished withlist-style-position.

  • ftp://    = File Transfer Protocol
  • gopher://  = Gopher information search
  • mailto:  = compose and send e-mail (note: no slashes)
  • news:  = read/send to Usenet newsgroup
  • file:///  = local file access (note: 3 slashes)