Sunday 25th of February 2018 10:06:26 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 | P | Q | R | S | T | U | V | W | X | Y negative length value, with the obvious difference that the amount ofnegativity will depend on the width of the parent element. Thus:

P {margin: -10%;}

Figure 7-20 illustrates the consequences of such arule, where the amount by which paragraphs overlap each other andspill beyond the browser window is entirely dependent on the width ofthe window itself -- and the wider the window, the worse thesituation becomes.

| Z


Library Navigation Links

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

Unfortunately, as of this writing, browsers don't make it veryeasy to select alternate style sheets, assuming that they can do soat all. Should a browser be able to use alternate style sheets, itwill use the values of the TITLE attributes togenerate a list of style alternatives. So you could write thefollowing:

<LINK REL="stylesheet" TYPE="text/css"HREF="sheet1.css" TITLE="Default"><LINK REL="alternate stylesheet" TYPE="text/css"
they aren't ignored, then they're likely to cause strange
results. Therefore, it might be a good idea to omit the universal
selector in conjunction with class and ID selectors.

BODY > P {color: green;}
<BODY>
<P>This paragraph is green.</P>
<DIV>
<P>This paragraph is not green.</P>
the result in Figure 7-38 as follows:

As we can see in Figure 7-41, despite the fact that the border's width was set to be 20px , when the style is set to none, not only does the border's style go away, so does its width! Why?

If you'll remember, the terminology used in the previous section was that a border with a style of none does not exist. Those words were picked carefully because they help