플렉스 방향
플렉스 방향
flex-direction속성 플렉스 콘테이너 내의가요 항목의 방향을 지정한다. 기본값은 flex-direction입니다 row(왼쪽에서 오른쪽, 위에서 아래).
다른 값은 다음과 같습니다.
1. row-reverse - 쓰기 모드 (방향)가 왼쪽에서 오른쪽 인 경우 플렉스 항목이 오른쪽에서 왼쪽으로 배치됩니다
2. column - 쓰기 시스템이 가로 인 경우 플렉스 항목이 세로로 배치됩니다.
3. column-reverse - 열과 같지만 반대입니다.
다음 예제에서는 row-reverse값 을 사용한 결과를 보여줍니다 .
예
.flex-container {
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row-reverse;
flex-direction: row-reverse;
width: 400px;
height: 250px;
background-color: lightgrey;
}
<!DOCTYPE html>
<html>
<head>
<style>
.flex-container {
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row-reverse;
flex-direction: row-reverse;
width: 400px;
height: 250px;
background-color: lightgrey;
}
.flex-item {
background-color: cornflowerblue;
width: 100px;
height: 100px;
margin: 10px;
}
</style>
</head>
<body>
<div class="flex-container">
<div class="flex-item">flex item 1</div>
<div class="flex-item">flex item 2</div>
<div class="flex-item">flex item 3</div>
</div>
</body>
</html>
게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 1157 | CSS |
zakdok
|
7년 전 | 2880 | |
| 1156 | CSS |
zakdok
|
7년 전 | 2071 | |
| 1155 | HTML |
zakdok
|
7년 전 | 3384 | |
| 1154 | CSS |
|
7년 전 | 2566 | |
| 1153 | CSS | 7년 전 | 2344 | ||
| 1152 | 기타 | 7년 전 | 2189 | ||
| 1151 | 기타 | 7년 전 | 2738 | ||
| 1150 | CSS |
|
7년 전 | 4879 | |
| 1149 | HTML |
루돌프사슴코
|
7년 전 | 3061 | |
| 1148 | 기타 | 7년 전 | 2721 | ||
| 1147 | 기타 | 7년 전 | 2112 | ||
| 1146 | 기타 | 7년 전 | 2279 | ||
| 1145 | CSS | 7년 전 | 2540 | ||
| 1144 | CSS | 7년 전 | 2120 | ||
| 1143 | CSS | 7년 전 | 2385 | ||
| 1142 | CSS | 7년 전 | 2068 | ||
| 1141 | CSS | 7년 전 | 2361 | ||
| 1140 | CSS | 7년 전 | 2144 | ||
| 1139 | 기타 | 7년 전 | 2190 | ||
| 1138 | 기타 | 7년 전 | 2005 | ||
| 1137 | 기타 | 7년 전 | 1895 | ||
| 1136 | 기타 | 8년 전 | 2102 | ||
| 1135 | 기타 | 8년 전 | 1660 | ||
| 1134 | 기타 | 8년 전 | 1880 | ||
| 1133 | HTML | 8년 전 | 3515 | ||
| 1132 | 기타 | 8년 전 | 2416 | ||
| 1131 | 기타 | 8년 전 | 2190 | ||
| 1130 | 기타 | 8년 전 | 1921 | ||
| 1129 | 기타 | 8년 전 | 1467 | ||
| 1128 | CSS | 8년 전 | 2702 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기