Page 1 of 1

Thumbnails in K2 article can not be centered

Posted: 15 Aug 2014, 10:11
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

Re: Thumbnails in K2 article can not be centered

Posted: 17 Aug 2014, 00:59
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

Re: Thumbnails in K2 article can not be centered

Posted: 07 Nov 2014, 12:58
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.

Re: Thumbnails in K2 article can not be centered

Posted: 08 Nov 2014, 23:49
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