If I have a container div and inside it there are 3 div’s, I want to make div1 and div2 next each other and div3 below with the flex feature.
It is always divided into three parts, regardless of width or height.
<div id="container">
<div id="div1">This is Div 1</div>
<div id="div2">This is Div 2</div>
<div id="div3">This is Div 3</div>
</div>
As you can see above.
2
Answers
Have you tried the CSS
grid
layout?Using flex you can add flex property to your container with flex-wrap so your div can goes to the new line.