35
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

kaminariのページネーションを中央寄せにする

Posted at
  • kaminariを導入しているとビューで pagination メソッドを呼ぶと思いますが、その場合、自動的に ul 要素に pagination クラスが適用されます。
  • pagination クラスのCSSを以下のようにカスタマイズすると、ページネーションを中央寄せにすることができます。
app/assets/stylesheets/application.scss
.pagination {
  justify-content: center;
}
35
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
35
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?