Answer the question
In order to leave comments, you need to log in
How to move an element to a new line using flexbox?
There is a list. The elements of the list contain some elements. How to use flexbox so that when the monitor screen is reduced, the elements adapt to the screen?
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
ul {
display:flex;
}
ul li {
background: red;
text-decoration: none;
align-items: center;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question