كيفية إنشاء: زر التالي والسابق

تعلم كيفية استخدام CSS لإنشاء زر 'التالي' و 'السابق'.

زر التالي والسابق

كيفية إنشاء زر التالي والسابق

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

<a href="#" class="previous">‹ السابق</a>
<a href="#" class="next">التالي »</a>
<a href="#" class="previous round">‹</a>
<a href="#" class="next round">›</a>

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

a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
}
a:hover {
  background-color: #ddd;
  color: black;
}
.previous {
  background-color: #f1f1f1;
  color: black;
}
.next {
  background-color: #04AA6D;
  color: white;
}
.round {
  border-radius: 50%;
}

جرب بنفسك