Come fare per - Pulsanti Successivo e Precedente
Scopri come creare pulsanti "successivo" e "precedente" con CSS.
Pulsanti Successivo e Precedente
Come creare pulsanti Successivo e Precedente
Passaggio 1) Aggiungi HTML:
Esempio
<a href="#" class="previous">« Previous</a>
<a
href="#" class="next">Next »</a>
<a href="#" class="previous round">‹</a>
<a href="#" class="next
round">›</a>
Passaggio 2) Aggiungi CSS:
Esempio
a {
text-decoration: none;
display: inline-block;
padding: 8px 16px;
}
a:hover {
background-color: #ddd;
color: black;
}
.previous {
background-color: #f1f1f1;
color: black;
}
.next {
background-color: #04AA6D;
color: white;
}
.round {
border-radius: 50%;
}