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
Center plugin in article
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Center plugin in article
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 51
- Joined: 21 Jul 2009, 21:25
Re: Center plugin in article
Jan,
Thanks for the help
Chris
Thanks for the help
Chris
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
- Phoca Member
- Posts: 17
- Joined: 01 Dec 2008, 09:30
- Location: Israel
- Contact:
Re: Center plugin in article
Hello,
Didn't quite get that. Should this look like:
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>
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Center plugin in article
Hi, you should test it and correct your html, if there is some problem. e.g. width="500" or style="width:500px" etc.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 17
- Joined: 01 Dec 2008, 09:30
- Location: Israel
- Contact:
Re: Center plugin in article
I've just mistyped ... is the structure itself correct?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Center plugin in article
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 8
- Joined: 03 Aug 2010, 21:30
Re: Center plugin in article
I am really new at this programmingthing...
Im not getting this...
Can someone please help mw with this....
thanks...
http://www.ecoxport.com
Im not getting this...
Can someone please help mw with this....
thanks...
http://www.ecoxport.com