22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Document Window<br />

(0,0) (0, 400)<br />

24 px<br />

1<br />

2<br />

@<br />

Beginning of body contents. Start<br />

of outer contents. End of outer<br />

3<br />

contents. End of body contents.<br />

4<br />

5<br />

6<br />

(@+200, @−100)<br />

Inner<br />

Contents.<br />

7<br />

8<br />

= 130 px<br />

(400, 0) (400, 400)<br />

If we do not position the outer box:<br />

#outer { color: red }<br />

#inner {<br />

position: absolute;<br />

top: 200px; left: -100px;<br />

height: 130px; width: 130px;<br />

color: blue;<br />

}<br />

the containing block for inner becomes the initial containing block [p. 96] (in our<br />

example). The following illustration shows where the inner box would end up in<br />

this case.<br />

123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!