transform-translatex-004.html (895B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): translatex() 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-translatex"> 9 <meta name="assert" content='This tests that translatex(25px) 10 plus relative positioning 25px to the right is the same as relative 11 positioning by 50px toward the right.'> 12 <link rel="match" href="transform-translatex-ref.html"> 13 <style> 14 div { 15 transform: translatex(25px); 16 position: relative; 17 left: 25px; 18 } 19 </style> 20 </head> 21 <body> 22 <div>Test Text</div> 23 </body> 24 </html>