Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1305

Text don't flows downward when structured in columns with Flexbox

$
0
0

I have the following structure and I want the list item elements go in columns but the last one, if the text overflows, must take up all the space on a second line.

ul {    display: flex;    flex-direction: row-reverse;    gap: .5em;    width: 500px;  li {    list-style: none;  }}
<ul><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi</li><li><a href="#" class="link">Link</a></li><li><a href="#" class="link">Link</a></li>  </ul>

Here's what I try.

enter image description here


Viewing all articles
Browse latest Browse all 1305

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>