1127488-align-end-horizontal-tb-ltr.html (791B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title>CSS Writing Modes</title> 6 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 7 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes"> 8 <style type="text/css"> 9 body { 10 margin: 0; 11 } 12 div.outer { 13 background: red url("right-top-300x300.png"); 14 height: 300px; 15 width: 300px; 16 text-align: end; 17 writing-mode: horizontal-tb; 18 direction: ltr; 19 } 20 div.inner { 21 display: inline-block; 22 background-color: green; 23 height: 100px; 24 width: 100px; 25 } 26 </style> 27 </head> 28 <body> 29 <div class="outer"><div class="inner"></div></div> 30 </body> 31 </html>