flexbox_justifycontent-spacearound-negative-ref.html (596B)
1 <!DOCTYPE html> 2 <title>flexbox | justify-content: space-around / negative</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: 17em; 11 position: relative; 12 } 13 span { 14 background: yellow; 15 margin: 1em 0; 16 width: 4em; 17 height: 6em; 18 position: absolute; 19 left: 1em; 20 display: inline-block; 21 } 22 span:nth-child(2) { 23 background: pink; 24 left: 7em; 25 } 26 span:nth-child(3) { 27 background: lightblue; 28 left: 13em; 29 } 30 </style> 31 32 <div> 33 <span>one</span> 34 <span>two</span> 35 <span>three</span> 36 </div>