.pagination > li > a, .pagination > li > span{ border-radius: 100px; width: 50px; height: 50px; margin-left: 10px; padding-top: 13px; text-align: center; } .pagination > li:first-child > a, .pagination > li:first-child > span,.pagination > li:last-child > a, .pagination > li:last-child > span { border-radius: 100px; }