detail-view pictures are not in the centre

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: detail-view pictures are not in the centre

Post by Jan »

Hi, it can be added only to phocagallery.css (Phoca Gallery cannot modify other parts of the site). Yes maybe this can be added directly to the code, but then a lot of users which don't understand SEO will write into this forum, that inline styles are bad for SEO (which is of course not true) :-(

But I assume, any loaded css after phocagallery.css will not modify this part of css because it includes the id:

Code: Select all

#phocagallery table #image-box
for overwriting this code your template.css needs to have defined the same rule #phocagallery table #image-box which I think is impossible because why some template developer will add a phocagallery css code into the template.css :idea:

I have tested it on different browsers included in phocagallery.css, please try to paste the code into phocagallery.css and let me know (it is directly defined for specific ID so overwriting it with some general rule should not work)

Let me know if this will work (I can only simulate it but get no really problem with this), if not I will paste it directly to the code.

Jan

EDIT: but there style tag included yet, so I will paste it to the inline style too.
If you find Phoca extensions useful, please support the project
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

Re: detail-view pictures are not in the centre

Post by carsten888 »

yes, you are right.

I tested this and it works without the inline style from the phoca css.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: detail-view pictures are not in the centre

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
FreeThinker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Sep 2010, 00:45

Re: detail-view pictures are not in the centre

Post by FreeThinker »

so guys how does one corrects this....
....what code to inin which file!?

*I have the 2.7.5....and also included the code said here by "carsten888"

Code: Select all

#phocagallery table #image-box{
   margin: 0 auto;
}
...still no changes....i have the same issue stated in topic subjet :x

=> the website direct gallery link is:
http://www.galaxiaband.com/index.php?op ... 70&lang=pt

Thanks a lot in advanced.
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

Re: detail-view pictures are not in the centre

Post by carsten888 »

you have on you elements style attribute "margin: auto". I don't know how that got there. Maybe Jan can tell you if that comes from a component-setting. If you would take that away, it would center, as the added css is only overwritten by that code there.
FreeThinker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Sep 2010, 00:45

Re: detail-view pictures are not in the centre

Post by FreeThinker »

ok...so i've changed the code on these files:
=> template.css
=> template_rtl.css
located: .../templates/system/css

plus on the file:
=> phocagallery.css
located: .../components/com_phocagallery/assets

to:

Code: Select all

#phocagallery table #image-box
still same issue is stated :!:
...as you can see in the direct link below:
=> http://www.galaxiaband.com/index.php?op ... 70&lang=pt

Thanks & Cheers
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

Re: detail-view pictures are not in the centre

Post by carsten888 »

Did you read my previous post at all?
The element still has that style property in there, take it out and it will work.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: detail-view pictures are not in the centre

Post by Jan »

Hi, do you run 2.7.5 version, this is included in 2.7.5.

Jan
If you find Phoca extensions useful, please support the project
FreeThinker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Sep 2010, 00:45

Re: detail-view pictures are not in the centre

Post by FreeThinker »

Hello Jan,

Yes I am runing the latest verison...already uninstalled it and re-installed and same issue :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: detail-view pictures are not in the centre

Post by Jan »

Hmmm, can I see the site where this occurs (with installed Phoca Gallery 2.7.5 and rhuk_milkyway)?
If you find Phoca extensions useful, please support the project
Post Reply