Cara - Tombol Berikutnya dan Sebelumnya
Pelajari cara membuat tombol "berikutnya" dan "sebelumnya" dengan CSS.
Tombol Berikutnya dan Sebelumnya
Cara Membuat Tombol Berikutnya dan Sebelumnya
Langkah 1) Tambahkan HTML:
Contoh
<a href="#" class="previous">« Previous</a>
<a
href="#" class="next">Next »</a>
<a href="#" class="previous round">‹</a>
<a href="#" class="next
round">›</a>
Langkah 2) Tambahkan CSS:
Contoh
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%;
}