Thumbnails in K2 article can not be centered

Phoca Gallery - image gallery extension
chriddo
Phoca Member
Phoca Member
Posts: 13
Joined: 16 Mar 2009, 20:41

Thumbnails in K2 article can not be centered

Post by chriddo »

Regardless of how I try to find a way to center the thumbnails in my K2 article, I am always seeing it to the left :o I am using the following code:

Code: Select all

<p style="text-align: center;">{phocagallery view=category|categoryid=10|limitstart=0|limitcount=0}<br />{phocagallery view=category|categoryid=9|limitstart=0|limitcount=0}<br />{phocagallery view=category|categoryid=8|limitstart=0|limitcount=0}</p>
Any ideas on how to solve this?

PS. I am using a Gavick theme and Joomla 3.3.3
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Thumbnails in K2 article can not be centered

Post by Jan »

Hi, images are displayed in float boxes and HTML does not know centering of float boxes, see this:
https://www.phoca.cz/documents/19-phoca- ... how-plugin
to get info how to center parts in content.

Jan
If you find Phoca extensions useful, please support the project
chriddo
Phoca Member
Phoca Member
Posts: 13
Joined: 16 Mar 2009, 20:41

Re: Thumbnails in K2 article can not be centered

Post by chriddo »

Looking at the link you gave me ... does this mean that I have to insert that code into every K2 article? If yes, then this is not optimal. Can I insert it to any override.css to solve it?

Please elaborate.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Thumbnails in K2 article can not be centered

Post by Jan »

Hi, as written, this is HTML feature - it does not know the float center, so this is common procedure how to center blocks but of course if you find some other way - to do it per CSS, then use CSS as it is more effective.

Jan
If you find Phoca extensions useful, please support the project
Post Reply