mardi 21 juin 2016

Flex: When text too long break into new line


I was thinking if it is possible to achieve following using css flexbox.

In the layout, there are originaly 2 div next to each other. Left one contains group of icons and has a fixed width. Right one contains text, which can be potentially quite long.

Is there a way, how to make using only css (especially flexbox), that when the text is too long, the div will break onto the new line (under first div)?

Check the following image. enter image description here


Aucun commentaire:

Enregistrer un commentaire