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