ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [CSS] ํ…์ŠคํŠธ ๊ด€๋ จ ์Šคํƒ€์ผ๊ณผ ์˜ˆ์ œ - 2
    ๐ŸŒ FrontEnd/HTML & CSS 2022. 5. 20. 22:10

     

    ์‹œ์ž‘ํ•˜๋ฉด์„œ

    ํ…์ŠคํŠธ์™€ ๊ด€๋ จ๋œ ์Šคํƒ€์ผ์„ ์˜ˆ์ œ์™€ ํ•จ๊ป˜ ๊ณต๋ถ€ํ•ฉ๋‹ˆ๋‹ค.

     

     

    3. ๋ฌธ๋‹จ ์Šคํƒ€์ผ

    (1) direction ์†์„ฑ

    • ํ…์ŠคํŠธ์˜ ์“ฐ๊ธฐ ๋ฐฉํ–ฅ์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.
    /* ์˜ˆ */
    
    h3 {
    	direction: rtl; /* ์ œ๋ชฉ์„ ์˜ค๋ฅธ์ชฝ์—์„œ ์™ผ์ชฝ์œผ๋กœ ํ‘œ์‹œ */
    }

     

    (2) text-align ์†์„ฑ - ํ…์ŠคํŠธ ์ •๋ ฌํ•˜๊ธฐ

    • ๋ฌธ๋‹จ์˜ ํ…์ŠคํŠธ ์ •๋ ฌ ๋ฐฉ๋ฒ•์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.
    • ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ์†์„ฑ๊ฐ’์€ left ์™€ right, center, justify ์ž…๋‹ˆ๋‹ค.
    • ๊ธฐ๋ณธ ๊ฐ’์€ ๋ธŒ๋ผ์šฐ์ €์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง€๋ฉฐ, ๋ถ€๋ชจ ์š”์†Œ์˜ ๊ฐ’์„ ์ƒ์†ํ•ฉ๋‹ˆ๋‹ค.

     

    (2) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
      <meta charset="utf-8">
      <title>LoveDive</title>
      <style>
      	p {
      		border: 1px solid plum; /* ํ…Œ๋‘๋ฆฌ - ์ž๋‘์ƒ‰ 1ํ”ฝ์…€ ์‹ค์„  */
      		padding: 10px; /* ํ…Œ๋‘๋ฆฌ์™€ ๋‚ด์šฉ ์‚ฌ์ด์˜ ํŒจ๋”ฉ ์—ฌ๋ฐฑ */
      		margin: 10px; /* ๋‹จ๋ฝ ์ฃผ๋ณ€์˜ ๋งˆ์ง„ ์—ฌ๋ฐฑ */
      	}
        .align-left {text-align: left;}  /* ์™ผ์ชฝ ์ •๋ ฌ */
        .align-right {text-align: right;}  /* ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ */
        .align-center {text-align: center;}  /* ๊ฐ€์šด๋ฐ ์ •๋ ฌ */
        .align-justify {text-align: justify; }  /* ์–‘์ชฝ ์ •๋ ฌ */
      </style>
    </head>
    <body>
      <h1>ํ…์ŠคํŠธ ์ •๋ ฌ </h1>
      
    	<!-- ์™ผ์ชฝ ์ •๋ ฌ -->
    	<p class="align-left"> 
    		Narcissistic, my god, I love it
    		์„œ๋กœ๋ฅผ ๋น„์ถ˜ ๋ฐค
    		์•„๋ฆ„๋‹ค์šด ๊นŒ๋งŒ ๋ˆˆ๋น› ๋” ๋น ์ ธ ๊นŠ์ด
    		(๋„Œ ๋‚ด๊ฒŒ๋กœ, ๋‚œ ๋„ค๊ฒŒ๋กœ)
    		์ˆจ ์ฐธ๊ณ  love dive
    		Ooh-ooh, ooh-ooh, lalalalalalala
    		Ooh-ooh, ooh-ooh ์–ด์„œ ์™€์„œ love dive
    		Ooh-ooh, ooh-ooh, oh, perfect sacrifice
    		Yeah ์ˆจ ์ฐธ๊ณ  love dive
    	</p>  
    
    	<!-- ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ -->
      	<p class="align-right"> 
    		Narcissistic, my god, I love it
    		์„œ๋กœ๋ฅผ ๋น„์ถ˜ ๋ฐค
    		์•„๋ฆ„๋‹ค์šด ๊นŒ๋งŒ ๋ˆˆ๋น› ๋” ๋น ์ ธ ๊นŠ์ด
    		(๋„Œ ๋‚ด๊ฒŒ๋กœ, ๋‚œ ๋„ค๊ฒŒ๋กœ)
    		์ˆจ ์ฐธ๊ณ  love dive
    		Ooh-ooh, ooh-ooh, lalalalalalala
    		Ooh-ooh, ooh-ooh ์–ด์„œ ์™€์„œ love dive
    		Ooh-ooh, ooh-ooh, oh, perfect sacrifice
    		Yeah ์ˆจ ์ฐธ๊ณ  love dive
    	</p> 
    
    	<!-- ๊ฐ€์šด๋ฐ ์ •๋ ฌ -->
    	<p class="align-center">
    		Narcissistic, my god, I love it
    		์„œ๋กœ๋ฅผ ๋น„์ถ˜ ๋ฐค
    		์•„๋ฆ„๋‹ค์šด ๊นŒ๋งŒ ๋ˆˆ๋น› ๋” ๋น ์ ธ ๊นŠ์ด
    		(๋„Œ ๋‚ด๊ฒŒ๋กœ, ๋‚œ ๋„ค๊ฒŒ๋กœ)
    		์ˆจ ์ฐธ๊ณ  love dive
    		Ooh-ooh, ooh-ooh, lalalalalalala
    		Ooh-ooh, ooh-ooh ์–ด์„œ ์™€์„œ love dive
    		Ooh-ooh, ooh-ooh, oh, perfect sacrifice
    		Yeah ์ˆจ ์ฐธ๊ณ  love dive
    	</p> 	
     
    	<!-- ์–‘์ชฝ ์ •๋ ฌ -->
    	<p class="align-justify">
    		Narcissistic, my god, I love it
    		์„œ๋กœ๋ฅผ ๋น„์ถ˜ ๋ฐค
    		์•„๋ฆ„๋‹ค์šด ๊นŒ๋งŒ ๋ˆˆ๋น› ๋” ๋น ์ ธ ๊นŠ์ด
    		(๋„Œ ๋‚ด๊ฒŒ๋กœ, ๋‚œ ๋„ค๊ฒŒ๋กœ)
    		์ˆจ ์ฐธ๊ณ  love dive
    		Ooh-ooh, ooh-ooh, lalalalalalala
    		Ooh-ooh, ooh-ooh ์–ด์„œ ์™€์„œ love dive
    		Ooh-ooh, ooh-ooh, oh, perfect sacrifice
    		Yeah ์ˆจ ์ฐธ๊ณ  love dive
    	</p> 
    
    </body>
    </html>

     

    (3) text-justify ์†์„ฑ ์ •๋ ฌ ์‹œ ๊ณต๋ฐฑ ์กฐ์ ˆํ•˜๊ธฐ

    • ์ •๋ ฌ ์‹œ ๊ณต๋ฐฑ์„ ์กฐ์ ˆํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

     

    (4) text-indent ์†์„ฑ ํ…์ŠคํŠธ ๋“ค์—ฌ์“ฐ๊ธฐ

    • ํ…์ŠคํŠธ๊ฐ€ ๋งŽ์€ ๋ฌธ์„œ์ผ ๊ฒฝ์šฐ ์—ฌ๋Ÿฌ ๋ฌธ๋‹จ์œผ๋กœ ์ด๋ฃจ์–ด์ง€๋Š”๋ฐ, ๋ฌธ๋‹จ์˜ ์ฒซ ๊ธ€์ž๋ฅผ ์–ผ๋งˆ๋‚˜ ๋“ค์—ฌ์“ธ์ง€ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.

     

    (5) line-height ์†์„ฑ - ์ค„๊ฐ„๊ฒฉ ์กฐ์ ˆํ•˜๊ธฐ

    • ์—ฌ๋Ÿฌ ์ค„๋กœ ๊ตฌ์„ฑ๋œ ํ…์ŠคํŠธ ๋‹จ๋ฝ์—์„œ ์ค„ ๊ฐ„๊ฒฉ์„ ์กฐ์ ˆํ•ฉ๋‹ˆ๋‹ค.
    • ์ˆซ์ž๋‚˜ ํฌ๊ธฐ ๊ฐ’, ๋ฐฑ๋ถ„์œจ ๋“ฑ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ์ˆซ์ž๋‚˜ ํฌ๊ธฐ ๊ฐ’์„ ์ง€์ •ํ•˜๋ฉด ๊ธ€์ž ํฌ๊ธฐ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค.
    /* ์˜ˆ */
    
    p {
        line-height: 1.2; /* ์ˆซ์ž๋ฅผ ์‚ฌ์šฉ */
    }
    p {
        line-height: 1.2; /* ๋ฐฑ๋ถ„์œจ ์‚ฌ์šฉ */
    }
    p {
        line-height: 1.2; /* ํฌ๊ธฐ ๊ฐ’ ์‚ฌ์šฉ */
    }

     

    (5) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
      <meta charset="utf-8">
      <title>my bag</title>
      <style>
        p { 
          border:1px solid gray;
          padding:10px;
        }
        .big-line {
          line-height:2;  /* ๊ธ€์ž ํฌ๊ธฐ 2๋ฐฐ๋งŒํผ์˜ ์ค„๊ฐ„๊ฒฉ */
        }
        .small-line {
          line-height: 0.2;  /* ๊ธ€์ž ํฌ๊ธฐ 0.1๋ฐฐ๋งŒํผ์˜ ์ค„๊ฐ„๊ฒฉ */
        }
    
      </style>
    </head>
    <body>
      <h2>idle - my bag</h2>
      <p>
        Red five diamonds in my bag
        If you wanna see it, dance to a beat like that
        My mama saw it and 'oh, my god, dang'
        Okay, I'll show you what's in my bag
    </p>
    <p class="big-line">
      Red five diamonds in my bag
      If you wanna see it, dance to a beat like that
      My mama saw it and 'oh, my god, dang'
      Okay, I'll show you what's in my bag
    </p>
    <p class="small-line">
      Red five diamonds in my bag
      If you wanna see it, dance to a beat like that
      My mama saw it and 'oh, my god, dang'
      Okay, I'll show you what's in my bag
    </p>
    </body>
    </html>

     

    (6) text-overflow ์†์„ฑ ๋„˜์น˜๋Š” ํ…์ŠคํŠธ ํ‘œ๊ธฐํ•˜๊ธฐ

    /* ๊ธฐ๋ณธํ˜• */
    
    text-overflow: clip | ellipsis

     

    (6) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
      <meta charset="utf-8">
      <title>ํˆฌ๋จธ์น˜ํ† ์ปค</title>
      <style>
      .content {
          border: 1px solid lime;  /* ํ…Œ๋‘๋ฆฌ */
          width: 300px;  /* ๋‹จ๋ฝ์˜ ๋„ˆ๋น„ */
          white-space: nowrap;  /* ์ค„๋ฐ”๊ฟˆ ์—†์Œ */
          overflow: hidden;  /* ๋„˜์น˜๋Š” ๋ถ€๋ถ„ ๊ฐ์ถค */
          text-overflow: ellipsis;  /* ๋ง์ค„์ž„ํ‘œ */
      }
    	.content:hover {
    		overflow: visible;  /* ๋„˜์น˜๋Š” ๋ถ€๋ถ„ ๋ณด์—ฌ์คŒ*/
    	}
      </style>
    </head>
    <body>
      <h2>ํˆฌ๋จธ์น˜ํ† ์ปค์˜ ์›์กฐ ๋ฐ•์ฐฌํ˜ธ์”จ</h2>
      <p class="content">
        ์ œ๊ฐ€ LA์— ์žˆ์„๋•Œ๋Š” ๋ง์ด์ฃ  ์ •๋ง ์ œ๊ฐ€ ๊ฟˆ์— ๋ฌด๋Œ€์ธ ๋ฉ”์ด์ €๋ฆฌ๊ทธ๋กœ ์ง„์ถœํ•ด์„œ ๊ฐ€๋Š” ์‹๋‹น๋งˆ๋‹ค ์‹ธ์ธํ•ด๋‹ฌ๋ผ ๊ธฐ์ž๋“ค์€ ํ•ญ์ƒ ๋ถ™์–ด๋‹ค๋‹ˆ๋ฉฐ ์ทจ์žฌํ•˜๊ณ  ์ œ๊ฐ€ ๊ทธ ๋จธ~ ์–ด~ ๋Œ€ํ†ต๋ น์ด ๋œ ๊ธฐ๋ถ„์ด์˜€์–ด์š” ๊ทธ๋Ÿฐ๋ฐ 17์ผ๋งŒ์— 17์ผ๋งŒ์— ๋งˆ์ด๋„ˆ๋ฆฌ๊ทธ๋กœ ๋–จ์–ด์กŒ์–ด์š” ๋ชป๋˜์ ธ์„œ ๊ทธ๋งŒ๋‘๊ณ  ๊ทธ๋ƒฅ ํ™• ํ•œ๊ตญ์œผ๋กœ ๊ฐ€๋ฒ„๋ฆฌ๊ณ  ์‹ถ์—ˆ์–ด์š” ๊ทธ๋ž˜์„œ ์ง‘์— ๊ฐ€๋Š”๊ธธ์— ๊ทธ ๋งฅ์ฃผ6๊ฐœ ๋‹ฌ๋ฆฐ๊ฑฐ ์žˆ์ž–์•„์š” ๋งฅ์ฃผ6๊ฐœ ๊ทธ๊ฑธ ์‚ฌ๊ฐ€์ง€๊ณ  ์ง‘์œผ๋กœ ๊ฐ”์–ด์š” 
        ๊ทธ์ „์—๋Š” ์ˆ ๋จน์œผ๋ฉด ์•ผ๊ตฌ ๋ชปํ•˜๋Š”์ค„ ์•Œ์•˜์–ด์š” ๊ทธ๋ƒฅ ํ•œ๊ตญ์œผ๋กœ ๊ฐ€๋ฒ„๋ฆด๋ ค๊ตฌ.... ๊ทธ๋ฆฌ๊ณ  ๋งฅ์ฃผ 6๊ฐœ๋จน๊ณ  ํ™• ์ฃฝ์–ด๋ฒ„๋ฆด๋ ค๊ณ  ๊ทธ๋žฌ์–ด์š” ์•ผ๊ตฌ ๋ชปํ•˜๊ฒŒ ๋˜๋‹ˆ๊น ๊ทธ๋Ÿฌ๋‚˜ ์ง‘์—๊ฐ€์„œ ์ผ๋‹จ์€ ๋ถ€๋ชจ๋‹˜์—๊ฒŒ ์ „ํ™”๋ฅผ ํ•ด์•ผ๊ฒ ๋‹ค๊ณ  ์ƒ๊ฐ์„ ํ–ˆ์–ด์š” ๋‹ค์Œ๋‚  ๊ฐ€๋ ค๊ณ  ์ „ํ™”๋ฅผ ๋”ฑ ํ–ˆ๋Š”๋ฐ ์–ด๋จธ๋‹ˆ๊ป˜์„œ ์ฐฌํ˜ธ์•ผ ์–ดํ›„~ ์ฐฌํ˜ธ์•ผ ์•„๋“ค ์ž˜์žˆ์–ด ๋ฐฅ์€ ๋จน๊ณ  ๋‹ค๋‹ˆ๋Š”๊ฒจ~ ์ž˜์ง€๋‚ด๋Š”๊ฒจ ๋Œ€๋œธ ๊ทธ๋Ÿฌ์‹œ๋Š” ๊ฑฐ์—์š” ๋‚ด๊ฐ€ ๋ง๋„ ํ•˜๊ธฐ๋„ ์ „ํ•ด ๊ทธ๋ž˜์„œ ์ €๋Š” ์•ผ๊ตฌ์ข€ ์•ˆ๋˜์ง€๋งŒ ์ž˜ํ•˜๊ณ  ์žˆ๋‹ค๊ณ  ์—ฌ๊ธฐ์‚ฌ๋žŒ๋“ค ์ž˜์ฑ™๊ฒจ์ค€๋‹ค๊ณ  ๋ผ๊ณ  ๊ฑฐ์ง“๋ง์„ ํ–ˆ์–ด์š” 
        ํ•œ๊ตญ์€ ๋ชป๊ฐ€๊ฒŒ ๋ฌ์ง€ ๋‚ด์ผ ์•ผ๊ตฌ์žฅ์€ ๊ฐ€์•ผํ•˜์ง€ ๋ง‰๋ง‰ํ•˜๋”๋ผ๊ตฌ์š” ๊ทธ๋Ÿผ ์–ด๋–ป๊ฒŒ ๊ฐ€์•ผํ•˜๋‚˜ ์ƒ๊ฐ์„ ํ–ˆ์–ด์š” ๊ทธ๋ฆฌ๊ณ  ๋‚˜์„œ ์˜์–ด๊ณต๋ถ€๋ฅผ ํ•˜๊ฒŒ ๋ฌ๋Š”๋ฐ์š” ์˜์–ด... ๊ฐ๋…ํ•œํ…Œ ์ด์•ผ๊ธฐ๋ฅผ ๋ชปํ•ด์„œ ํ•œ์ด ๋งบํžŒ๊ฑฐ์ง€ ๊ทธ๋ž˜์„œ ์ด์•ผ๊ธฐ ํ• ๋ ค๊ณ  ํ•œ ๋‹จ์–ด์”ฉ ํ•œ ๋ฌธ์žฅ์”ฉ ๋งŒ๋“ค์–ด์„œ ๊ทธ๋ž˜์„œ ๋‹ค์Œ๋‚  ์จ ๋จน์—ˆ์–ด์š” ๊ทธ๋ฆฌ๊ณ  ๊ฐ๋…์—๊ฒŒ Hey How are you๋ผ๊ณ  ๋งํ–ˆ์–ด์š” ์ด๋ ‡๊ฒŒ ํ•ด์„œ ์˜์–ด๊ณต๋ถ€๋ฅผ ํ•˜๋Š”๊ฑฐ์—์š”
      </p>
    </body> 
    </html>

    ์›€์ง์ด๋Š” ์ด๋ฏธ์ง€์ž…๋‹ˆ๋‹ค

     

     

    4. ๋ชฉ๋ก๊ณผ ๋งํฌ ์Šคํƒ€์ผ

    • ์šฉ๋„ : ํ…์ŠคํŠธ ๋‚˜์—ด, ์‚ฌ์ดํŠธ ๋ฉ”๋‰ด, ๋ฌธ์„œ ๋ ˆ์ด์•„์›ƒ(์‚ฌ์ง„ ๊ฐค๋Ÿฌ๋ฆฌ)

     

    (1) list-style-type ์†์„ฑ ๋ชฉ๋ก์˜ ๋ถˆ๋ฆฟ๊ณผ ๋ฒˆํ˜ธ ์Šคํƒ€์ผ ์ง€์ •ํ•˜๊ธฐ

    /* ๊ธฐ๋ณธํ˜• */
    
    list-style-type : none | <์ˆœ์„œ ์—†๋Š” ๋ชฉ๋ก์˜ ๋ถˆ๋ฆฟ> | <์ˆœ์„œ ๋ชฉ๋ก์˜ ๋ฒˆํ˜ธ>
    /* ์˜ˆ */
    
    ul { 
    	list-style-type: circle; /* ์ˆœ์„œ ์—†๋Š” ๋ชฉ๋ก์˜ ๋ถˆ๋ฆฟ์„ circle๋กœ ํ‘œ์‹œ */
    }

     

    (1) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
      <meta charset="utf-8">
      <title>์‹œ๋ฆฌ์ฆˆ</title>
      <style>
        .Harry {
          list-style-type:lower-alpha;  /* ์†Œ๋ฌธ์ž ์•ŒํŒŒ๋ฒณ */
        }
        .Ring {
          list-style-type: upper-roman;  /* ๋Œ€๋ฌธ์ž ๋กœ๋งˆ ์ˆซ์ž */
        }
      </style>
    </head>
    <body>
      <h1>Harry Potter</h1>
      <ol class="Harry">
        <li>Harry Potter and the Sorcerer's Stone</li>
        <li>Harry Potter and the Chamber of Secrets</li>
        <li>Harry Potter and the Prisoner of Azkaban</li>
        <li>Harry Potter and the Goblet of Fire</li>
        <li>Harry Potter and the Order of the Phoenix</li>
        <li>Harry Potter and the Half-Blood Prince</li>
        <li>Harry Potter and the Deathly Hallows Part 1</li>
        <li>Harry Potter and the Deathly Hallows: Part 2</li>
      </ol>
    
      <h1>The Lord of the Ring</h1>
      <ol class="Ring">
        <li>The Lord of the Rings: The Fellowship of the Ring</li>
        <li>The Lord of the Rings: The Two Towers</li>
        <li>The Lord of the Rings: The Return of the King</li>
      </ol>
    </body>
    </html>

     

    (2) list-style-image ์†์„ฑ ๋ถˆ๋ฆฟ ๋Œ€์‹  ์ด๋ฏธ์ง€ ๋„ฃ๊ธฐ

    • ๋ถˆ๋ฆฟ ๊ธฐํ˜ธ ๋Œ€์‹  ์›ํ•˜๋Š” ์ด๋ฏธ์ง€๋กœ ์‚ฝ์ž…ํ•  ์ˆ˜ ์žˆ๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.
    /* ๊ธฐ๋ณธํ˜• */
    
    list-style-image : none | url(์ด๋ฏธ์ง€ ํŒŒ์ผ ๊ฒฝ๋กœ)

     

    (2) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
      <meta charset="utf-8">
      <title>๋ถˆ๋ฆฟ ๋Œ€์‹  ์ด๋ฏธ์ง€</title>
      <style>
        ul {
          list-style-image: url('images/dot.png');  /* ๋ถˆ๋ฆฟ์œผ๋กœ ์‚ฌ์šฉํ•  ์ด๋ฏธ์ง€ */
        }
      </style>
    </head>
    <body>
      <h1>murphy room</h1>
      <ul>
        <li>์›น์ด๋ž€ ๋ฌด์—‡์ธ๊ฐ€?</li>
        <li>HTML/CSS</li>
        <li>JS</li>
        <li>์ปค๋ฎค๋‹ˆํ‹ฐ</li>
      </ul>
    </body>
    </html>

     

    (3) list-style-position ์†์„ฑ ๋ชฉ๋ก์— ๋“ค์—ฌ์“ฐ๊ธฐ ํšจ๊ณผ ๋‚ด๊ธฐ

    • ๋ชฉ๋ก์˜ ๋ถˆ๋ฆฟ์ด๋‚˜ ๋ฒˆํ˜ธ๋Š” ์‹ค์ œ ๋‚ด์šฉ ๋ฐ”๊นฅ์ชฝ์— ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.
    • list-style-position์„ ์ด์šฉํ•˜๋ฉด ๋‚ด์šฉ์ด ์žˆ๋Š” ๋ถ€๋ถ„์— ํ‘œ์‹œ(๋“ค์—ฌ์“ฐ๊ธฐ ํšจ๊ณผ) ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    /* ๊ธฐ๋ณธํ˜• */ 
    
    list-style-position : inside | outside

     

    (4) list-style ์†์„ฑ ๋ฆฌ์ŠคํŠธ ์†์„ฑ ํ•œ๊บผ๋ฒˆ์— ํ‘œ์‹œํ•˜๊ธฐ

    • list-style-type๊ณผ list-style-position, list-style-image ์†์„ฑ์„ ํ•œ๊บผ๋ฒˆ์— ํ‘œ์‹œํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.
    • ๊ฐ ์†์„ฑ์˜ ์ˆœ์„œ๋Š” ์ค‘์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
    /* ์˜ˆ */
    
    article ol li {
    	list-style: upper-alpha inside; /* ์•ŒํŒŒ๋ฒณ ๋Œ€๋ฌธ์ž ์‚ฌ์šฉ, ์•ˆ์œผ๋กœ ๋“ค์—ฌ์“ฐ๊ธฐ ์ ์šฉ */
    }

     

     

    ๋งˆ๋ฌด๋ฆฌํ•˜๋ฉฐ

    ํ…์ŠคํŠธ์™€ ๊ด€๋ จ๋œ ์Šคํƒ€์ผ์„ ์˜ˆ์ œ์™€ ํ•จ๊ป˜ ๊ณต๋ถ€ํ•ด ๋ณด์•˜์Šต๋‹ˆ๋‹ค.

    ๋‹ค์ŒํŽธ์—๋„ ์Šคํƒ€์ผ์€ ๊ณ„์†๋ฉ๋‹ˆ๋‹ค.

     

    ๋Œ“๊ธ€๊ณผ ๊ณต๊ฐ์€ ํ•ญ์ƒ ํ™˜์˜์ž…๋‹ˆ๋‹ค!

    ๋Œ“๊ธ€