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 height depth</title> |
michael@0 | 4 | <style type="text/css"> |
michael@0 | 5 | div#bigsquare1 { |
michael@0 | 6 | position: absolute; |
michael@0 | 7 | width: 100px; |
michael@0 | 8 | height: 50px; |
michael@0 | 9 | background: blue; |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | div#smallsquare1 { |
michael@0 | 13 | position:absolute; |
michael@0 | 14 | width: 20px; |
michael@0 | 15 | height: 20px; |
michael@0 | 16 | left: 0px; |
michael@0 | 17 | top: 30px; |
michael@0 | 18 | background: red; |
michael@0 | 19 | } |
michael@0 | 20 | /* left = lspace = 0; |
michael@0 | 21 | top = heightBig - heightSmall - voffset; |
michael@0 | 22 | = 50 - 10 - 10*/ |
michael@0 | 23 | </style> |
michael@0 | 24 | </head> |
michael@0 | 25 | <body> |
michael@0 | 26 | <div id="bigsquare1"> |
michael@0 | 27 | <div id="smallsquare1"> |
michael@0 | 28 | </div> |
michael@0 | 29 | </div> |
michael@0 | 30 | |
michael@0 | 31 | <div id="bigsquare2"> |
michael@0 | 32 | <div id="smallsquare2"> |
michael@0 | 33 | </div> |
michael@0 | 34 | </div> |
michael@0 | 35 | </body> |
michael@0 | 36 | <html> |