How to make "Random Image" format centered?

yungoon / 2012-12-24 00:48:37   

I tried the "Return random image" format but doesn't look good because it doesn't return the image into the center, it returns it more to the left. So how should I make it show the image in the center?
Thank you in advance :)

yungoon / 2012-12-24 17:45:32   

hey I inserted that code and now if you look at my site there are weird letters showing up. how can I remove those?

arsondpi / 2012-12-24 17:56:08   

what's your address? where did you insert the code? did you make a duplicate format file like I suggested above?

yungoon / 2012-12-24 18:00:22   

raulaltosaar.com

yungoon / 2012-12-24 18:00:52   

I just put that code into the format.random_image.php in Assets

arsondpi / 2012-12-24 18:25:27   

..."You can duplicate the format.random_image.php with your ftp application and work on that file. Rename it to format.random_centered_image.php

Then I edited the plugin to add a css stylesheet to that specific page ($OBJ->page->exhibit['dyn_css'][] = $this->dynamicCSS();) .
The css classes can be found in the function dynamicCSS() in the bottom of the script - you can edit or alter as you wish.

In this case the image will center the random image depending on #exhibit .container div."

- and here is the right code (I'm deleting the previous post): snipplr.com/view/69235/formatrandomcenteredimagephp-for-ndxz-v2/

yungoon / 2012-12-24 18:32:36   

Thank you! It works now :) Merry christmas!

This thread has been closed, thank you.