Notice
                              
                          
                        
                          
                          
                            Recent Posts
                            
                        
                          
                          
                            Recent Comments
                            
                        
                          
                          
                            Link
                            
                        
                    | 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
                            Tags
                            
                        
                          
                          - Next
- 자바스크립트 알고리즘 문제
- 프로그래머스
- 자바스크립트 문제 풀이
- 자바스크립트
- 리액트
- 프론트엔드
- JavaScript
- til
- next13
- stack문제
- leetcode
- 제로베이스
- 자바스크립트 연결리스트
- 자바스크립트 알고리즘
- 자바스크립트코딩테스트
- NPM
- leetcode문제풀이
- lodash
- CSS
- 알고리즘문제풀이
- 자바스크립트 문제
- 자바스크립트 문제풀이
- Next.js13
- 타입스크립트
- Baekjoon
- 리액트쿼리
- JS
- react
- HTML
                            Archives
                            
                        
                          
                          - Today
- Total
코드노트
css Container / justify-content / align-items 본문
justify-content
- item요소들을 컨테이너의 기본축과 그리드 컨테이너의 인라인 축의 공간을 분배하는 속성
/* Positional alignment */
justify-content: center;     /* 중앙으로 정렬 */
justify-content: start;      /* 주축이 시작되는 위치부터 정렬 */
justify-content: end;        /* 주축이 끝나는 위치에 정렬(순서가 바뀌는게 아니라 오른쪽에 붙음) */
justify-content: flex-start; /* Pack flex items from the start */
justify-content: flex-end;   /* Pack flex items from the end */
justify-content: left;       /* 왼쪽에 정렬 */
justify-content: right;      /* 오른쪽에 정렬 */
/* Baseline alignment */
/* justify-content does not take baseline values */
/* Normal alignment */
justify-content: normal;
/* Distributed alignment */
justify-content: space-between; /* 공간을 비례하게 분배 */
justify-content: space-around;  /* 공간을 비례하게 분배
								   양쪽 끝에는 공간의 절반씩 분배된다.
                                    */
justify-content: space-evenly;  /* 첫, 끝부분도 동일하게 비례하게 분배 */
justify-content: stretch;       /* Distribute items evenly
                                   Stretch 'auto'-sized items to fit
                                   the container */
/* Overflow alignment */
justify-content: safe center;
justify-content: unsafe center;
/* Global values */
justify-content: inherit;
justify-content: initial;
justify-content: revert;
justify-content: revert-layer;
justify-content: unset;align-items / 한줄
- item이 가지고 있는 크기에서 위치를 설정
/* Basic keywords */
align-items: normal;
align-items: stretch;
/* Positional alignment */
/* align-items does not take left and right values */
align-items: center; /* Pack items around the center */
align-items: start; /* Pack items from the start */
align-items: end; /* Pack items from the end */
align-items: flex-start; /* Pack flex items from the start */
align-items: flex-end; /* Pack flex items from the end */
/* Baseline alignment */
align-items: baseline;
align-items: first baseline;
align-items: last baseline; /* Overflow alignment (for positional alignment only) */
align-items: safe center;
align-items: unsafe center;
/* Global values */
align-items: inherit;
align-items: initial;
align-items: revert;
align-items: revert-layer;
align-items: unset;align-content / 여러줄
/* Basic positional alignment */
/* align-content does not take left and right values */
align-content: center;     /* Pack items around the center */
align-content: start;      /* Pack items from the start */
align-content: end;        /* Pack items from the end */
align-content: flex-start; /* Pack flex items from the start */
align-content: flex-end;   /* Pack flex items from the end */
/* Normal alignment */
align-content: normal;
/* Baseline alignment */
align-content: baseline;
align-content: first baseline;
align-content: last baseline;
/* Distributed alignment */
align-content: space-between; /* Distribute items evenly
                                 The first item is flush with the start,
                                 the last is flush with the end */
align-content: space-around;  /* Distribute items evenly
                                 Items have a half-size space
                                 on either end */
align-content: space-evenly;  /* Distribute items evenly
                                 Items have equal space around them */
align-content: stretch;       /* Distribute items evenly
                                 Stretch 'auto'-sized items to fit
                                 the container */
/* Overflow alignment */
align-content: safe center;
align-content: unsafe center;
/* Global values */
align-content: inherit;
align-content: initial;
align-content: revert;
align-content: revert-layer;
align-content: unset;align-self / 한개의 item에 적용
/* Keyword values */
align-self: auto;
align-self: normal;
/* Positional alignment */
/* align-self does not take left and right values */
align-self: center; /* Put the item around the center */
align-self: start; /* Put the item at the start */
align-self: end; /* Put the item at the end */
align-self: self-start; /* Align the item flush at the start */
align-self: self-end; /* Align the item flush at the end */
align-self: flex-start; /* Put the flex item at the start */
align-self: flex-end; /* Put the flex item at the end */
/* Baseline alignment */
align-self: baseline;
align-self: first baseline;
align-self: last baseline;
align-self: stretch; /* Stretch 'auto'-sized items to fit the container */
/* Overflow alignment */
align-self: safe center;
align-self: unsafe center;
/* Global values */
align-self: inherit;
align-self: initial;
align-self: revert;
align-self: revert-layer;
align-self: unset;
'Code note > CSS' 카테고리의 다른 글
| Media Query 반응형 디자인 크기 조절 (0) | 2022.10.14 | 
|---|---|
| css grid 그리드, 정렬 및 그리드 단위 정리 (0) | 2022.10.14 | 
| css flexbox 정리 (1) | 2022.10.12 | 
| css animation 정리 (0) | 2022.10.11 | 
| css transform, transition 정리 (1) | 2022.10.11 |