https://getbootstrap.kr/docs/5.0/customize/overview/
1. 시작하기
CDN으로 다운로드
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
2. 부트스트랩 레이아웃
2-1) 중단점
Bootstrap의 반응형 grid tiers, 6개의 Breakpoints 로 구성
X-Small | None | <576px |
Small | sm | ≥576px |
Medium | md | ≥768px |
Large | lg | ≥992px |
Extra large | xl | ≥1200px |
Extra extra large | xxl | ≥1400px |
// X-Small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap
// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }
// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }
// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }
// X-Large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }
// XX-Large devices (larger desktops, 1400px and up)
@media (min-width: 1400px) { ... }
2-2) 컨테이너 (Containers)
- container > row > col 방식
<div class="container">
<div class="row">
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-5 col-xxl-4">
</div>
</div>
<div>
'1 > CSS' 카테고리의 다른 글
부트스트랩5 로그인 템플릿 (0) | 2022.04.21 |
---|---|
부트스트랩 아이콘 사용하기 (0) | 2022.04.19 |