Hoe OM - Kennisgewingknoppies
Leer hoe om kennisgewingknoppies met CSS te skep.
Inkassie 3
Hoe om 'n kennisgewingknoppie te skep
Stap 1) Voeg HTML by:
Voorbeeld
<a href="#" class="notification">
<span>Inbox</span>
<span
class="badge">3</span>
</a>
Stap 2) Voeg CSS by:
Voorbeeld
.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;
}
Gaan na ons CSS-knoppie-tutoriaal om meer te wete te kom oor hoe om knoppies te styl.