Page 1 of 1

Title centred under the image

Posted: 20 Jul 2023, 14:40
by balad144
Hello,
on the following image the title is on the left, I would like the title to be centred under the image in the gallery.
Thank you

https://imgur.com/GCmvZUt

Re: Title centred under the image

Posted: 20 Jul 2023, 16:07
by christine
Hi,

Try this code to your user.css (Cassiopeia) or custom.css (other templates):

Code: Select all

pg-item-box-title, .pg-category-box-title {
display: block;
text-align: center;  
}
To tell you more about, we should need live URL.
Because you can't examine a screenshot :-)

Kind regards
Christine

Re: Title centred under the image

Posted: 20 Jul 2023, 17:43
by balad144
Hello Chistine,
I put your code in user.css of cassiopeia, but it does not work, here is the link to the site:
https://randophil56.fr/galerie-photos/galerie-2023
thank you for your help
Fred

Re: Title centred under the image

Posted: 20 Jul 2023, 22:16
by christine
Hi Fred,

I made a copy-paste mistake. The dot was missing at the beginning.

Code: Select all

.pg-item-box-title, .pg-category-box-title {
display: block;
text-align: center;  
}
Kind regards
Christine

Re: Title centred under the image

Posted: 21 Jul 2023, 07:52
by balad144
Thank you very much Christine, it works very well.
have a nice day, kind regards
Fred

Re: Title centred under the image

Posted: 21 Jul 2023, 08:58
by christine
Hi Fred,

that's fine :-) Thanks for your feedback

Kind regards
Christine