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.
oo00oo (Guest)
on 2006-03-13 14: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
bmgz (Guest)
on 2006-03-13 19: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.