Locked lesson.
About this lesson
Exercise files
Download this lesson’s related exercise files.
Pagination.docx58.9 KB Pagination - Solution.docx
59.4 KB
Quick reference
Pagination
Pagination is can be created mainly with CSS we already know.
When to use
You may want to create pagination for blogs or shopping cart type websites, or any time you need to navigate to different pages of a site.
Instructions
Pagination is pretty simple to create:
.pagination {
display: inline-block;
}
.pagination a {
color: black;
float: left;
padding: 10px;
text-decoration: none;
}
.pagination a:hover {
color: red;
background-color: #cccccc;
}
Hints & tips
- Don't forget our special characters « and » (left and right arrows)
- Pagination is great for blogs and shopping carts.
Lesson notes are only available for subscribers.