flexbox_justifycontent-spacebetween-ref.html (643B)
1 <!DOCTYPE html> 2 <title>flexbox | justify-content: space-between</title> 3 <link rel="author" href="http://opera.com" title="Opera Software"> 4 <style> 5 div { 6 background: blue; 7 margin: 1em 0; 8 border: 1px solid black; 9 height: 8em; 10 width: 30em; 11 position: relative; 12 } 13 span { 14 background: white; 15 margin: 1em 0; 16 width: 6em; 17 max-width: 6em; 18 height: 6em; 19 position: absolute; 20 left: 1em; 21 display: inline-block; 22 } 23 span:nth-child(1) {background: yellow;} 24 span:nth-child(2) { 25 background: pink; 26 left: 12em; 27 } 28 span:nth-child(3) { 29 background: lightblue; 30 left: 23em; 31 } 32 </style> 33 34 <div> 35 <span>one</span> 36 <span>two</span> 37 <span>three</span> 38 </div>