Trɔ yi nya veviwo gbɔ Trɔ yi docs ƒe mɔfiamewo dzi
in English

Nusiwo woɖo ɖe ɖoɖo nu le tsitrenu

Trɔ asi le fli me, fli me-blɔ, fli me-kplɔ̃, kple kplɔ̃ ƒe lãmenugbagbevi ƒe akpawo ƒe ɖoɖo si le tsitrenu ŋu bɔbɔe.

Trɔ asi le elementwo ƒe sɔsɔ kple vertical-alignmentutilities ŋu. Taflatse de dzesii be vertical-align kpɔa ŋusẽ ɖe inline, inline-block, inline-table, kple table cell ƒe akpawo dzi ko dzi.

Tia .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, kple .align-text-topalesi wòhiãe.

Ne èdi be yeatsɔ nusiwo mele fli me o aɖo titina le tsitrenu (abe <div>s kple bubuwo ene la), zã míaƒe flex box utilities .

Le inline elements me la:

gɔmeɖoanyi tame titina ete nuŋɔŋlɔ-tame nuŋɔŋlɔ-ete
<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>

Le kplɔ̃dzi lãmenugbagbeviwo gome la:

gɔmedzedzea me dzi titina gᴐme nuŋɔŋlɔ ƒe tame nuŋɔŋlɔ-ete
<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 ƒe nyawo

Dɔwɔnuwo ƒe API

Woɖe gbeƒã vertical align utilities le míaƒe utilities API me le scss/_utilities.scss. Srɔ̃ alesi nàzã utilities API lae.

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