Forum: Ruby on Rails Styling pagination links ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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)
Hello,

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 ?

Thanks
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 %>
</div>

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.