Buuka ku bigambo ebikulu Buuka ku docs navigation
Check
in English

Okulaganya okw’okwesimbye

Kyangu okukyusa ensengeka eyeesimbye ey’ebintu ebiri mu layini, mu layini-bbulooka, mu layini-emmeeza, n’obutoffaali bw’emmeeza.

Kyusa okulaganya kwa elementi vertical-alignmentn'ebikozesebwa. Nsaba omanye nti vertical-align ekosa ebintu byokka ebiri mu layini, inline-block, inline-table, ne table cell.

Londa ku .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, ne .align-text-topnga bwe kyetaagisa.

Okuteeka wakati mu vertikal ebirimu ebitali mu layini (nga <div>s n’ebirala), kozesa ebikozesebwa byaffe ebya flex box .

Nga olina ebintu ebiri mu layini:

baseline waggulu wakati wansi ekiwandiiko-waggulu ekiwandiiko-wansi
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>

Nga olina obutoffaali bw’emmeeza:

entandikwa waggulu mumassekkati wansi text-top ekiwandiiko-wansi
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 nga bwe kiri

Ebikozesebwa API

Vertical align utilities zilangirirwa mu API yaffe ey'ebikozesebwa mu scss/_utilities.scss. Yiga engeri y'okukozesaamu API y'ebikozesebwa.

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