Saturday 25th of May 2013 10:32:48 AM
Nice and Free CSS Templates
It is left to individual authors to decide what chances they wish totake with using named colors, but at least with the specified sixteencolors, there is some moderate hope of consistency.
dynamic BOX
centered

fixed Box total
centered |
11.1.1. Case 1: Consistent Look and Feel
This allows you to dispense with the classes altogether, at least in
this instance. See the Chapter 10, "CSS2: A Look Ahead", for more details
on how this kind of selector works.
WARNING
Navigator 4 does not apply colors to form elements, but setting the
colors for form elements does work in Internet Explorer 4 and 5, and
Opera 3.5 and later.
floated elements, we use the value
both. Thisvalue prevents coexistence with floated elements on both sides of theelement, as shown in
Figure 7-76:
H2 {clear: both;}
Figure 7-76. Clear on both sides
If, on the other hand, we're only worried about
H2 elements flowing past floated elements to their right, then we'd use
H2 {clear: right;}, with the result shown in
Figure 7-77.
Figure 7-77. Clear to the right
Finally, there's clear:none, which allows elements to float to either
8.2.2.3. More than one auto
Now let us consider the cases where two of these three properties areset to auto. If both the margins are set toauto, then they are set to equal lengths, thuscentering the element within its parent, as you can see from Figure 8-14:
P {width: 100px; margin-left: auto; margin-right: auto;}
Figure 8-14. Setting an explicit width
This is the correct way to center block-level elements, as a matterof fact. text-align is supposed to apply to only