الفرق بين المراجعتين ل"Bootstrap/vertical align"
اذهب إلى التنقل
اذهب إلى البحث
(أنشأ الصفحة ب'<noinclude>{{DISPLAYTITLE:المحاذاة العموديّة Vertical align في إطار العمل Bootstrap}}</noinclude>') |
|||
(3 مراجعات متوسطة بواسطة مستخدمين اثنين آخرين غير معروضة) | |||
سطر 1: | سطر 1: | ||
<noinclude>{{DISPLAYTITLE:المحاذاة العموديّة Vertical align في إطار العمل Bootstrap}}</noinclude> | <noinclude>{{DISPLAYTITLE:المحاذاة العموديّة Vertical align في إطار العمل Bootstrap}}</noinclude> | ||
+ | غيِّر محاذاة العناصر ذات القيم <code>inline</code> و <code>inline-block</code> و <code>inline-table</code> للخاصية <code>[[CSS/display|display]]</code>، وخلايا الجداول باستخدام أدوات المحاذاة العموديّة (<code>[[CSS/vertical-align|vertical-align]]</code>). يُرجَى ملاحظة أنّ المحاذاة العموديّة تؤثّر فقط على العناصر ذات الخاصيّات <code>inline</code>، و<code>inline-block</code> و <code>inline-table</code>، وخلايا الجداول. | ||
+ | |||
+ | اختر بين الأصناف <code>.align-baseline</code>، و<code>.align-top</code>، و<code>.align-middle</code>، و<code>.align-bottom</code>، و<code>.align-text-bottom</code> و<code>.align-text-top</code> حسب الحاجة. | ||
+ | * محاذاة عناصر سطريّة: | ||
+ | <syntaxhighlight lang="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> | ||
+ | </syntaxhighlight> | ||
+ | * محاذاة خلايا جدول: | ||
+ | <syntaxhighlight lang="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> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | == مصادر == | ||
+ | * [https://getbootstrap.com/docs/4.5/utilities/vertical-align/ صفحة Vertical alignment في توثيق Bootstrap]. | ||
+ | [[تصنيف:Bootstrap|{{SUBPAGENAME}}]] | ||
+ | [[تصنيف:Bootstrap utilities|{{SUBPAGENAME}}]] |
المراجعة الحالية بتاريخ 13:06، 13 يوليو 2020
غيِّر محاذاة العناصر ذات القيم 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>