How to create: next and previous buttons
- Previous Page Icon Button
- Next Page More Button in Navigation
Learn how to use CSS to create 'next' and 'previous' buttons.
Next and previous buttons
How to create next and previous buttons
Step 1 - Add HTML:
<a href="#" class="previous">« Previous</a> <a href="#" class="next">Next »</a> <a href="#" class="previous round">‹</a> <a href="#" class="next round">›</a>
Step 2 - Add 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