CSSを使用してリストの最後に "3"を移動するにはどうすればよいですか?フレックスボックスを使用して1つの要素をリストの最後に移動
はorder
プロパティを使用しjsbin here
ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
li {
border: 1px solid black;
display: inline-block;
width: 50px;
height: 50px;
line-height: 50px;
text-align: center;
}
.end {
align-self: flex-end; /* this doesn't work; how can I move 3 to the end? */
}
<ul>
<li class="end">3</li>
<li>1</li>
<li>2</li>
</ul>