Page 1 of 1

How to centering the output of the Phoca Gallery Plugin

Posted: 08 Jan 2009, 19:22
by NeroInferno
Hello,
I hope this can help for people who want to center the output of the Phoca Gallery Plugin.

After billions of testes I had success using the following syntax in the css file of the template you're using:

Code: Select all

div#component table.contentpaneopen tbody tr td div.phocagallery {
	width: [color=#FF0000][b]570[/b][/color]px !important; 
	margin-left: auto;
	margin-right: auto;
}
..where 570 is the width you want to give to the output...but...be careful! I don't understand what happens exactly so you need to find different widths in order to see correctly and centered the output. For me worked to declare a width of 570px when the "parent" container of the articles was 685px.
PhocaGalleryPlugin-centerin.jpg
Oh I used this code in the article:

Code: Select all

{phocagallery view=category|categoryid=2|imageshadow=shadow1|detail=1|displayname=0|displaydetail=0|displaydownload=0|bordercolor=#CCCCCC|bordercolorhover=#CCFFCC}
(be sure to copy it all in a single line or it won'r work!)

Re: How to centering the output of the Phoca Gallery Plugin

Posted: 08 Jan 2009, 19:30
by NeroInferno
I sang too soon victory. In IE6 was STRANGLY (sigh :x ) a pain.

In my case this syntax works:

Code: Select all

div#component table.contentpaneopen tbody tr td div.phocagallery {
	width: 85% !important;
	margin-left: auto;
	margin-right: auto;
}
I simply used % widths instead of pixel widths..

Thanks,
m.

Re: How to centering the output of the Phoca Gallery Plugin

Posted: 09 Jan 2009, 23:42
by Jan
ok

Re: How to centering the output of the Phoca Gallery Plugin

Posted: 19 Jan 2009, 14:15
by fish4carp
Hi

Been trying to centre my Phoca Gallery for ages please can you tell me what files you amened so that the galley will be in the centre of the page.

Thanks

Roger

Re: How to centering the output of the Phoca Gallery Plugin

Posted: 20 Jan 2009, 15:19
by NeroInferno
fish4carp wrote:Hi

Been trying to centre my Phoca Gallery for ages please can you tell me what files you amened so that the galley will be in the centre of the page.

Thanks

Roger
hi Roger,
i edited the .css file on my custom template.

m.