Skip Navigation

[Resolved] Center-align pagination

This thread is resolved. Here is a description of the problem and solution.

Problem:

How can I center align the pagination?

Solution:

You can try below CSS codes:

https://toolset.com/forums/topic/center-align-pagination/#post-2014405

Relevant Documentation:

https://www.w3schools.com/cssref/css3_pr_justify-content.asp

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Daniel 3 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2014393

Hi,
On the Home page I built a table to show results and a pagination on bottom.

hidden link

You can see what I mean here:
hidden link

How can I center align the pagination?

Thanks!

#2014405
center-ul.JPG

Hello,

You can try below CSS codes:

ul.pagination {
    display: flex;
    justify-content: center;
}

See my screenshot center-ul.JPG

More help:
hidden link

#2014453

Ok.
It worked on that View.
However, I tried the same on a similar View and it does not work.
See here:
hidden link

hidden link

What is different?
Thanks!

#2014475
center-ul2.JPG

I have tried the URL you mentioned above with my Chrome browser, it works fine, see my screenshot center-ul2.JPG

#2014503

I cleaned cache and repeated the process. I am doing exactly that:
hidden link

What is happening here? I can give you access to the site so you can take a look.
Thanks!

#2014513

I think you have missed this line in your CSS codes:

display: flex;
#2014521

Now I see it works on the Chrome inspector. But I cannot apply that CSS to the View.

hidden link

What am I missing?
Thanks again!

#2014539

Please share your website credentials in below private message box, thanks

#2014611

Thanks for the details, you are using broken CSS codes in "Search and Pagination"-> "CSS Editor" section, I have changed line 23 from:

    border-radius: 4px;

To:

    border-radius: 4px;
}

Please test again, check if it is fixed, thanks

#2014619

My issue is resolved now. Thank you!