overflow-008

margin and overflow

WeasyPrint

This browser

Flags
interact

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: margin and overflow</title>
 5   <link rel="author" title="Eira Monstad" href="mailto:eiram@opera.com">
 6   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/overflow/box/004.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
 9   <meta name="flags" content="interact">
10   <style type="text/css">
11    div.outer { width: 10em; height: 5em; overflow: auto;
12                background: navy; border: 1px solid blue; }
13    div.inner { margin: 3em 0 3em 0; background: white; }
14   </style>
15  </head>
16  <body>
17   <p>Scroll to see the instructions:</p>
18   <div class="outer">
19    <div class="inner"> 
20     You should see the same amount of blue above and below this text.
21    </div> 
22   </div>
23  </body>
24 </html>