المحاذاة العمودية (Vertical align)
قم بتغيير المحاذاة العمودية للعناصر inline و inline-block و inline-table وخلايا الجداول بسهولة.
قم بتغيير محاذاة العناصر باستخدام أدوات vertical-alignment. يرجى ملاحظة أن الـ vertical-align تؤثر فقط على العناصر inline و inline-block و inline-table وخلايا الجداول.
اختر من .align-baseline و .align-top و .align-middle و .align-bottom و .align-text-bottom و .align-text-top حسب الحاجة.
لتوسيط المحتوى غير المضمن عمودياً (مثل الـ <div> وأكثر)، استخدم أدوات flex box.
مع العناصر المضمنة (inline elements):
baseline
top
middle
bottom
text-top
text-bottom
<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> مع خلايا الجداول:
| baseline | top | middle | bottom | text-top | text-bottom |
<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> الـ (CSS)
واجهة برمجة تطبيقات أدوات Sass (Sass utilities API)
يتم التصريح عن أدوات المحاذاة العمودية (Vertical align) في واجهة برمجة تطبيقات الأدوات الخاصة بنا في scss/_utilities.scss. تعلم كيفية استخدام واجهة برمجة تطبيقات الأدوات.
"align": (
property: vertical-align,
class: align,
values: baseline top middle bottom text-bottom text-top
),