كيفية إنشاء: زر دواء

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

كيفية إنشاء زر دواء

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

<button class="button">زر الدواء</button>

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

استخدام خاصية border-radius لإضافة زوايا دائرية إلى الزر:

.button {
  background-color: #ddd;
  border: none;
  color: black;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 16px;

جربها بنفسك

الصفحات ذات الصلة

دليل:زر CSS