Skip to content

Instantly share code, notes, and snippets.

@netmagik
Last active April 18, 2016 16:54
Show Gist options
  • Save netmagik/0af1bb7d57741a3430cc to your computer and use it in GitHub Desktop.
Save netmagik/0af1bb7d57741a3430cc to your computer and use it in GitHub Desktop.
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