Source

Vertical alignment

Shandura zviri nyore kurongeka kweiyo inline, inline-block, inline-tafura, uye tafura cell zvinhu.

Shandura kurongeka kwezvinhu vertical-alignmentnezvishandiso. Ndokumbira utarise kuti vertical-align inongobata inline, inline-block, inline-tafura, uye tafura cell element.

Sarudza kubva .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, uye .align-text-topsezvinodiwa.

Ne inline elements:

baseline pamusoro pepakati pazasi mavara-pamusoro mavara-pasi
<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>

Nematafura masero:

baseline pamusoro pakati pasi text-top zvinyorwa-pasi
<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>