.pagination-outer{ text-align: center; } .pagination{ font-family: 'Poppins', sans-serif; display: inline-flex; position: relative; } .pagination li a.page-link{ color: #555; background: transparent; font-size: 16px; font-weight: 600; text-align: center; line-height: 33px; height: 33px; width: 36px; padding: 0; border: none; border-radius: 0; display: block; position: relative; z-index: 0; transition: all 0.1s ease 0s; } .pagination li:first-child a.page-link, .pagination li:last-child a.page-link{ font-size: 23px; line-height: 31px; } .pagination li a.page-link:hover, .pagination li a.page-link:focus, .pagination li.active a.page-link:hover, .pagination li.active a.page-link{ color: #fc2638; background: transparent; } .pagination li a.page-link:before{ content: ''; height: 26px; width: 26px; border: 2px solid #aaa; border-top: none; border-left: none; transform: translateX(-50%)rotate(45deg); position: absolute; left: 50%; bottom: 4px; z-index: -1; transition: all 0.3s ease 0s; } .pagination li a.page-link:hover:before, .pagination li a.page-link:focus:before, .pagination li.active a.page-link:hover:before, .pagination li.active a.page-link:before{ transform: translateX(-50%)rotate(225deg); bottom: 5px; } @media only screen and (max-width: 480px){ .pagination{ font-size: 0; display: inline-block; } .pagination li{ display: inline-block; vertical-align: top; margin: 0 0 15px; } }