Posts: 64
Threads: 21
Joined: Jan 2012
My site has 5 pages, each featuring a small gallery. However, the galleries are not centered on the content page even though I centred the gallery tags.
I have also tried using (% gallery name=my-gallery-name js=false %) as I am using the I18N cycle slidshow on the same page.
This too does not help.
Any ideas?
Installed Plugins:
I18N Gallery
p01-contact
{under-construction/UNDER_TITLE} Plugin
Posts: 2,094
Threads: 54
Joined: Jan 2011
chaos Wrote:My site has 5 pages, each featuring a small gallery. However, the galleries are not centered on the content page even though I centred the gallery tags.
What do you mean with "centered the gallery tags"?
The plugin replaces the whole paragraph (if there is nothing more) with a div. Thus you need to add a rule
div.gallery-cycle { ... } with appropriate styles to your CSS.
Posts: 64
Threads: 21
Joined: Jan 2012
Which css file do I add the above rule?
Posts: 112
Threads: 20
Joined: Dec 2011
chaos Wrote:Which css file do I add the above rule?
Simply add this code in your css file, that of your template.
Posts: 64
Threads: 21
Joined: Jan 2012
2012-05-18, 03:40:07
(This post was last modified: 2013-06-08, 19:18:06 by chaos.)
Hi Didou
I must be having a blonde moment! I have tried what you suggested - I just cannot centre my galleries!!! I came across a post that suggested putting the following into my template css:
div.gallery-cycle {
margin-left: auto;
margin-right: auto;
}
I have tried everything to get the above to work. Such a small thing is making me crazy.