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 | <style type="text/css"> |
michael@0 | 4 | #parent { |
michael@0 | 5 | -moz-transform-style: preserve-3d; |
michael@0 | 6 | } |
michael@0 | 7 | |
michael@0 | 8 | #one { |
michael@0 | 9 | width: 100px; |
michael@0 | 10 | height: 100px; |
michael@0 | 11 | background-color: #00FF00; |
michael@0 | 12 | -moz-transform: translatez(10px); |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | #two { |
michael@0 | 16 | width: 100px; |
michael@0 | 17 | height: 100px; |
michael@0 | 18 | background-color: red; |
michael@0 | 19 | -moz-transform: translatez(-10px) translatey(-50px); |
michael@0 | 20 | } |
michael@0 | 21 | </style> |
michael@0 | 22 | </head> |
michael@0 | 23 | <body> |
michael@0 | 24 | <div id="parent"> |
michael@0 | 25 | <div id="one"></div> |
michael@0 | 26 | <div id="two"></div> |
michael@0 | 27 | </div> |
michael@0 | 28 | </body> |
michael@0 | 29 | </html> |