Flexbox with ul
4 answers
You probably need to set the flex properties for li and make a request to parent wrap when needed.
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .cont { display: flex; flex-wrap: wrap; list-style-type: none; margin: 0; padding: 0; } .cont li { flex: 0 0 50%; border: 1px solid grey; text-align: center; } <ul class="cont"> <li>text</li> <li>text</li> <li>text</li> <li>text</li> </ul> 0