반응형
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
- 객체 반복문
- javascript cookie 삭제
- input range
- vscode 재설치
- javascript cookie 얻기
- for in for of 차이점
- for of 문 예시
- next.config.mjs
- forEach map 차이
- vscode 초기화
- for in 문 예시
- 로컬스토리지 객체 저장
- react 검색 기능 구현
- 검색창 autofocus
- 로지텍 버티컬 마우스 사용 후기
- 로지텍 MX Vertical 마우스
- setter 함수 동기적 실행
- Object for in
- vue scss 전역 설정
- array method 요약
- 로컬스토리지 쓰기 읽기 삭제
- 접근자 함수
- vue scss
- pip 명령 에러
- javascript cookie 설정
- input type="range"
- vue sass 사용하기
- input range 컬러변경
- 접근자 프로퍼티
- react input autofocus
Archives
- Today
- Total
짬짬이기록하기
flexbox를 이용한 수직 중앙 정렬 본문
반응형
HTML
<div class="container">
<div class="container-item">middle 정렬</div>
</div>
CSS
html {
height:100%;
margin:0;
padding:0;
}
body {
height:inherit;
margin:0;
padding:0;
}
.container {
height:inherit;
display: flex;
justify-content: center;
align-items: center;
border:1px solid #000;
}
.container-item {
width:30%;
padding:10px;
background-color:#ddd;
text-align:center;
}
Result
반응형
'Web Development > CSS' 카테고리의 다른 글
flex box 아리송한 것 정리 (0) | 2023.05.24 |
---|---|
em rem 적절한 사용 (0) | 2023.02.22 |
table layout case (0) | 2022.07.21 |
행 열 쉽게 외우기 (0) | 2020.06.23 |
input radio checked를 이용한 tab 메뉴 만들기 (0) | 2020.06.16 |