[CSS] Backgrounds - 배경색 설정
·
FrontEnd/HTML & CSS
CSS Backgrounds body { background-color: lightblue; } - 배경 효과를 추가하기 위해 사용 background-color background-image background-repeat background-attachment background-position background(shorthand property) - CSS에서 색상은 HEX 값과 RGB 값으로 지정한다. HTML 요소마다 배경색 설정 h1 { background-color: green; } div { background-color: lightblue; } p { background-color: yellow; } 투명도 속성 opcacity은 불투명도/투명도를 지정하며 0.0 ~ 1.0 사이의 값을..