What we have here is a situation where some of the text has afont-size of 12px , while othertext has a size of 24px . However, all of the texthas a line-height of 12px,since line-height is an inherited property. Whathappens is that the difference between font-sizeand line-height is divided in half, and thenapplied to the top and bottom of each element's content-heightto arrive at the inline box. Each halfof the divided difference is referred to as
<length> | <percentage>
0

Finally, what happens when all three properties are set toauto ? The answer is simple: both margins are setto zero, and the width is made as wide aspossible. This result is the same as the default situation when thereare no values explicitly declared for margins or the width. In such acase, the margins default to zero (0) and thewidth defaults to auto. This is illustrated inFigure 8-17.

The small box B in the lower-left corner of the element A is a child of A, which is in turn a child of a relatively positioned DIV. B was absolutely positioned, as was element A, using styles like these:
DIV {position: relative;}
P.A {position: absolute; top: 0; right: 0; width: 15em; height: auto;
margin-left: auto;}
9.3. Absolute Positioning
Since
most of the examples and figures in the chapter (besides the previous
section) have been examples of absolute positioning, we're
already halfway to an understanding of how it works. Most of what
remain are the details of what happens when absolute positioning is
invoked.
When an element is positioned absolutely, it is completely removed
from the document flow. It is then positioned with respect to its