Front-end study/HTML & CSS
-
CSS 기초 이론 정리Front-end study/HTML & CSS 2023. 7. 22. 18:23
#1. 의미, 정의 - Cascading Style Sheet #2. 선택자 - Selectors 1) * => 모든 tag의 색을 남색으로 * { color: navy; } 2) Tag => li 라고 적으면 태그에 적용 li { color: brown; } 3) #id => #input_password 라고 적으면 해당 id를 가진 태그에 적용 #input_password { color: red } 4) .class => .red 라고 적으면 해당 class 명을 사용하고 있는 태그에 적용 .red { width: 120px; height: 80px; background: red; } 5) Tag : state => button : hover 라고 적으면 버튼 위로 마우스를 hover 한 상태인 경우..