똑같은 속성이 중복되어있으면 중복된 값 중 하나만 선택해서 적용한다.

핵 (hack) - !important
px: 픽셀
%, em, rem, vw, vh: 기준에 따라 크기가 변함
vw, vh: width height색상을 영문 이름 지정하는 것
00~ff
16진수
0~255
0.1 0.2 0.3 ... 0.9 1
몰라도 됨
폰트 지정
폰트 크기
텍스트 색상
굵기 700 (bold) font-weight: bold
font-style: normal, italic, oblique
영문을 크기가 작은 대문자 변경할 때
text-align: left, center, right, justify
text-decoration: none, underline, line-through, overline
텍스트 장식 설정
문자 간격 조정
줄 간격 조정
모든 HTML 요소는 사각형 모양의 박스에 둘러 쌓여져 있다.
margin, margin-top, margin-right, margin-bottom, margin-left: 요소와 요소 간의 간격
border, border-top, border-right, border-bottom, border-left: 요소의 테두리 설정
padding, padding-top, padding-right, padding-bottom, padding-left: 요소 내부 여백
width, height: 요소의 너비와 높이
.article__button {
marginbottom: 10px;
}
.article__button:last-of-type {
marginbottom: 0px;
}
💫 https://www.w3.org/TR/CSS22/propidx
💫 codewars : 영어, 난이도별로 문제 제공, 다양한 답변
💫 실습1: 중앙정렬이 중요
웹 접근성 포기
div {
width: 800px;
height: 800px;
border: 2px solid black;
background-image: url("./media/london.png");
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
💫 https://www.w3.org/TR/wai-aria-1.1/
💫 실습2: nav를 어떻게 중앙정렬하느냐