문서의 특정 부분을 스타일할 수 있도록 도와준다.

 

ex)

ABC::before {

content : "앞!";

color: red;

}

선택자 ABC요소의 앞에 내용(content)을 삽입한다.

before의 출력결과

 

ABC::after {

content:"뒤!";

color: blue;

}

 

선택자  ABC요소의 앞 내용(content)를 삽입한다.

 

'CSS' 카테고리의 다른 글

#CSS. font-family  (0) 2021.08.26
#CSS. opacity  (0) 2021.08.26
#CSS. overFlow  (0) 2021.08.26
#CSS. Box-Sizing  (0) 2021.08.26
#CSS. Margin  (0) 2021.08.26

+ Recent posts