Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <html>
2 <head>
3 <title>Test mpadded</title>
4 <style type="text/css">
5 div#bigsquare {
6 position: absolute;
7 width: 100px;
8 height: 100px;
9 background: blue;
10 }
12 div#smallsquare {
13 position:absolute;
14 width: 20px;
15 height: 20px;
16 left: 20px;
17 top: 10px;
18 background: red;
19 }
20 /*left = lspace = 20px;
21 top = heightBig - voffset - heightSmall;
22 = 50 - 30 - 10
23 = 10px */
24 </style>
25 </head>
26 <body>
27 <div id="bigsquare">
28 <div id="smallsquare">
29 </div>
30 </div>
31 </body>
32 <html>