<meta name="viewport" content="width=device-width, initial-scale=1.0">
메타 태그를 통해 뷰포인트를 컨트롤할 수 있음
width=device-width는 디바이스의 스크립 넓이를 따르도록 페이지의 폭을 설정하는 것initial-scale=1.0는 페이지가 브라우저에 처음 로드되었을 때, 초기 줌 레벨을 설정하는 것임많은 페이지들은 grid-view에 기반하며 이는 컬럼으로 페이지를 나눈 것을 의미합니다.
-grid-view는 페이지를 디자인할 때 매우 유용합니다.
box-sizing속성에 border-box를 설정해 둡니다. 이는 패딩과 보더가 요소의 전체 넓이와 높이에 포함되도록 합니다.
* {
box-sizing: border-box;
}
class="col-숫자"로 설정하여 각각의 클래스에 스타일을 조정해줍니다.@media 규칙은 특정 조건이 참일 때만 CSS 속성의 블록을 포함시킵니다./* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {...}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {...}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {...}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {...}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {...}
@media only screen and (orientation: landscape) {
body {
background-color: lightblue;
}
}