How to centering the output of the Phoca Gallery Plugin

Phoca Gallery plugins - plugins for Phoca Gallery extension
NeroInferno
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Jan 2009, 16:37

How to centering the output of the Phoca Gallery Plugin

Post 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!)
NeroInferno
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Jan 2009, 16:37

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

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

ok
If you find Phoca extensions useful, please support the project
fish4carp
Phoca Member
Phoca Member
Posts: 11
Joined: 03 Dec 2008, 18:44

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

Post 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
NeroInferno
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Jan 2009, 16:37

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

Post 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.
Post Reply