1. Bootstrap 예제
- W3Schools (www.w3schools.com)에서 제공하는 CSS Bootstrap 예제들을 활용할 수 있다.
- 경로: W3School 메인에서 메뉴바의 ‘References’ > CSS에서 ‘Bootstrap4 Reference’ 클릭
<예시>
• 버튼
- References > Bootstrap 4 Reference > BS4 Buttons
① Button Styles → ★button01.html 참고
[코드]
<button type="button" class="btn">Basic</button>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-link">Link</button>
[결과]
② Button Outline → ★button02.html 참고
[코드]
<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-dark">Dark</button>
<button type="button" class="btn btn-outline-light text-dark">Light</button>
[결과]
'HTML & CSS' 카테고리의 다른 글
39일차: CSS 속성 / 레이아웃 / 반응형 웹 2021.08.06 (0) | 2021.08.06 |
---|---|
38일차: CSS 기초 개념 / CSS 선택자 2021.08.05 (0) | 2021.08.05 |
37일차: HTML5 입력 양식 / 구조화(시맨틱 태그) 2021.08.04 (0) | 2021.08.04 |
36일차: 웹 표준/HTML 기본 태그 2021.08.03 (0) | 2021.08.03 |