css-box-justify-content-ref.html (957B)
1 <!DOCTYPE html> 2 <title>flexbox |css-box-justify-content</title> 3 <link rel="author" href="mailto:ava656094@gmail.com" title="xiaoxia"> 4 <style> 5 #flexbox { 6 background: green; 7 display: inline-block; 8 width: 300px; 9 height: 40px; 10 text-align:right; 11 } 12 .item{ 13 display: inline-block; 14 text-align:left; 15 width:50px; 16 height: 30px; 17 } 18 </style> 19 20 <p>This test passes if the DIV5's position in the end and the div is Horizontal layout</p> 21 <div id="flexbox"> 22 <div class="item" style="background-color: rgb(242, 210, 80); color: rgb(41, 119, 248);">DIV1</div> 23 <div class="item" style="background-color: rgb(110, 8, 7); color: rgb(162, 152, 22);">DIV2</div> 24 <div class="item" style="background-color: rgb(215, 172, 243); color: rgb(74, 123, 110);">DIV3</div> 25 <div class="item" style="background-color: rgb(242, 133, 80); color: rgb(41, 119, 248);">DIV4</div> 26 <div class="item" style="background-color: rgb(242, 50, 80); color: rgb(41, 119, 248);">DIV5</div> 27 </div>