Nasıl oluşturulur: Uyarı düğmesi
- Previous page Pill button
- Next page Icon button
CSS ile uyarı düğmesi nasıl oluşturulur öğrenin.
Posta kutusu 3Uyarı düğmesi nasıl oluşturulur
İlk adım - HTML ekleyin:
<a href="#" class="notification"> <span>Posta kutusu</span> <span class="badge">3</span> </a>
İkinci adım - CSS ekleyin:
.notification { background-color: #555; color: white; text-decoration: none; padding: 15px 26px; position: relative; display: inline-block; border-radius: 2px; {} .notification:hover { background: kırmızı; {} .notification .badge { position: absolute; top: -10px; right: -10px; padding: 5px 10px; border-radius: 50%; background: kırmızı; color: white; {}
Related pages
Tutorial:CSS button
- Previous page Pill button
- Next page Icon button