كيفية إنشاء: علامة

تعلم كيفية استخدام CSS لضبط أنماط العلامات.

نجاح معلومات تحذير خطر آخر

جربها بنفسك

كيفية ضبط أنماط العلامات

الخطوة الأولى - إضافة HTML:

<span class="label success">Success</span>
<span class="label info">Info</span>
<span class="label warning">Warning</span>
<span class="label danger">Danger</span>
<span class="label other">Other</span>

الخطوة الثانية - إضافة CSS:

.label {
  color: white;
  padding: 8px;
}
.success {background-color: #04AA6D;} /* أخضر */
.info {background-color: #2196F3;} /* أزرق */
.warning {background-color: #ff9800;} /* برتقالي */
.danger {background-color: #f44336;} /* أحمر */
.other {background-color: #e7e7e7; color: black;} /* أزرق خفيف */

جربها بنفسك