Center images that use Image Captions

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
tbillert
Forum Members
Forum Members
Posts: 49
Joined: Tue Jun 17, 2008 3:46 pm
Location: Jena/Germany

Center images that use Image Captions

Post by tbillert »

Hi all,

my site uses the image captions module as well as Lytebox (and in some cases both modules together on the same image). This all works pretty well so far after some configuration work.

However, the only thing I'm missing is a way to center align images with captions (as well as Lytebox-linked images with captions). Installing Image Captions adds two CSS classes for images, leftcaption and rightcaption. They let the image float left or right, which also works when uses with Lytebox. But there is no way to center caption'ed images.

The only temporary workaround I found so far is to put the image in a <center></center> environment. This works, however the next time the page is edited, these tags get lost (I use tinyMCE).

A sample page showing all ways I use to display images can be found at

http://geojena.billert.de/index.php?page=testseite

The centered images with captions are aligned by using the workaround above.

I have tried to understand the leftcaption and rightcaption classes, but I cant find their definition in any of my CSS files. They were installed with the Image Caption Module, I simply followed this guideline:

http://wiki.cmsmadesimple.org/index.php ... gecaptions

Any help on how I can accomplish this is very much appreciated.

Thank you + best regards,

Thomas.
Post Reply

Return to “Modules/Add-Ons”