Page 1 of 1

center image in modal box

Posted: 24 Oct 2011, 13:01
by juntiedt
Hello out there,
I downloaded Phoca Gallery last week and I am generally very happy with it. The only problem I have, is that the images in the modal box are not centered. They are completly on the right side. It is even missing a little bit of the original image (right side). How can I center the images? My images are not always the same size. (landscape or upright)
I have also tested a youtube, which works fine. It is center. How comes?
Any support highly appreciated,
regards
Johannes

Re: center image in modal box

Posted: 24 Oct 2011, 15:14
by juntiedt
Hi,

I found out, that the Gantry template, which I am using, uses the mootools library and that this might interfere with Phoca Gallary. But how can I solve this isue. What do I have to change, to make sure, both components are using the same version of Mootools?

regards
Johannes

Re: center image in modal box

Posted: 26 Oct 2011, 22:37
by Jan
Hi, Phoca Gallery does not use "own" mootools, it uses the Joomla! framework mootools library, so then you need to solve problem between ghe Gantry and Joomla! mootools library :-( :idea:

Jan

Re: center image in modal box

Posted: 27 Oct 2011, 11:13
by juntiedt
Hi Jan,

thanks for your response!
Somewhere in the forum I read, that there might be a problem with the alingnment of the picture. I my case it seems that the pichture is alinged to right side. Where can I find the html or css code to fix it resp. to commnet it out?

regards
Johannes

Re: center image in modal box

Posted: 27 Oct 2011, 11:49
by Jan
Hi, this needs to be found in template css and fix it (some templates makes some reset functions of css so this needs to be changed - the info should be found in this forum too)

Jan

Re: center image in modal box

Posted: 28 Oct 2011, 14:26
by juntiedt
Hi Jan,

i am still not successful :-(
I want to show photos and youtube films with your gallery.
Using Highslide JS window, photos are not in the center but the videos are ok and centered.
Using Highslide JS (image only) the photos are ok but films are of course not working.
As I am not a specialist of html, css and php I do need your advice again.

thanks in advance and regards
Johannes

Re: center image in modal box

Posted: 28 Oct 2011, 22:14
by Jan
Hi,

1) then seems like the img tags are somehow designed by the template css
2) image method cannot be used for videos (html) - https://www.phoca.cz/documents/50-phoca/ ... al-advices (8)

Jan