Cómo HACER - Botones de notificación
Aprende a crear botones de notificación con CSS.
Bandeja de entrada 3
Cómo crear un botón de notificación
Paso 1) Agregar HTML:
Ejemplo
<a href="#" class="notification">
<span>Inbox</span>
<span
class="badge">3</span>
</a>
Paso 2) Agregar CSS:
Ejemplo
.notification {
background-color: #555;
color: white;
text-decoration: none;
padding: 15px 26px;
position:
relative;
display: inline-block;
border-radius: 2px;
}
.notification:hover
{
background: red;
}
.notification .badge {
position:
absolute;
top: -10px;
right: -10px;
padding: 5px
10px;
border-radius: 50%;
background: red;
color: white;
}
Vaya a nuestro tutorial de botones CSS para obtener más información sobre cómo aplicar estilo a los botones.