WordPress.org

Support

Support » Themes and Templates » [Resolved] How to center the gallery inside post?

[Resolved] How to center the gallery inside post?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins
    Forum moderator

    @anevins

    Have you tried centering it using margin? E.g,

    .tiled-gallery .gallery-row {
     margin: 0 auto;
    }

    Marcin
    Member

    @marcinmichno

    Actually it would be better to add some “center content” option to theme because other content(videos from YT) is left aligned too

    Marcin
    Member

    @marcinmichno

    Ok I manage it by adding
    .tiled-gallery {padding-left:65px;}
    to the custom css
    – Thx @AndrewNevins for tip 😉

    Andrew Nevins
    Forum moderator

    @anevins

    I didn’t know you wanted a desktop-specific solution 😉

    I’ve been trying to use Fotorama (gallery) with Decode, but I don’t know how to center it. (It works perfectly on iphone, but ends up to the left on my computer – http://tomasjakobsson.com) I thought I could just paste the suggestions above into the box: customize/other options/custom css – but that changes nothing. Don’t know anything really about css, so I would be grateful for any help – it’s a great looking theme. What am I doing wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] How to center the gallery inside post?’ is closed to new replies.