| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 .flex-container { | 3 .flex-container { |
| 4 background: #333; | 4 background: #333; |
| 5 border: 0px; | 5 border: 0px; |
| 6 display: flex; | 6 display: inline-flex; |
| 7 margin: 0px; | 7 margin: 0px; |
| 8 padding: 0px; | 8 padding: 0px; |
| 9 } | 9 } |
| 10 | 10 |
| 11 .flex-container.flex-direction-row { | 11 .flex-container.flex-direction-row { |
| 12 flex-direction : row; | 12 flex-direction : row; |
| 13 } | 13 } |
| 14 | 14 |
| 15 .flex-container.flex-direction-row-reverse { | 15 .flex-container.flex-direction-row-reverse { |
| 16 flex-direction : row-reverse; | 16 flex-direction : row-reverse; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 43 .flex-item { | 43 .flex-item { |
| 44 width:50px; | 44 width:50px; |
| 45 height:50px; | 45 height:50px; |
| 46 margin:20px; | 46 margin:20px; |
| 47 background: #eee; | 47 background: #eee; |
| 48 line-height: 50px; | 48 line-height: 50px; |
| 49 text-align: center; | 49 text-align: center; |
| 50 } | 50 } |
| 51 </style> | 51 </style> |
| 52 | 52 |
| 53 <fieldset> | 53 <summary> |
| 54 <legend>Fieldset with display: flex</legend> | |
| 55 <div>these fieldsshouldn't bestacked vertically</div> | 54 <div>these fieldsshouldn't bestacked vertically</div> |
| 56 </fieldset> | 55 </summary> |
| 57 | 56 |
| 58 <h1>flex-direction: row</h1> | 57 <h1>flex-direction: row</h1> |
| 59 <div class="flex-container flex-direction-row"> | 58 <div class="flex-container flex-direction-row"> |
| 60 <div class="flex-item">1</div> | 59 <div class="flex-item">1</div> |
| 61 <div class="flex-item">2</div> | 60 <div class="flex-item">2</div> |
| 62 <div class="flex-item">3</div> | 61 <div class="flex-item">3</div> |
| 63 </div> | 62 </div> |
| 64 | 63 |
| 65 <h1>flex-direction: row-reverse</h1> | 64 <h1>flex-direction: row-reverse</h1> |
| 66 <div class="flex-container flex-direction-row-reverse"> | 65 <div class="flex-container flex-direction-row-reverse"> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 96 <div class="flex-item">2</div> | 95 <div class="flex-item">2</div> |
| 97 <div class="flex-item">3</div> | 96 <div class="flex-item">3</div> |
| 98 </div> | 97 </div> |
| 99 | 98 |
| 100 <h1>justify-content: space-between</h1> | 99 <h1>justify-content: space-between</h1> |
| 101 <div class="flex-container justify-content-space-between"> | 100 <div class="flex-container justify-content-space-between"> |
| 102 <div class="flex-item">1</div> | 101 <div class="flex-item">1</div> |
| 103 <div class="flex-item">2</div> | 102 <div class="flex-item">2</div> |
| 104 <div class="flex-item">3</div> | 103 <div class="flex-item">3</div> |
| 105 </div> | 104 </div> |
| OLD | NEW |