๐ย list-style-type
list-style-type์ ๋ชฉ๋ก ํญ๋ชฉ ์์์ ๋ง์ปค(์: disc, circle ๋ฑ)๋ฅผ ์ค์ ํ๋ ์์ฑ์ ๋๋ค.
ul {
list-style-type: disc;
}
ol {
list-style-type: none;
}
๐ย list-style-position
list-style-position์ ๋ชฉ๋ก ํญ๋ชฉ ๋ง์ปค์ ํ ์คํธ ๊ฐ์ย ์์น๋ฅผ ์ค์ ํ ์ ์๋ ์์ฑ์ผ๋ก ๊ธฐ๋ณธ๊ฐ์ outside ์ ๋๋ค.
ul {
list-style-position: inside;
}
ol {
list-style-position: outline;
}
MDN list-style-position ์์ฑ
๐ย list-style-image
list-style-image๋ฅผ ์ฌ์ฉํ์ฌ ๋ชฉ๋ก ํญ๋ชฉ ๋ง์ปค๋ก ์ฌ์ฉํ ์ด๋ฏธ์ง๋ฅผ ์ค์ ํ ์ ์์ผ๋ฉฐ ๋ง์ปค๋ก ๊ทธ๋๋์ธํธ ํจ๊ณผ๋ฅผ ์ ์ฉํ๋ ๊ฒ๋ ๊ฐ๋ฅํฉ๋๋ค.
ul {
list-style-image: url("../images/new.png");
}
ol {
list-style-image: linear-gradient(to left bottom, #foo, #0f0);
}
๐ย list-style
list-style ์์ฑ์ list-style-type, list-style-image, list-style-position ์์ฑ ๊ฐ์ ํ ๋ฒ์ ์ค์ ํ ์ ์๋ ๋จ์ถ ์์ฑ(Shorthand Porperty)์ ๋๋ค.
ul {
list-style: circle inside;
}
ol {
list-style: upper-roman url("../images/new.png") outside;
}