°³Ã¼ ¼Ó¿¡¼­ ¶óÀÎ(line) »çÀÌÀÇ °Å¸®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
cssSelector : (½ºÅ¸ÀÏ ¼±ÅÃÀÚ)
¼Ó¼ºÀ» °¡Áú¼ö ÀÖ´Â ¿¤·¹¸àÆ®()³ª Ŭ¶ó½º(class) À̸§ ȤÀº ÀνÄÀÚ(id)ÀÌ´Ù.

: (¼Ó¼º ¹®ÀÚ¿­)
½ºÅ¸ÀÏ ¼Ó¼ºÀº °³Ã¼ ¼Ó¿¡¼­ ¶óÀÎ(line) »çÀÌÀÇ °Å¸®¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

normal µðÆúÆ®À̸ç, µðÆúÆ® ³ôÀÌÀÌ´Ù.
(³ôÀÌ) ºÎµ¿¼Ò¼öÁ¡¼öÄ¡ ´ÙÀ½¿¡ cm, mm, in, pt, pc³ª px µî ±æÀÌ ´ÜÀ§°¡ µû¸£´Â Àý´ë ±æÀÌ, ȤÀº em or ex µîÀÇ ´ÜÀ§°¡ µû¸£´Â »ó´ë ±æÀÌÀÌ´Ù. CSS ±æÀÌ´ÜÀ§¸¦ ÂüÁ¶Ç϶ó.
(¹éºÐÀ²) Á¤¼ö°ª¿¡ ¹éºÐÀ² ±âÈ£(%)¸¦ ºÙÀÎ °ÍÀÌ´Ù. ÀÌ °ªÀº ¸ðüÀÇ ³ôÀÌ¿¡ ´ëÇÑ »ó´ëÀûÀÎ ¹éºÐÀ²°ªÀÌ´Ùt.

ÀÌ ¼Ó¼ºÀº currentStyle¿¡¼­´Â ÀбâÀü¿ëÀÌ°í, ±×¿ÜÀÇ °³Ã¼¿¡¼­´Â Àбâ/¾²±âÀ̸ç, µðÆúÆ®°ªÀº normalÀÌ´Ù.

CSS(Cascading Style Sheets) ¾ÖÆ®¸®ºäÆ®´Â »ó¼ÓµÇÁö ¾Ê´Â´Ù.

Ư±â

ÁÙ ³ôÀÌ´Â ±Û²ÃÀÇ ±âÃʼ±°ú ±Û²ÃÀÇ ³»ºÎ À­¼±°úÀÇ °Å¸®ÀÌ´Ù.

¾ç½ÄÈ­µÈ ÁÙ¿¡ ÇÑ°³ ÀÌ»óÀÇ °³Ã¼¸¦ Æ÷ÇÔÇϸé, ÃÖ´ë ÁÙ ³ôÀÌ°¡ Àû¿ëµÈ´Ù. ÀÌ °æ¿ì¿¡´Â, À½¼ö°ªÀº Çã¿ëµÇÁö ¾Ê´Â´Ù.

IE3.0´Â font ¾ÖÇÁ¸®ºäÆ®¸¦ ÅëÇÏ¿© line-height ¾ÖÇÁ¸®ºäÆ®¸¦ Áö¿øÇÑ´Ù.

Àû¿ë
°³Ã¼scriptCSS IE ¹öÀü
ÂüÁ¶

ÀÌ ¼Ó¼ºÀº CSS1(Cascading Style Sheets, Level 1)¿¡¼­ Á¤ÀǵǾú´Ù.


ÁöÁ¤µÈ ÁÙÀÇ ³ôÀÌ°¡ Àû¿ëµÈ´Ù.
µÎ¹ø° ÁÙ ¹®ÀÚ¿­ÀÌ´Ù.
¼¼¹ø° ÁÙ ¹®ÀÚ¿­ÀÌ´Ù.
<STYLE>button{width:50}</STYLE>
<DIV id=divObj style="line-height:1em;">ÁöÁ¤µÈ ÁÙÀÇ ³ôÀÌ°¡ Àû¿ëµÈ´Ù.<BR>
µÎ¹ø° ÁÙ ¹®ÀÚ¿­ÀÌ´Ù.<BR>
¼¼¹ø° ÁÙ ¹®ÀÚ¿­ÀÌ´Ù.</DIV>
<BUTTON onclick="divObj.style.lineHeight='';">µðÆúÆ®</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='.8em';">.8em</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='1em';">1em</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='1.5em';">1.5em</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='10px';">10px</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='20px';">50px</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='50%';">50%</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='150%';">150%</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='300%';">300%</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='30px';">30px</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='30pt';">30pt</BUTTON>
<BUTTON onclick="divObj.style.lineHeight='1cm';">1cm</BUTTON>

¿©±â¿¡ ¸¶¿ì½º¸¦ ¿Ã·Áº¸¶ó.
µÎ¹ø° ÁÙÀÌ´Ù.
¼¼¹ø° ÁÙÀÌ´Ù.

onmouseover À̺¥Æ®·Î ÁÙ ³ôÀ̸¦ Á¶Á¤ÇÑ´Ù.

<DIV style="font-size:40pt"
  onmouseover="this.style.lineHeight='1.2em';"
  onmouseout="this.style.lineHeight='';">¿©±â¿¡ ¸¶¿ì½º¸¦ ¿Ã·Áº¸¶ó.<BR>
µÎ¹ø° ÁÙÀÌ´Ù.<BR>
¼¼¹ø° ÁÙÀÌ´Ù.</DIV>