Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to style previous/next post navigation links
/* Previous and Next post links on single posts
------------------------------------------------------------ */
#prev-next {
float: left;
margin: 30px 0 40px;
width: 100%;
}
#prev-next .prev-link {
float: left;
width: 50%;
text-align: left;
}
#prev-next .prev-link a {
float: left;
text-align: left;
}
#prev-next .next-link {
float: right;
width: 50%;
text-align: right;
}
#prev-next .next-link a {
float: right;
text-align: right;
}
#prev-next .prev-link a span {
padding-right: 10px;
}
#prev-next .next-link a span {
padding-left: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.