پیش‌نمایش زنده
کد HTML
<button>Button</button>
کد CSS
button {
  height: 50px;
  margin: 5px;
  width: 120px;
  cursor: pointer;
  background: #f44336;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: Consolas, Courier New, monospace;
  border: solid #e53935 1px;
  font-size: 16px;
  color: #ffffff;
  -webkit-transition: 500ms;
  transition: 500ms;
  border-radius: 5px;
  background: linear-gradient(145deg, #e53935, #d32f2f);
  -webkit-box-shadow: -1px -5px 15px #c62828, 5px 5px 15px #c62828,
    inset 5px 5px 10px #d32f2f, inset -5px -5px 10px #d32f2f;
  box-shadow: -1px -5px 15px #c62828, 5px 5px 15px #c62828,
    inset 5px 5px 10px #d32f2f, inset -5px -5px 10px #d32f2f;
}

button:hover {
  -webkit-box-shadow: 1px 1px 13px #b71c1c, -1px -1px 13px #e53935;
  box-shadow: 1px 1px 13px #b71c1c, -1px -1px 13px #e53935;
  color: #d6d6d6;
  -webkit-transition: 500ms;
  transition: 500ms;
}

button:active {
  -webkit-box-shadow: 1px 1px 13px #b71c1c, -1px -1px 33px #e53935;
  box-shadow: 1px 1px 13px #b71c1c, -1px -1px 33px #e53935;
  color: #d6d6d6;
  -webkit-transition: 100ms;
  transition: 100ms;
}
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05