CSS : html을 꾸미기 위한 디자인 묶음
📌 Essentials
DISPLAY attiribute
: 태그들 마다 display 속성 존재. html 화면을 어떻게 구성하는지를 알아야 함
Visibility attiribute
Size attiribute
[Font Size와 연관]
CSS 적용 순서 : 태그에서 바로 적용하는 것 > 같은 파일에 있는
style
태그 > 다른 CSS 파일
왜 footer 왼쪽 정렬 되어있나 ..?
💻 코드
<div class="testing" style="display: inline-block; width: 48px; height: 48px;">inline-block</div>
<div class="testing" style="display: inline-block; width: 3em; height: 3em;">inline-block</div>
<div class="testing" style="display: inline-block; width: 3rem; height: 3rem;">inline-block</div>
<div class="testing" style="display: inline-block; width: 30%; height: 30%;">inline-block</div>
💻 결과
💻 font-size(부모×2, html×2) 결과
→ em : 4배 / rem : 2배
변경사항 저장 안하고 싶을 땐 : git reset --hard HEAD