pagination {float: right; margin: 20px 10px;} .pagination a {background-color: #8BC63F; padding: 5px 8px; margin: 0px 3px; color: #fff; } .pagination a:hover {background-color: #579605;} .current {background-color: #579605; color: #fff; padding: 5px 8px; margin: 0px 3px;}