Answers for "how to one element to next line html in flex"

0

Jumping to next row flex box

/* Code in the HTML File*/
<div class="container">
	<div class="item">...</div>
	<div class="break"></div> <!-- break to a new row -->
	<div class="item">...</div>
</div>
/*Code in CSS*/
.container{
  display:flex;
}
.break {
  width:100%;
}
Posted by: Guest on May-16-2021
0

new line in flex container

width: 100%;
Posted by: Guest on April-19-2021

Code answers related to "how to one element to next line html in flex"

Browse Popular Code Answers by Language