Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Can pagination be rendered in blocks of 10 page numbers?

Started by John Edwards 3 years ago · 1 replies · 264 views
3 years ago

It would be nice to know if it's possible to get the pagination to render in blocks of 10?

last edited 02/14/23 by pamtbaau
3 years ago

@jzedward,

On the outer div of the page numbers, you could use a grid. For example the following will position all children in 10 columns with each child having the same width.

YAML
display: grid;
grid-template-columns: repeat(10, 1fr);
last edited 02/14/23 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 196 2 months ago
Themes & Styling · by Ian, 2 months ago
3 92 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 452 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 46 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 126 3 months ago