Wednesday 19th of June 2013 11:12:26 AM
10.9. Summary
CSS2 obviously covers a lot of ground, and exploring it in detail
would probably have added at least four more chapters to this book,
not to mention dramatically bulking up some of the chapters that
already exist. However, since so little of CSS2 has actually been
implemented at this writing, we felt it was better to provide an
overview that was light on details. After all, the specification may
change as implementations reveal flaws, and we'd rather stick
to describing things that are fairly reliable.
For quick reference purposes, Table 10-1 gives a
quick summary of everything new in CSS2.
Table 10-1. New Properties in CSS2
|
New Properties in CSS2
|
text-shadow
font-size-
adjust
font-stretch
unicode-bidi
cursor
outline
outline-color
outline-style
outline-width
content
quotes
counter-reset
counter-increment
marker-offset
border-top-color
border-right-color
border-bottom-color
border-left-color
border-top-style
border-right-style
border-bottom-style
border-left-style
|
position
direction
top
right
bottom
left
z-index
min-width
max-width
min-height
max-height
overflow
clip
visibility
page-break-before
page-break-after
page-break-inside
orphans
widows
size
marks
border-collapse
border-spacing
table-layout
|
border-spacing
empty-cells
caption-side
speak-header-cell
volume
speak
pause-before
pause-after
pause
cue-before
cue-after
cue
play-during
azimuth
elevation
speech-rate
voice-family
pitch
pitch-range
stress
richness
speak-punctuation
speak-rate
speak-numeral
speak-time
|
|
New Pseudo-Classes and Pseudo-Elements in CSS2
The applications that you create with Java and XML will rely on the services provided by your Java XML Parser (using DOM or SAX). The information itself might be stored in a variety of persistence engines (object databases, relational databases, file systems, dynamic websites, etc.). The information however that comes out of these persistence storage engines must be converted to XML (if they are not in XML already). Once this is done, you have to be concerned with the material covered in this document. This document outlines the most popular Java XML application categories that are possible in an environment where data is encoded with XML, where web access is ubiquitous and platform independence is a necessity.
All of the code that you write (in your Java classes) might be considered the Java application layer. Other layers are the XML Parser layer, the XML source (that supplies the XML data that is necessary), and the persistence engine (where the data is actually stored and retrieved by the source).
Your code (in the Java application layer) has to make use of the DOM or SAX API and the XML parser in order to access the information in XML documents (that come from your source). The source might be responsible for pulling data from different persistence engines (relational or object databases) and even the web (dynamically generated websites that supply only XML data).
|
:hover
:left
|
:right
:first
|
:before
:after
|
|
New @-rules in CSS2
|
@media
|
@font-face
|
@page
|
Table 10-2. New Values in CSS2
|
All Properties
|
|
inherit
|
|
|
|
The display Property
|
run-in
compact
marker
table
|
inline-table
table-row-group
table-column-group
table-header-group
|
table-footer-group
table-row
table-cell
table-caption
|
|
The font Property
|
caption
icon
menu
|
message-box
small-caption
status-bar
|
|
|
The list-style-type Property
|
decimal-leading-zero
hebrew
georgian
armenian
|
cjk-ideographic
hiragana
katakana
|
hiragana-iroha
katakana-iroha
lower-greek
|
|
The color values
|
active-border
active-caption
app-workspace
background
button-face
button-highlight
button-text
caption-text
gray-text
|
highlight
highlight-text
inactive-border
inactive-caption
info-background
info-text
menu
menu-text
scrollbar
|
three-d-dark-shadow
three-d-face
three-d-highlight
three-d-lightshadow
three-d-shadow
window
window-frame
window-text
|
|
The vertical-align Property
|
length
|
|
|
 |  |  |
| 10.8. Media Types and @-rules |  | 11. CSS in Action |
Copyright © 2002 O'Reilly & Associates. All rights reserved.
7.6.2. Clear
Well, wetalked about a lot of floating behavior, so there's only onemore thing to discuss. You won't always want your content toflow past a floated element -- in some cases, you'llspecifically want to prevent it.
If you have a document that is grouped into sections, you might notwant the floated elements from one section hanging down into thenext. In that case, you'd want to set the first element of eachproperty border-style defined in CSS1, includingthe default value of none. They are demonstratedin Figure 7-29.
Figure 7-29. Border styles
TIP
The most interesting border style is double.It's defined such that the width of the two lines, plus thewidth of the space between them, is equal to the value ofborder-width (discussed in the next section).
blind copies. Navigator handles any one of these options; Explorercan handle all three.
Here's a link to my e-mail: so you can complain about this page. The link encloses both the image(with default border) and the blue underlined text. Note that I specifiedthe text for the subject line (the sender can change this). I could alsospecify ?cc= or ?bcc= and list e-mails to receive copies or blind copies.Navigator handles any one of these options; Explorer can handleall three. | been displayed by the user agent. In this case, it's up to the
user agent to decide whether or not the document should be reflowed.
The CSS specifications explicitly state that user agents are not
required to reflow previous content to accommodate things which
happen later in the document. In other words, if an image is floated
up into a previous paragraph, it may simply overwrite whatever was
already there. On the other hand, the user agent may handle the
situation by flowing content around the float, even though doing so
isn't required behavior. Either way, it's probably a bad
idea to count on a particular behavior, which makes the utility of