I've been trying to solve a simple problem with my flex container layout. I want to display 3 items in 2 rows - one item in the first row and the other 2 in the second row. However, no matter what I try, the items all end up on a single line due to the CSS settings.
div.intro_container {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
I thought setting flex-wrap
to wrap
would fix it, but instead, the items stack vertically rather than across multiple lines as I expected. Even when I tried adjusting the CSS for the first item to take up the entire first row, it didn't work as planned.
div.intro_item_1 {
flex-grow: 3;
}
I've consulted resources like CSS-Tricks, but I'm still struggling to find the right combination of commands to achieve the layout I want. Any guidance or advice would be greatly appreciated!