المحاذاة العموديّة Vertical align في إطار العمل Bootstrap
اذهب إلى التنقل
اذهب إلى البحث
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
غيِّر محاذاة العناصر ذات القيم inline
و inline-block
و inline-table
للخاصية display
، وخلايا الجداول باستخدام أدوات المحاذاة العموديّة (vertical-align
). يُرجَى ملاحظة أنّ المحاذاة العموديّة تؤثّر فقط على العناصر ذات الخاصيّات inline
، وinline-block
و inline-table
، وخلايا الجداول.
اختر بين الأصناف .align-baseline
، و.align-top
، و.align-middle
، و.align-bottom
، و.align-text-bottom
و.align-text-top
حسب الحاجة.
- محاذاة عناصر سطريّة:
<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>
- محاذاة خلايا جدول:
<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>