الفرق بين المراجعتين ل"Bootstrap/vertical align"

من موسوعة حسوب
اذهب إلى التنقل اذهب إلى البحث
(أنشأ الصفحة ب'<noinclude>{{DISPLAYTITLE:المحاذاة العموديّة Vertical align في إطار العمل Bootstrap}}</noinclude>')
 
سطر 1: سطر 1:
 
<noinclude>{{DISPLAYTITLE:المحاذاة العموديّة Vertical align في إطار العمل Bootstrap}}</noinclude>
 
<noinclude>{{DISPLAYTITLE:المحاذاة العموديّة Vertical align في إطار العمل Bootstrap}}</noinclude>
 +
غيِّر محاذاة العناصر ذات الخاصيّات inline، وinline-block و inline-table، وخلايا الجداول باستخدام أدوات المحاذاة العموديّة (<code>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">align-baseline</span>
 +
<span class="align-top">align-top</span>
 +
<span class="align-middle">align-middle</span>
 +
<span class="align-bottom">align-bottom</span>
 +
<span class="align-text-top">align-text-top</span>
 +
<span class="align-text-bottom">align-text-bottom</span>
 +
</syntaxhighlight>
 +
* محاذاة خلايا جدول:
 +
<syntaxhighlight lang="html">
 +
<table style="height: 100px;">
 +
  <tbody>
 +
    <tr>
 +
      <td class="align-baseline">align-baseline</td>
 +
      <td class="align-top">align-top</td>
 +
      <td class="align-middle">align-middle</td>
 +
      <td class="align-bottom">align-bottom</td>
 +
      <td class="align-text-top">align-text-top</td>
 +
      <td class="align-text-bottom">align-text-bottom</td>
 +
    </tr>
 +
  </tbody>
 +
</table>
 +
 +
 +
</syntaxhighlight>
 +
 +
== مصادر ==
 +
* [https://getbootstrap.com/docs/4.0/utilities/vertical-align/ صفحة Vertical alignment في توثيق Bootstrap].
 +
[[تصنيف:Bootstrap]]
 +
[[تصنيف:Bootstrap utilities]]

مراجعة 16:43، 14 أبريل 2018

غيِّر محاذاة العناصر ذات الخاصيّات inline، وinline-block و inline-table، وخلايا الجداول باستخدام أدوات المحاذاة العموديّة (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">align-baseline</span>
<span class="align-top">align-top</span>
<span class="align-middle">align-middle</span>
<span class="align-bottom">align-bottom</span>
<span class="align-text-top">align-text-top</span>
<span class="align-text-bottom">align-text-bottom</span>
  • محاذاة خلايا جدول:
<table style="height: 100px;">
  <tbody>
    <tr>
      <td class="align-baseline">align-baseline</td>
      <td class="align-top">align-top</td>
      <td class="align-middle">align-middle</td>
      <td class="align-bottom">align-bottom</td>
      <td class="align-text-top">align-text-top</td>
      <td class="align-text-bottom">align-text-bottom</td>
    </tr>
  </tbody>
</table>

مصادر