-
[CSS] counter 사용HTML & CSS 2018. 11. 21. 16:15
.owl-dots {
counter-reset: dots;
.owl-dot {
&:before {
counter-increment: dots;
content: counter(dots);
}
//01 02 ... 09 10
&:nth-child(-n+9):before {
content: "0" counter(dots);
}
}
}'HTML & CSS' 카테고리의 다른 글
[CSS] input placeholder color (0) 2018.11.21 [CSS] 레이어 중앙 정렬 (ie7 ~) (0) 2018.11.21 [CSS] 요소 개수별로 속성 적용 (0) 2018.11.21 [SASS] for문 활용 (0) 2018.11.21 [SASS] 자주 쓰는 @mixin 믹스인 (0) 2018.11.21 댓글