Center Photo and name in Gallery

Shoal Summit Solutions Forums MSTW Team Rosters Plugin Center Photo and name in Gallery

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2005

    Where do I go to center the photo and name with the roster in gallery mode?

    Thanks

    #2007
    Mark
    Keymaster

      Hi Luis,
      Thanks for moving the question to this forum. To center the photo & title, you have to edit the plugin’s stylesheet in the /css folder. For the title, add the following rule:

      .player-name-number {
           text-align: center;
      }

      For the photo, add the following rule:

      .player-photo img {
           margin: auto;
      }

      Regards,
      -Mark

      • This reply was modified 10 years, 2 months ago by Mark.
      • This reply was modified 10 years, 2 months ago by Mark.
      #2030

      I added code above to the stylesheet. The name got centered but the photo is still left justified. Here’s a link to the site

      http://www.coastvbc.com/boys/18-darrell/

      Let me know
      Luis

      #2057

      any luck figuring out how the photo can be centered?

      #2062
      Mark
      Keymaster

        Hi Luis,
        I am so sorry, I was SURE I posted a response to this one. In fact, I remember the fix, just add:

        td.mstw-tr-odd img, td.mstw-tr-even img {
           margin: auto;
        }

        to the stylesheet.

        Regards,
        -Mark

        #7230

        I have tried all the above, no luck.

      Viewing 6 posts - 1 through 6 (of 6 total)
      • You must be logged in to reply to this topic.