Page 2 of 3

Re: detail-view pictures are not in the centre

Posted: 22 Sep 2010, 14:12
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.

Re: detail-view pictures are not in the centre

Posted: 23 Sep 2010, 07:54
by carsten888
yes, you are right.

I tested this and it works without the inline style from the phoca css.

Re: detail-view pictures are not in the centre

Posted: 23 Sep 2010, 13:23
by Jan
Ok

Re: detail-view pictures are not in the centre

Posted: 24 Sep 2010, 09:28
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.

Re: detail-view pictures are not in the centre

Posted: 25 Sep 2010, 08:43
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.

Re: detail-view pictures are not in the centre

Posted: 25 Sep 2010, 15:41
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

Re: detail-view pictures are not in the centre

Posted: 26 Sep 2010, 08:25
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.

Re: detail-view pictures are not in the centre

Posted: 26 Sep 2010, 12:30
by Jan
Hi, do you run 2.7.5 version, this is included in 2.7.5.

Jan

Re: detail-view pictures are not in the centre

Posted: 27 Sep 2010, 07:21
by FreeThinker
Hello Jan,

Yes I am runing the latest verison...already uninstalled it and re-installed and same issue :)

Re: detail-view pictures are not in the centre

Posted: 27 Sep 2010, 17:36
by Jan
Hmmm, can I see the site where this occurs (with installed Phoca Gallery 2.7.5 and rhuk_milkyway)?