vertical-align Property


Home > Document > CSS > Text > vertical-align

vertical-align Property

vertical-align Property´Â Table Cell °°Àº Box ¼Ó¿¡ µé¾î ÀÖ´Â ³»¿ë¹°ÀÇ ¼öÁ÷Á¤·ÄÀ» ÁöÁ¤ÇÏ´Â PropertyÀÔ´Ï´Ù. ¶Ç text»çÀÌ¿¡ ±×¸²ÀÌ µé¾î°¥ ¶§ ±Û¾¾¸¦ ±×¸² ÇÏ´Ü¿¡ À§Ä¡½Ãų °ÍÀÎÁö ¾Æ´Ï¸é ÇÏ´Ü µî¿¡ À§Ä¡ ½Ãų °ÍÀÎÁö¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ¾Æ·¡ÀÇ DHTML µéÀ» ÂüÁ¶ Çϼ¼¿ä.

  [Ç¥ º¸´Â ¹æ¹ý]
vertical-align Property
Value baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage> | <length> | Inherit
Initial baseline
Applies to inline-level and 'table-cell' elements
Inherited yes
Percentages refer to the 'line-height' of the element itself, element ÀÚ½ÅÀÇ Çà °£°Ý¿¡ µû¶ó¼­.
Media Visual
HTML Syntax { vertical-align: sAlign }
Scripting object.style.verticalAlign [ = sAlign ]





CSS Scripting
onMouseOver="this.style.verticalAlign='super';"


text ³¢¸®ÀÇ vertical-align Property

ABCDEF ABCDEF



baseline sub super top text-top middle bottom text-bottom

À§ÀÇ DHTML Áß¿¡¼­ top °ú text-top, bottom °ú text-bottom Àº º¯È­°¡ ¾ø´Âµ¥ tex-top, text-bottom °°Àº text ³¢¸®´Â ÀÛµ¿ÇÏÁö ¾Ê¾Æ¼­ ±×·¸½À´Ï´Ù.

vertical align Property DHTML source
<HTML>
    <HEAD>
        <TITLE>vertical align Property</TITLE>
    <STYLE type="text/css">
    <!-- 
    .td_btn {height:18px;
    background-color:royalblue;
    border:1px solid #808080;
    cursor:pointer;
    font:11px;
    color:#EFEFEF;
    text-align:center;
    }  
    -->
    </STYLE>
    </HEAD>
    <BODY>
      <FIELDSET style="border:2px solid #225588;width:100%;cursor:default;">
        <LEGEND style="color: #a52a2a;font: 12px; font-weight: bold;font_family:Arial;">
        vertical-align Property
        </LEGEND><BR><BR>
        
        <CENTER>
          <SPAN style="background-color:gold;font-size:48px;text-decoration:underline overline">
          ABCDEF
            <SPAN id="span_1" style="font-size:12px;text-decoration:underline overline;
            background-color:red;">
            ABCDEF
            </SPAN>
          </SPAN>
        </CENTER><BR><BR><BR>
        
        <table border="1" cellspacing="5" width="100%" frame="void">
          <tr>
            <td class="td_btn" onClick="span_1.style.verticalAlign='baseline';">baseline</td>
            <td class="td_btn" onClick="span_1.style.verticalAlign='sub';">sub</td>
            <td class="td_btn" onClick="span_1.style.verticalAlign='super';">super</td>
            <td class="td_btn" onClick="span_1.style.verticalAlign='top';">top</td>
            <td class="td_btn" onClick="span_1.style.verticalAlign='text-top';">text-top</td>
            <td class="td_btn" onClick="span_1.style.verticalAlign='middle';">middle</td>
            <td class="td_btn" onClick="span_1.style.verticalAlign='bottom';">bottom</td>
            <td class="td_btn" onClick="span_1.style.verticalAlign='text-bottom';">
              text-bottom
            </td>
            </tr>
        </table>
      </FIELDSET><BR><BR>    
    </BODY>
</HTML>


±×¸²°ú text¿ÍÀÇ vertical-align Property

±Û¾¾¿Í À̹ÌÁö°¡ AA18 (7K) °°Àº Line ¼Ó¿¡ ÀÖÀ» °æ¿ì



baseline sub super top text-top middle bottom text-bottom





ÀÌ ¹®¼­ÀÇ ÀúÀÛ±ÇÀº www.cadvance.org ¿¡ ÀÖ½À´Ï´Ù.

Top
Back
New
°Ë»ö