Flex line break

0

I have a list of videos that I display on my screen dynamically with java script. It's a div tag with which has class videos. But the list does not break line when the size exceeds the size of the browser and gives horizontal scrollbar.

As I do in css, I think I have to use the flex display to break the line. Does anyone know how to do it?

    
asked by anonymous 10.06.2018 / 00:10

1 answer

0
.elemento{
    display: flex;
    flex-wrap: wrap; // Quebra a linha
    flex-direction: row; //Direção que você deseja
}

If you need more information about flex-box. link

    
10.06.2018 / 00:16