Source

Vertical alignment a awm bawk

Inline, inline-block, inline-table, leh table cell element hrang hrangte vertical alignment awlsam takin thlak theih a ni.

vertical-alignmentUtilities te nena element hrang hrangte alignment thlak danglam . Vertical-align hian inline, inline-block, inline-table, leh table cell element te chauh a nghawng tih hre reng ang che.

.align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, leh a tul angin thlang rawh .align-text-top.

Inline elements te nen chuan:

baseline chunglam lai tak hnuai lam text-chung lam text-hnuai lam
<span class="align-baseline">baseline</span>
<span class="align-top">top</span>
<span class="align-middle">middle</span>
<span class="align-bottom">bottom</span>
<span class="align-text-top">text-top</span>
<span class="align-text-bottom">text-bottom</span>

Table cell te nen:

baseline a ni chung lai mawng text-top-ah a awm text-a hnuaiah a awm
<table style="height: 100px;">
  <tbody>
    <tr>
      <td class="align-baseline">baseline</td>
      <td class="align-top">top</td>
      <td class="align-middle">middle</td>
      <td class="align-bottom">bottom</td>
      <td class="align-text-top">text-top</td>
      <td class="align-text-bottom">text-bottom</td>
    </tr>
  </tbody>
</table>