Hvordan oprette: Næste og forrige knapper
- Previous page Icon button
- Next page More button in navigation
Lær hvordan man bruger CSS til at oprette 'Næste' og 'Forrige' knapper.
Næste og forrige knapper
Hvordan oprette næste og forrige knapper
Trin 1 - Tilføj HTML:
<a href="#" class="previous">‹ Forrige</a> <a href="#" class="next">Næste »</a> <a href="#" class="previous round">‹</a> <a href="#" class="next round">›</a>
Trin - Tilføj CSS:
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%; {}
- Previous page Icon button
- Next page More button in navigation