Tribulant Slideshow Gallery
Center pictures inside Slideshow (8 posts)

  1. budykiller
    Posted 2 years ago #


    Thank you for this great plugin. I have a request though.

    How to center pictures inside the slideshow ?
    I have created a "sponsors slideshow", and logo are not the same size. Problem is all pictures are in top-left corner. It's not really nice.

    I've modified all i can in the PHP files but it never works.
    I tryed to "margin:0 auto; text-align:center" all <div> with no luck. I checked with firebug, it was all good from my point of view.

    I surely miss something. Could someone help me ?
    Thank you. have a nice day


  2. ILRobinson
    Posted 2 years ago #

    Did you ever find a solution? I was able to center it, but only within a fixed width so far.

  3. ILRobinson
    Posted 2 years ago #

    I managed to find it. If you were unsuccessful, or for anyone else is searching and hasn't found the solution yet.

    In the gallery-css.php switch out the current attributes on line 18 for #image img with
    { border:none; height:auto; max-width:100%; margin:0 auto; display:block; }

  4. wombat86
    Posted 2 years ago #

    Thank you! That works perfectly for me!

    Do you know how I could also center the images vertically in the slideshow? I have tried adding vertical-align:middle; to that line of code but it doesn't do anything.


  5. ILRobinson
    Posted 2 years ago #

    Might not be much help, but off the top of my head I'd say it would be a mix of adding #position: absolute; #top: 50%;; vertical-align: middle; to the container and styling the div " #position: relative; #top: -50%" for the holder.

    Don't currently have the need so when I have time I'll play with it as well and let you know unless you find the solution.

  6. wombat86
    Posted 2 years ago #

    Thanks for the suggestion. That didn't work for me, but it's very possible I put the css elements for the wrong tags.

  7. andymcgra
    Posted 2 years ago #

    Thanks ILRobinson, that was extremely helpful.
    I'm surprised the Plugin author didn't include such a fundamental option in the first place.

  8. kepeirce@gmail.com
    Posted 1 year ago #

    Sorry if this sounds like a ridiculous question but how do you get to the gallery-css? When I click on hardcode it only takes me to one line of php

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Tribulant Slideshow Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic