플렉스 방향
플렉스 방향
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>
게시글 목록
| 번호 | 제목 |
|---|---|
| 3643 | |
| 3631 | |
| 3627 | |
| 3621 | |
| 3619 |
HTML
스크롤다운시 모션효과
|
| 3617 | |
| 3610 |
HTML
간단한 FLEX 예제
|
| 3609 |
HTML
간단한 반응형 페이지 레이아웃
1
|
| 3608 |
HTML
간단한 Flex 활용 예제
1
|
| 3607 | |
| 3606 | |
| 3603 | |
| 3602 | |
| 3601 | |
| 3600 | |
| 3595 | |
| 3591 | |
| 3587 | |
| 3578 | |
| 3567 | |
| 3561 |
웹접근성
웹 표준 검사하기
|
| 3560 |
반응형
반응형을 위한 미디어쿼리
2
|
| 3559 | |
| 3557 | |
| 3555 | |
| 3554 |
CSS
body 외부 정렬
|
| 3552 | |
| 3551 |
CSS
flex 레이아웃
1
|
| 3550 | |
| 3537 |
기타
howler.js
2
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기