Salá koleka na makambo ya ntina Salta na navigation ya docs
Check
in English

Alignment ya semba

Bobongola na pete alignment vertical ya ba éléments ya cellule ya inline, inline-block, inline-table, na tableau.

Bobongola alignment ya ba éléments na ba vertical-alignmentutilitaires. Svp yeba ete vertical-align etali kaka ba éléments ya cellule ya inline, inline-block, inline-table, mpe table.

Pona kati na .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, mpe .align-text-topsoki esengeli.

Mpo na ko centrer verticalement contenus non en ligne (lokola <div>s mpe mingi), salela ba utilitaires na biso ya flex box .

Na ba éléments inline:

baseline likolo katikati na nse text-top text-bottom
html
<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>

Na baselile ya mesa:

ebandeli ya mosala likolo katikati nse text-top makomi-na nse
html
<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 oyo azali

API ya ba utilitaires

Ba utilitaires ya align vertical esakolami na API ya ba utilitaires na biso na scss/_utilities.scss. Yekola ndenge ya kosalela API ya ba utilitaires.

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