Use CSS to center will_paginate page results

Use CSS to center will_paginate page results

Will_paginate and Kaminari are both popular Ruby Gems for displaying and parsing pagination in a Ruby on Rails application. I won’t wade into the seething cauldron of debate about which is better suited for the task.

To center the will_paginate pagination links, do the follow.

<div class="pagniation-wrapper">
  <%= will_paginate @accounts %>
</div>

Then add the following to your css file:

.pagniation-wrapper {
    text-align: center;
  }