구조

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6f68a692-920d-48af-9683-d19192d7b2bc/css-declaration-small.png

Layouts

Layouts

반응형 디자인

Media Queries

body {
  background-color: red;
}

/* 화면이 600px 이하면 배경색을 바꾸도록 세팅 */
@media (max-width: 600px) {
  body {
    background-color: blue;
  }
}

Percentage, Min/Max

.box {
  width: 50%;       /* 너비를 부모의 50%로 설정 */
  min-width: 100px; /* 최소 너비 */
  max-width: 300px; /* 최대 너비 */
}

방법론

BEM 방법론