CSS, Web, Web Development, Layout.
to flex-basis: 400px . Flex will break the line, and when there is remaining space in the same line, the Flex project will expand and fill the entire Flex container: Implementing similar effects in Grid is a bit more complicated. You can use features like repeat() function, 1fr and auto-fit :