flexbox_justifycontent-start-ref.html (830B)
1 <!DOCTYPE html> 2 <title>flexbox | justify-content: start (ref)</title> 3 <link rel="author" title="Adam Argyle" href="mailto:argyle@google.com"> 4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#justify-content-property"> 5 <style> 6 div { 7 background: blue; 8 margin: 1em 0; 9 border: 1px solid black; 10 height: 6em; 11 width: 40em; 12 13 display: flex; 14 flex-direction: row-reverse; 15 justify-content: flex-end; 16 } 17 span { 18 background: white; 19 margin: 0 1em; 20 width: 8em; 21 height: 2em; 22 display: inline-grid; 23 place-items: center; 24 25 flex: none; 26 } 27 span:nth-child(1) {background: yellow;} 28 span:nth-child(2) {background: pink;} 29 span:nth-child(3) {background: lightblue;} 30 </style> 31 32 <div> 33 <span>one</span> 34 <span>two</span> 35 <span>three</span> 36 </div> 37 38 <p>Test passes if order is 3, 2, 1 and alignment is to the top left</p>