Hi,

Thanks for the useful module.

I have a image cycle on a homepage but it aligns to the left of the content block, any idea how I can align it to the center.

Thanks in advance

Andy

Comments

boombatower’s picture

Status: Active » Needs review

Wrap code in block with:

<div style="text-align: center;">
</div>

or try adding the following to style settings for the gallery.

div.image_cycle_pictures {
  margin: 0px auto;
}
kalm’s picture

Status: Needs review » Fixed

Thanks,

The second way worked a treat, I'd tried something similar there but I think I'd missed off the 'div.'

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

autoberater’s picture

Sorry for re-opening!
I have the same problem and the second way worked for me, but now there are 2 errors during xhtml validation.

# Error Line 295, Column 7: required attribute "type" not specified

div.image_cycle_pictures { # Error Line 295, Column 7: document type does not allow element "style" here div.image_cycle_pictures { Can somebody help fixing this? Thanks
boombatower’s picture

Your probably embedding the CSS directly in the page using

tag, which is not allowed in XHTML, instead you should load it in an external style sheet, as for the "type" error one would need to see the rest of the CSS. This is not an Image cycle related question, but rather a general CSS/validation one so please ask in an appropriate forum for CSS or what not.