็ก์
list-style ์์ฑ ๋ณธ๋ฌธ
๐ขโ list-style
๋ชฉ๋ก(ul, ol, li)์ ์คํ์ผ์ ๊พธ๋ฐ ๋ ์์ฃผ ์ฌ์ฉํ๋ ์์ฑ.
๐น list-style-type (๋ง์ปค์ ๋ชจ์)
๋ชฉ๋ก ์์ดํ ์์ ๋ถ๋ ๋ง์ปค(๋ถ๋ฆฟ์ด๋ ์ซ์)์ ์ข ๋ฅ๋ฅผ ์ง์ .
ol { list-style-type: decimal; }
- <ol> (Ordered List) ์์๊ฐ ์๋ ๋ชฉ๋ก
- decimal: ์ซ์. (1, 2, 3)
- decimal-leading-zero: 0์ด ๋ถ๋ ์ซ์. (01, 02, 03)
- lower-alpha: ์๋ฌธ์ ์ํ๋ฒณ. (a, b, c)
- upper-alpha: ๋๋ฌธ์ ์ํ๋ฒณ. (A, B, C)
- lower-roman: ์๋ฌธ์ ๋ก๋ง์. (i, ii, iii)
- upper-roman: ๋๋ฌธ์ ๋ก๋ง์. (I, II, III)
ul { list-style-type: disc; }
- <ul> (Unordered List) ์์๊ฐ ์๋ ๋ชฉ๋ก
- disc: ๊ธฐ๋ณธ ์ํ. (โ) (๊ธฐ๋ณธ๊ฐ)
- circle: ๋น ์ํ. (โ)
- square: ์ฌ๊ฐํ. (โ )
- none: ๋ง์ปค ์ ๊ฑฐ.
๐น list-style-image (์ด๋ฏธ์ง ๋ง์ปค)
๊ธฐ๋ณธ ๋ง์ปค ๋์ ์ฌ์ฉ์๊ฐ ์ค๋นํ ์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉ.
ul { list-style-image: url("bullet.png"); }
- ๋ฌธ๋ฒ: url("") ํจ์๋ฅผ ์ด์ฉํด ์ด๋ฏธ์ง ๊ฒฝ๋ก๋ฅผ ์ง์ .
- ์ด๋ฏธ์ง๊ฐ ๋ง์ปค ์ญํ ์ ํ๋ค.
- ์ด๋ฏธ์ง ํฌ๊ธฐ๋ ์ง์ ์ ์ด๊ฐ ์ด๋ ต๊ธฐ ๋๋ฌธ์, ๋ณด ํต ::marker ๋๋ background ๋ก ๋์ฒด. (๋๋ ๋ฏธ๋ฆฌ ์์ ์ฌ์ด์ฆ๋ก ํธ์ง๋ ์ด๋ฏธ์ง ์ฌ์ฉ ์ถ์ฒ)
๐น list-style-position (๋ง์ปค์ ์์น)
๋ง์ปค๊ฐ ํ ์คํธ ๊ธฐ์ค ์ด๋์ ์์นํ ์ง ๊ฒฐ์ .
ul { list-style-position: outside; }
• ์ฒซ ๋ฒ์งธ ํญ๋ชฉ ํ
์คํธ๊ฐ ๊ธธ์ด์ง๋ฉด
๋ ๋ฒ์งธ ์ค์ ์ด๋ ๊ฒ ์ ๋ ฌ๋จ
- outside: ํ
์คํธ ๋ฐ๊นฅ์ชฝ์ ์์น. (๊ธฐ๋ณธ๊ฐ)
- ๊ธ์๊ฐ ๊ธธ์ด์ ธ ์ค ๋ฐ๊ฟ์ด ๋์ด๋ ๋ง์ปค์ ์์น๋ ๊ณ ์ ๋๊ณ ํ ์คํธ๋ง ๋ค์ฌ์ฐ๊ธฐ ๋์ด ์ ๋ ฌ์ด ๊น๋ํ๊ฒ ์ ์ง.
ul { list-style-position: inside; }
• ์ฒซ ๋ฒ์งธ ํญ๋ชฉ ํ
์คํธ๊ฐ ๊ธธ์ด์ง๋ฉด
๋ ๋ฒ์งธ ์ค์ด ์ด๋ ๊ฒ ์์๋จ
- inside: ํ
์คํธ ์์ชฝ์ผ๋ก ํฌํจ.
- ์ค ๋ฐ๊ฟ ์ ๋ง์ปค ๋ฐ๋ก ์๋๊น์ง ๊ธ์๊ฐ ์ฑ์์ ธ ๊ฐ๋ ์ฑ์ด ์ฝ๊ฐ ๋จ์ด์ง. (๋ง์ปค๋ ํ ์คํธ ํ๋ฆ์ ํฌํจ)
๐น โlist-style (์ถ์ฝํ ์์ฑ)
์ธ ๊ฐ์ง ์์ฑ(type, position, image)์ ํ ์ค๋ก ์์ฑ.
ul { list-style: square inside; }
- ๋ฌธ๋ฒ: list-style: type position image;
- ๋ณดํต์ ์ด๋ฏธ์ง๊น์ง ์ฐ๊ธฐ๋ณด๋ค๋ list-style: none;์ ์ฌ์ฉํ์ฌ ๊ธฐ๋ณธ ์คํ์ผ์ ์ ๊ฑฐํ ๋ค, ์ปค์คํ ๋์์ธ์ ์ ํ ๋ ๊ฐ์ฅ ๋ง์ด ํ์ฉํ๋ค.
๐โ POINT ๐โ
โ๏ธ ์ค๋ฌด์์๋ ๋ธ๋ผ์ฐ์ ์ ๊ธฐ๋ณธ ์คํ์ผ์ ์์ ๊ธฐ ์ํด list-style: none; ์ ์์ฃผ ์ฌ์ฉํ๋ค. โ๏ธ
โ๏ธ ๋ถ๋ฆฟ ๋์ ์ธ๋ จ๋ ์์ด์ฝ์ ๋ฃ๊ณ ์ถ๋ค๋ฉด list-style-image ๋ณด๋ค๋
::marker, ::before (๊ฐ์ ์์) ๋ฅผ ํ์ฉํ๋ ๊ฒ์ด ์์น ์ ์ด์ ์ ๋ฆฌํ๋ค. โ๏ธ
๐ ๋ฆฌ์คํธ-์คํ์ผ ์ฃผ์ ์์ฑ ์์ฝํ ๐
| ์์ฑ | ์ค๋ช | ์ฃผ์ ๊ฐ ์์ |
| list-style-type | ๋ง์ปค ๋ชจ์ ๊ฒฐ์ | disc, decimal, none |
| list-style-image | ์ปค์คํ ์ด๋ฏธ์ง ๋ง์ปค | url('icon.png') |
| list-style-position | ๋ง์ปค ๋ฐฐ์น ์์น | inside, outside |
| list-style | ์ ์์ฑ๋ค์ ์ถ์ฝํ | none, circle inside |
๐ list-style-type ์ฝ๋ example ๐โ
Edit fiddle - JSFiddle - Code Playground
Our CSS Flexbox generator lets you create a layout, and skip knowing the confusing properties and value names (let's be honest the W3C did not make a good job here). Not gonna lie, this was heavily inspired by flexer.dev but coded completely from scratch.
jsfiddle.net

'<style>' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| display: inline-block ์์ฑ (0) | 2026.03.18 |
|---|---|
| table ์์ฑ (0) | 2026.03.18 |
| text style ์์ฑ (0) | 2026.03.17 |
| color ์์ฑ (0) | 2026.03.17 |
| Web font (0) | 2026.03.16 |