centre visual index

MARCOCORAZZA / 2014-02-01 20:57:02   

hi
i would like to know how i could centre the visual index format.
i foud this thread ( indexhibit.org/forum/thread/19697/)
but it is not clear to me where i have to write the code?
could you help me?
thanks
marco

BS6_Photography / 2014-02-01 23:33:38   

Hello buddy,

I might be able to help you out....

On the visual index plugin right at the bottom find this line.....

return "#img-container { {$grid} }

and replace it with

return "#img-container { {$grid} margin: 50px auto 50px; auto; width: 800px;}

You can change the width to what you want and the top and bottom margin to what you want also. I am not too savvy with coding but this is what I have done to get the visual index centred.

It would be a good idea to save a separate visual index plugin to edit just encase you make a mistake.

There may be other things you need to do in order to get this to work in which I hope more experienced coders will chip in and explain what to do!

I hope this works!

MARCOCORAZZA / 2014-02-01 23:54:51   

hi thanks for your answer...but it doesn't work

it changes the number of columns (i set 3 but it shows me 2)...if i just want to change the top and left margin how should i do?

thanks a lot again

BS6_Photography / 2014-02-02 09:13:51   

Maybe try experimenting with the width part, if you want 3 columns make the width larger......??

Do you have a link to show as an example?

BS6_Photography / 2014-02-02 09:19:57   

If you have your thumbnails set to 300px, try putting the width at 900px of the lgrid layout to 900px......

This thread has been closed, thank you.