Center plugin in article

Phoca Gallery plugins - plugins for Phoca Gallery extension
crood
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 21 Jul 2009, 21:25

Center plugin in article

Post by crood »

Hello!

Sometimes when I write an article I put the pictures below the article itself with you phoca gallery plugin. I was wonder how can I center the plugin in the article?

Thanks,

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

Re: Center plugin in article

Post by Jan »

Hi, this should be done by the editor. E.g. you will set fixed width of div and will set other div in this div which will have set : style="margin: 0 auto".

Jan
If you find Phoca extensions useful, please support the project
crood
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 21 Jul 2009, 21:25

Re: Center plugin in article

Post by crood »

Jan,

Thanks for the help


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

Re: Center plugin in article

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
ahoy
Phoca Member
Phoca Member
Posts: 17
Joined: 01 Dec 2008, 09:30
Location: Israel
Contact:

Re: Center plugin in article

Post by ahoy »

Hello,

Didn't quite get that. Should this look like:

Code: Select all

<div width=500>
<div style="margin: 0 auto">

{phocagallery view=category|categoryid=7|imageid=270}

</div>
</div>
Ahoy IT
-----------
Web Hosting | Articles | Film History
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Center plugin in article

Post by Jan »

Hi, you should test it and correct your html, if there is some problem. e.g. width="500" or style="width:500px" etc.

Jan
If you find Phoca extensions useful, please support the project
ahoy
Phoca Member
Phoca Member
Posts: 17
Joined: 01 Dec 2008, 09:30
Location: Israel
Contact:

Re: Center plugin in article

Post by ahoy »

I've just mistyped ... is the structure itself correct?
Ahoy IT
-----------
Web Hosting | Articles | Film History
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Center plugin in article

Post by Jan »

Yes, but it depends on the template too and it depends on the width value too (if the value is too large or too small, it can be ignored in the template - depends on template settings).

Jan
If you find Phoca extensions useful, please support the project
fnanco
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 03 Aug 2010, 21:30

Re: Center plugin in article

Post by fnanco »

I am really new at this programmingthing...

Im not getting this...

Can someone please help mw with this....

thanks...

http://www.ecoxport.com
Post Reply