in English
Vertikale Ausrichtung
Ändern Sie einfach die vertikale Ausrichtung von Inline-, Inline-Block-, Inline-Tabellen- und Tabellenzellenelementen.
Ändern Sie die Ausrichtung von Elementen mit den vertical-alignmentDienstprogrammen. Bitte beachten Sie, dass sich vertical-align nur auf Inline-, Inline-Block-, Inline-Table- und Table-Cell-Elemente auswirkt.
Wählen Sie nach Bedarf aus .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottomund aus..align-text-top
Mit Inline-Elementen:
Grundlinie
oben
Mitte
unten
Text-oben
Text-unten
<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>
Mit Tabellenzellen:
| Grundlinie | oben | Mitte | Unterseite | Text-oben | Text unten |
<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>