Main content ah kal rawh Docs navigation ah kal rawh
Check
in English

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.

Non-inline content ( <div>s leh a dangte ang chi) vertical-a center tur chuan kan flex box utilities hmang rawh .

Inline elements te nen chuan:

baseline chunglam lai tak hnuai lam text-chung lam text-hnuai lam
html tih a ni
<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
html tih a ni
<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>

Sass a ni

Utilities API hmanga thil tih a ni

Vertical align utilities chu kan utilities API ah hian scss/_utilities.scss. Utilities API hman dan zir rawh.

    "align": (
      property: vertical-align,
      class: align,
      values: baseline top middle bottom text-bottom text-top
    ),