Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!-- Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | http://creativecommons.org/publicdomain/zero/1.0/ --> |
michael@0 | 3 | <html> |
michael@0 | 4 | <head> |
michael@0 | 5 | <style> |
michael@0 | 6 | body { margin-top: 50px } |
michael@0 | 7 | .relpos_parent { |
michael@0 | 8 | position: relative; |
michael@0 | 9 | width: 100px; |
michael@0 | 10 | height: 100px; |
michael@0 | 11 | background: lightblue; |
michael@0 | 12 | } |
michael@0 | 13 | .abspos_child { |
michael@0 | 14 | position: absolute; |
michael@0 | 15 | left: 30px; |
michael@0 | 16 | bottom: 10px; |
michael@0 | 17 | width: 20px; |
michael@0 | 18 | height: 130px; |
michael@0 | 19 | background: purple; |
michael@0 | 20 | } |
michael@0 | 21 | </style> |
michael@0 | 22 | </head> |
michael@0 | 23 | <body> |
michael@0 | 24 | <div> |
michael@0 | 25 | <div class="relpos_parent"> |
michael@0 | 26 | <div class="abspos_child"></div> |
michael@0 | 27 | </div> |
michael@0 | 28 | </div> |
michael@0 | 29 | </body> |
michael@0 | 30 | </html> |