°³Ã¼ÀÇ Ã¹¹ø° ÁÙ¿¡ Àû¿ëµÈ´Ù.

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

: (¼Ó¼º ¹®ÀÚ¿­)
½ºÅ¸ÀÏ ¼Ó¼ºÀº °³Ã¼ÀÇ Ã³À½±ÛÀÚ¿¡ Àû¿ëµÇ´Â ÇÑ°³ ÀÌ»óÀÇ ½ºÅ¸ÀϽ¬Æ® ¾ÖÆ®¸®ºäÆ®¿Í °ªÀÇ Â¦µéÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

Ư±â

background, clear, color, font, fontFamily, fontSize, fontStyle, fontVariant, fontWeight, lineHeight, textDecoration, textTransform, verticalAlign°ú wordSpacing ¼Ó¼ºµéÀº :first-line °¡»ó¿¤·¹¸àÆ®¿¡ Àû¿ëµÈ´Ù.

ùÁÙÀÇ ±æÀÌ´Â ¹®¼­ÀÇ ³Êºñ³ª ±ÛÀÚ Å©±âµî ¸î°¡Áö ¿äÀο¡ ÀÇÇÏ¿© °áÁ¤µÈ´Ù.

:first-line °¡»ó ¿¤·¹¸àÆ®´Â ºí·°·¹º§ ¿¤·¹¸àÆ®¿¡ Àû¿ëµÉ ¼ö ÀÖ´Ù. display ¼Ó¼ºÀÌ blockÀ¸·Î ¼³Á¤µÈ °æ¿ì¿¡´Â ÀζóÀÎ ¿¤·¹¸àÆ®¿¡µµ ÷ºÎÇÒ ¼ö ÀÖ´Ù..

Àû¿ë
°³Ã¼scriptCSS IE ¹öÀü
ADDRESS BLOCKQUOTE BODY CENTER DD DIV DL DT FIELDSET FORM hn LEGEND LI LISTING MARQUEE MENU P PLAINTEXT PRE XMP
ÂüÁ¶
:first-letter

ÀÌ °¡»ó Ŭ¶ó½º´Â CSS1(Cascading Style Sheets, Level 1)¿¡¼­ Á¤ÀǵǾú´Ù.


¹®´ÜÀÇ Ã¹¹ø° ÁÙ.
¹®´ÜÀÇ µÎ¹ø° ÁÙ.
¹®´ÜÀÇ ¼¼¹ø° ÁÙ.

:first-line °¡»ó¿¤·¹¸àÆ®°¡ ¼³Á¤µÈ className ¼Ó¼ºÀ» È£ÃâÇÏ¿© ¹®´ÜÀÇ Ã¹ÁÙÀ» Ç¥ÇöÇÏ¿´´Ù.

<STYLE>.firstLine:first-line { color:blue; font-weight:bold }</STYLE>
<P class="firstLine">¹®´ÜÀÇ Ã¹¹ø° ÁÙ.<BR>
¹®´ÜÀÇ µÎ¹ø° ÁÙ.<BR>
¹®´ÜÀÇ ¼¼¹ø° ÁÙ.</P>

¹®´ÜÀÇ Ã¹¹ø° ÁÙ.
¹®´ÜÀÇ µÎ¹ø° ÁÙ.
¹®´ÜÀÇ ¼¼¹ø° ÁÙ.

¹®´ÜÀÇ Ã¹¹ø° ÁÙ.
¹®´ÜÀÇ µÎ¹ø° ÁÙ.
¹®´ÜÀÇ ¼¼¹ø° ÁÙ.

:first-line°ú :first-letter °¡»ó¿¤·¹¸àÆ®¸¦ µ¿½Ã¿¡ Àû¿ëÇÏ¿´´Ù.

<STYLE>
.expClassA:first-line { font-weight:bold;color:blue; }
.expClassA:first-letter { font-size: 200%; float: left; }
</STYLE>
<P class="expClassA">¹®´ÜÀÇ Ã¹¹ø° ÁÙ.<BR>
¹®´ÜÀÇ µÎ¹ø° ÁÙ.<BR>
¹®´ÜÀÇ ¼¼¹ø° ÁÙ.</P>
<STYLE>
.expClassB:first-line { font-weight:bold;color:blue; }
.expClassB:first-letter { font-size: 200%; float: left; line-height:2em }
</STYLE>
<P class="expClassB">¹®´ÜÀÇ Ã¹¹ø° ÁÙ.<BR>
¹®´ÜÀÇ µÎ¹ø° ÁÙ.<BR>
¹®´ÜÀÇ ¼¼¹ø° ÁÙ.</P>

ù±ÛÀÚ´Â Å©°Ô Ç¥½ÃÇÏ¿© °­Á¶µÈ´Ù.
ÀϹÝÀûÀ¸·Î ¾Æ·¡·Î È®ÀåµÈ´Ù.
´ÙÀ½ ºÎÅÍ´Â Á¤»óÀûÀ¸·Î Ç¥ÇöµÈ´Ù.
<STYLE>
.colmn { border-right:solid 2px black; padding-right:10px;  padding-left:5px; width:140px; text-justify:newspaper; }
.newsbite:first-letter { padding-left:25; padding-right:10; font-size:24; float:left; padding-bottom:5; padding-top:15; line-height:1.2em }
</STYLE>
<DIV class="colmn">
<DIV class="newsbite">ù±ÛÀÚ´Â Å©°Ô Ç¥½ÃÇÏ¿© °­Á¶µÈ´Ù.<BR>
ÀϹÝÀûÀ¸·Î ¾Æ·¡·Î È®ÀåµÈ´Ù.<BR>
´ÙÀ½ ºÎÅÍ´Â Á¤»óÀûÀ¸·Î Ç¥ÇöµÈ´Ù.</DIV>
</DIV>