Twe kɔ emu nsɛm atitiriw no so Twe kɔ docs navigation so
Check
in English

Nhyiam a ɛda hɔ gyina hɔ

Ɛnyɛ den sɛ wobɛsesa inline, inline-block, inline-table, ne table cell elements no gyinabea a ɛda hɔ no.

Sesa alignment a elements ne vertical-alignmentutilities no hyia. Yɛsrɛ wo hyɛ no nsow sɛ vertical-align nya inline, inline-block, inline-table, ne table cell elements nkutoo so nkɛntɛnso.

Paw fi .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, ne .align-text-topsɛnea ɛho hia.

Sɛ wopɛ sɛ wode nsɛm a ɛnyɛ inline (te sɛ <div>s ne nea ɛkeka ho) no mfinimfini gyina hɔ tẽẽ a, fa yɛn flex box utilities no di dwuma .

Nea ɛwɔ inline elements mu no:

baseline soro mfinimfini ase text-top text-ase
html na ɛwɔ hɔ
<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>

Nea ɛne pon so nkwammoaa:

mfiase no soro mfimfini aseɛ nsɛm a wɔakyerɛw wɔ so nsɛm-ase hɔ
html na ɛwɔ hɔ
<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

Nneɛma a wɔde di dwuma API

Wɔabɔ Vertical align utilities ho dawuru wɔ yɛn utilities API mu wɔ scss/_utilities.scss. Sua sɛnea wode utilities API no bedi dwuma.

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