flexbox_direction-row-reverse.html (1151B)
1 <!DOCTYPE html> 2 <title>flexbox | flex-direction: row-reverse</title> 3 <link rel="author" href="http://opera.com" title="Opera Software"> 4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property"> 5 <link rel="match" href="flexbox_direction-row-reverse-ref.html"> 6 <link rel="stylesheet" href="/fonts/ahem.css"> 7 <style> 8 #container { 9 font: 40px "Ahem"; 10 width: 13em; 11 } 12 ul { 13 background: black; 14 list-style: none; 15 16 display: flex; 17 flex-direction: row-reverse; 18 } 19 li { 20 margin: 0; 21 width: 4em; 22 } 23 </style> 24 This test makes sure that the flex-direction: row-reverse CSS property correctly orders items. 25 <div id="container"><ul> 26 <li><span style="color: green;">I</span><span style="color: blue;">J</span><span style="color: cyan;">K</span><span style="color: magenta;">L</span></li> 27 <li><span style="color: lightblue;">A</span><span style="color: turquoise;">B</span><span style="color: coral;">C</span><span style="color: violet;">D</span></li> 28 <li><span style="color: red;">E</span><span style="color: purple;">F</span><span style="color: grey;">G</span><span style="color: bisque;">H</span></li> 29 </ul></div>