์ด๋ฒˆ์—๋Š” ๋ชฉ๋ก๊ณผ ๊ด€๋ จ๋œ CSS์†์„ฑ์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 

์šฐ์„  ์–ด๋–ค ์†์„ฑ๋“ค์ด ์žˆ๋Š”์ง€ ๊ทธ๋†ˆ๋“ค์˜ ์ด๋ฆ„๋ถ€ํ„ฐ ํ•œ๋ฒˆ ์‚ดํŽด๋ด…์‹œ๋‹ค. 

  • list-style-type ์ด๊ฑด ๋ชฉ๋ก ์Šคํƒ€์ผ, ์˜ˆ๋ฅผ ๋“ค๋ฉด ์ˆซ์ž, ์˜๋ฌธ, ๋™๊ทธ๋ผ๋ฏธ, ์‚ฌ๊ฐํ˜• , ๋ญ ์ด๋Ÿฐ ๊ฒƒ๋“ค์„ ์„ค์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค. 

  • list-style-position ์ด๊ฑด ๋ชฉ๋ก์ด ์ธ๋ดํŠธ ๋˜์–ด์•ผ ํ•˜๋Š”์ง€๋ฅผ ๊ฒฐ์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค. ํ•˜์œ„ ๋ชฉ๋ก์ด๋ƒ ์•„๋‹ˆ๋ƒ ๋ญ ์ด๋Ÿฐ๊ฑฐ์ฃ . 

  • list-style-image ๋ชฉ๋ก ์•ž์— ์ด๋ฏธ์ง€๋ฅผ ๋ณด์—ฌ์ฃผ๊ฒ ๋‹ค๋Š” ๊ฒ๋‹ˆ๋‹ค. ๋‹จ์ˆœํ•œ ์ˆซ์ž๋ชฉ๋ก์ด๋‚˜ ๊ธฐํ˜ธ๋ชฉ๋ก์ด ์‹ซ๋‹ค๋ฉด ์ด๊ฑธ ์“ธ ์ˆ˜๋„ ์žˆ๊ฒ ๋„ค์š”.

  • list-style ๋ชฉ๋ก ๊ด€๋ จ ์Šคํƒ€์ผ์„ ํ•œ๊บผ๋ฒˆ์— ์ •์˜ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ์†์„ฑ์ด์ฃ .

  • marker-offset ๋ชฉ๋ก์—์„œ ๋งˆ์ปค(์ˆซ์ž, ๋™๊ธ€๋ผ๋ฏธ ๋“ฑ๋“ฑ)์™€ ํ…์ŠคํŠธ ์‚ฌ์ด์˜ ๊ฐ„๊ฒฉ์„ ๊ฒฐ์ •์ง“๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

์ด์ œ ๊ฐ ์†์„ฑ๋“ค์„ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋Š”์ง€ ์˜ˆ์ œ๋ฅผ ํ•œ๋ฒˆ ๋ณผ๊นŒ์š”?? 


The list-style-type Property:

list-style-type ์†์„ฑ์€ ๋ญ ๋ชฉ๋ก์— ๋ณด์—ฌ์ง€๋Š” ๋งˆ์ปค์˜ ์Šคํƒ€์ผ์„ ๋ณ€๊ฒฝํ•˜๊ธฐ์œ„ํ•œ ์†์„ฑ์ž…๋‹ˆ๋‹ค. 

๋ชฉ๋ก์—๋Š” ํฌ๊ฒŒ ์ˆœ์„œ์žˆ๋Š” ๋ชฉ๋ก๊ณผ ์ˆœ์„œ์—†๋Š” ๋ชฉ๋ก์ด ์žˆ์ฃ .

 

๋‹ค์Œ์€ ์ˆœ์„œ์—†๋Š” ๋ชฉ๋ก์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” list-style-type์˜ ์†์„ฑ๊ฐ’์ž…๋‹ˆ๋‹ค. 

ValueDescription
noneNA
disc (default)A filled-in circle
circleAn empty circle
squareA filled-in square

 

๋‹ค์Œ์€ ์ˆœ์„œ์žˆ๋Š” ๋ชฉ๋ก์—์„œ ์‚ฌ์šฉ๋˜๋Š” ์†์„ฑ๊ฐ’์ž…๋‹ˆ๋‹ค. 

ValueDescriptionExample
decimalNumber1,2,3,4,5
decimal-leading-zero0 before the number01, 02, 03, 04, 05
lower-alphaLowercase alphanumeric charactersa, b, c, d, e
upper-alphaUppercase alphanumeric charactersA, B, C, D, E
lower-romanLowercase Roman numeralsi, ii, iii, iv, v
upper-roman Uppercase Roman numeralsI, II, III, IV, V
lower-greek The marker is lower-greek alpha, beta, gamma
lower-latin The marker is lower-latin a, b, c, d, e
upper-latin The marker is upper-latin A, B, C, D, E
hebrew The marker is traditional Hebrew numbering  
armenian The marker is traditional Armenian numbering  
georgian The marker is traditional Georgian numbering  
cjk-ideographicThe marker is plain ideographic numbers 
hiraganaThe marker is hiraganaa, i, u, e, o, ka, ki
katakanaThe marker is katakanaA, I, U, E, O, KA, KI
hiragana-irohaThe marker is hiragana-irohai, ro, ha, ni, ho, he, to
katakana-irohaThe marker is katakana-irohaI, RO, HA, NI, HO, HE, TO

 

 

์˜ˆ์ œ๋ฅผ ํ•œ๋ฒˆ ๋ณผ๊นŒ์š”. 

<ul style="list-style-type:circle;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>

<ul style="list-style-type:square;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>

<ol style="list-style-type:decimal;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>

<ol style="list-style-type:lower-alpha;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>

<ol style="list-style-type:lower-roman;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. 

  • Maths
  • Social Science
  • Physics
  • Maths
  • Social Science
  • Physics
  1. Maths
  2. Social Science
  3. Physics
  1. Maths
  2. Social Science
  3. Physics
  1. Maths
  2. Social Science
  3. Physics

 


The list-style-position Property:

list-style-position ์†์„ฑ์€ bullet point๋ฅผ ํฌํ•จํ•˜๋Š” ๋ฐ•์Šค์˜ ๋‚ด๋ถ€ ๋˜๋Š” ์™ธ๋ถ€์˜ ์œ„์น˜๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

ValueDescription
noneNA
insideIf the text goes onto a second line, the text will wrap underneath the marker. It will also appear indented to where the text would have started if the list had a value of outside.
outsideIf the text goes onto a second line, the text will be aligned with the start of the first line (to the right of the bullet).

 

๋‹ค์Œ ์˜ˆ์ œ๋ฅผ ๋ณด์‹œ์ฃ .

<ul style="list-style-type:circle; list-stlye-position:outside;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>

<ul style="list-style-type:square;list-style-position:inside;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>

<ol style="list-style-type:decimal;list-stlye-position:outside;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>

<ol style="list-style-type:lower-alpha;list-style-position:inside;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • Maths
  • Social Science
  • Physics
  • Maths
  • Social Science
  • Physics
  1. Maths
  2. Social Science
  3. Physics
  1. Maths
  2. Social Science
  3. Physics

 


The list-style-image Property:

list-style-image ์†์„ฑ์€ ์œ„์—์„œ ๋ง์”€๋“œ๋ฆฐ ๊ฒƒ์ฒ˜๋Ÿผ ์ด๋ฏธ์ง€ ํŒŒ์ผ์„ ์†Œ์Šค๋กœ ์ง€์ •ํ•˜์—ฌ ๋ชฉ๋ก์˜ ๋งˆ์ปค๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ๋” ํ•ด์ฃผ๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.  

 

๋‹ค์Œ ์˜ˆ์ œ๋ฅผ ๋ณด์‹œ์ฃ .

<ul>
<li style="list-style-image: url(/images/bullet.gif);">Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>

<ol>
<li style="list-style-image: url(/images/bullet.gif);">Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. ( url์— ์–ด๋–ค ์ด๋ฏธ์ง€ ์†Œ์Šค์˜ ๊ฒฝ๋กœ๊ฐ€ ๋“ค์–ด๊ฐ€๋Š๋ƒ์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง€๋Š” ๊ฒฐ๊ณผ์ž…๋‹ˆ๋‹ค. ) 

  • Maths
  • Social Science
  • Physics
  1. Maths
  2. Social Science
  3. Physics

 


The list-style Property:

๋‹ค์Œ ์˜ˆ์ œ๋ฅผ ๋ณด์‹œ์ฃ . 

<ul style="list-style: inside square;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>

<ol style="list-style: outside upper-alpha;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • Maths
  • Social Science
  • Physics
  1. Maths
  2. Social Science
  3. Physics

 


The marker-offset Property:

์ด ์†์„ฑ์€ IE 6, Netscape 7 ์ดํ•˜์—์„œ๋Š” ์ง€์›ํ•˜์ง€ ์•Š๋Š”๋‹ค๋Š”๊ตฐ์š”.

์˜ˆ์ œ๋ฅผ ๋ด…์‹œ๋‹ค. 

<ul style="list-style: inside square; marker-offset:2em;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>

<ol style="list-style: outside upper-alpha; marker-offset:2cm;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>

 

๊ฒฐ๊ณผ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • Maths
  • Social Science
  • Physics
  1. Maths
  2. Social Science
  3. Physics

 

 

 

 

 

Reference : http://www.tutorialspoint.com/css/css_lists.htm