justify-content 속성 사용 flex-start 값 포함 플렉스 항목을 처음에 정렬합니다.
플렉스 시작 값을 구현하기 위해 다음 코드를 실행할 수 있습니다.
예시
<!DOCTYPE html>
<html>
<head>
<style>
.mycontainer {
display: flex;
background-color: red;
justify-content: flex-start;
}
.mycontainer > div {
background-color: orange;
text-align: center;
line-height: 60px;
font-size: 30px;
width: 100px;
margin: 5px;
}
</style>
</head>
<body>
<h1>Result</h1>
<div class = "mycontainer">
<div>Rank1</div>
<div>Rank2</div>
<div>Rank3</div>
<div>Rank4</div>
</div>
</body>
</html>