WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Plugin - Polaroid, gallery offset from top and mis-aligned (6 posts)

  1. callmebob
    Member
    Posted 4 years ago #

    http://lylestavast.com/blog1/2010/04/10/trying-out-a-gallery/

    This is the 1st gallery I've done - I like the display of images - thanks for writing it :)

    If you look at the mentioned site URL, you'll see how it's offset down the screen and aligned left of center. How can I align it so the edges of the 1st row of photos is near the title and to the left of the sidebar items, like posting an individual image would be ? I tried posting another image in that space and it displayed fine, as did text.

    Appreciate your help. I have only 4 plugins active - add-to-any (.9.9.3.5), akismet (2.2.7), polaroid (thanks again) and smart youtube (3.3). I'm running wordpress 2.9.2

    Appreciate any assistance as I'm new to css etc....and no nothing about .js or jquery world at all.

  2. janisto
    Member
    Posted 4 years ago #

    Hi,
    I would recommend using a proper theme. The one you are using isn't really working properly at all.

    I tried to look for a quick fix, but there were just too many problems.

    Cheers,
    janisto

  3. callmebob
    Member
    Posted 4 years ago #

    I have changed the theme to darknight 2.0

    only mods made to the original file are the img display - it already had a pixel border and I added lines shown with the comment:

    .post img {
      display: block; /* lyle */
      padding:8px;
      border:1px solid #222;
      margin-left: auto; /* lyle */
      margin-right: auto; /* lyle */
        }

    Note that the gallery now floats to the top as it should, but is still forced to far edge left. How can I get this to center the way photos do on other pages on same blog ?

    Thanks janisto...

  4. janisto
    Member
    Posted 4 years ago #

    Hi,
    change your Gallery columns to 5 ( http://s.wordpress.org/extend/plugins/polaroid-gallery/screenshot-5.jpg?r=228228 ) and try adding this style to your theme:

    #content .polaroid-gallery {
    margin: 40px auto !important;
    }

    Or you could just increase the size of your thumbnails and then use Regenerate Thumbnails plugin to regenerate all your thumbnails.

    Cheers,
    janisto

  5. janisto
    Member
    Posted 4 years ago #

    Hi,
    if you really want to center the polaroid gallery div, you could also try just adding this to your theme CSS:

    #content .polaroid-gallery {
    margin: 40px auto !important;
    width: 688px; /* (thumbnail width + 22px) * Gallery columns */
    }

    There might be some problems with IE, but you will have to try that one out.

    Cheers,
    janisto

  6. callmebob
    Member
    Posted 4 years ago #

    I dug in and read some on CSS and understand a bit more about what's happening. I modified the theme to remove the categories and add recent posts section in the sidebar area as well as reduce dead space between post and sidebar ...

    Thanks for your assistance, as you'll see the gallery is centered now - exactly as I hoped it would be. Much appreciate your taking time...

    Regards
    Lyle

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags