Centre Thumbnails

Phoca Gallery - image gallery extension
fish4carp
Phoca Member
Phoca Member
Posts: 11
Joined: 03 Dec 2008, 18:44

Centre Thumbnails

Post by fish4carp »

Hi

Very cool Plugin, how can I centre the thumbnails on the page?? also how do I go about removing the logo/link at the bottom of the Gallery pages.

Cheers

Roger
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Centre Thumbnails

Post by Jan »

Hi, thumbnails are displayed in float boxes, if you want to center them, you need to set the fixed width of Phoca Gallery and customize your template so it will display centered box of Phoca Gallery...
- for users who have donate to Phoca I send the file which can disable the such information...

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

Re: Centre Thumbnails

Post by fish4carp »

Hi

Thanks for the reply does this mean I need to customize the Joomla Template so I can make the Thumbnails in the centre of the page??

I've also made a donation.

Roger
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Centre Thumbnails

Post by Jan »

Hi,

yes...

I didn't try it but I think:

first you need to set the phocagallery box as fixed width (you can set it in CSS -> #phocagallery class, or in paramters)... (X)HTML doesn't know centered float box but image are saved in float boxes, so you can solve it, if you set phocagallery box as fixed width and this fixed box you will set as center with some of CSS techniques, e.g.:

Code: Select all

#phocagallery {
	min-width: 960px;
	max-width: 960px;
	width: auto !important;
	width: 960px;
	margin: 0 auto;
	text-align: left;
}
this means e.g. phocagallery box will have the 960 fixed width and will be centered ... you should set the exact width of the box that the effect will be centered...

e.g. you know boxes have e.g. 120px and margin 5px, so you want to set e.g. 4 boxes on the site... then you will set 120 x 4 + 5 x 8 = 520 (I hope) ... so you will set e.g. 520 fixed width of phocagallery box so you now know that only 4 boxes will be displayed, then with CSS displayed before you can set the whole box to center...

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

Re: Centre Thumbnails

Post by fish4carp »

Hi Jan

I have tried to add the code in several css pages but still can't get the thumbnails to center :x

Roger
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Centre Thumbnails

Post by Jan »

:( as I said, I didn't try it but I have seen it on some pages ... :(
If you find Phoca extensions useful, please support the project
brentmin
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 Oct 2011, 22:29

Re: Centre Thumbnails

Post by brentmin »

Hi Jan, I tried this too with the plug in and it didn't work. Please can you include positioning of thumbnails as an OPTION?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Centre Thumbnails

Post by Jan »

What you mean with thumbnails? The problem is, they are in float box and in HTML there is no option to center float boxes, there is only right and left value for them, so you can only center whole block :idea:

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