Forum: Ruby on Rails Styling pagination links ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
19403f509ca90e8ffe072214c6cba896?d=identicon&s=25 oo00oo (Guest)
on 2006-03-13 13:08
(Received via mailing list)

How to style the pagination links ?
I simply try to set the number of the current page to another color. But
I have the "..." also colored.
Paginator have options to style ?

494e0313d09e2b405fcc19c7405239a4?d=identicon&s=25 bmgz (Guest)
on 2006-03-13 18:37
(Received via mailing list)
oo00oo wrote:
> How to style the pagination links ?

Put the links within a div or whatever..

<div class="pagination-links">
<%= pagination_links @var %>

you can then add css style for the div/links
or whtever you need to do in your stylesheet:

/* current page */
.pagination-links {
	color: white
	background-color: blue;

/* other pages */
.pagination-links a {
	color: blue
This topic is locked and can not be replied to.