transform-translatey-004.html (896B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): translatey() plus relative positioning</title> 5 <link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com"> 6 <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name"> 7 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions"> 8 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#funcdef-transform-translatey"> 9 <meta name="assert" content='This tests that translatey(25px) 10 plus relative positioning 25px to the bottom is the same as relative 11 positioning by 50px toward the bottom.'> 12 <link rel="match" href="transform-translatey-ref.html"> 13 <style> 14 div { 15 transform: translatey(25px); 16 position: relative; 17 top: 25px; 18 } 19 </style> 20 </head> 21 <body> 22 <div>Test Text</div> 23 </body> 24 </html>