calc

1. 개요 MDN CSS 속성의 값으로 계산식을 지정할 수 있다. 2. 기본문법 property: calc(expression); 예시: width: calc(100% – 80px); 3. 예제 3.1. 가변너비 요소 지정 [미리보기] 요소의 가변 너비를 쉽게 지정하기 HTML <div class="banner">이건 현수막입니다!</div> CSS .banner { position: absolute; left: 40px; width: calc(100% – 80px); border: solid black 1px; box-shadow: 1px 2px; background-color: yellow; … 더 읽기

1. 선택자

CSS PPT 01. 내부스타일시트 Info: 👁️‍🗨️ head 태그 사이에 style 태그로 작성하는 방식 “`html 우리를 기쁘게 하는 것들. “` “`text 내부스타일시트 우리를 기쁘게 하는 것들. “` 02. 외부스타일시트 “`html “` Info: 👁️‍🗨️ head 태그 사이에 link 태그에 css 문서의 주소를 링크하는 방식 “`html 우리를 기쁘게 하는 것들. “` ex2-2.html <!DOCTYPE html> <html lang="ko"> <head> <meta … 더 읽기