how to center a single lightbox image?

  • Posted in : Bloggy WP
  • Eloen
    Participant

    I added this code:

    jQuery(document).ready(function($) {
    $(‘#primary.span7’).removeClass(‘span7’).addClass(‘span8’);
    $(‘#secondary.span5’).removeClass(‘span5’).addClass(‘span4’);
    });

    …and a single lightbox image can no longer be positioned EXCEPT left-aligned. I tried adding this code:

    .lightbox {
    display: inline;
    }

    …but it didn’t work. How do I center a single lightbox image? Everything works fine except the position of the image.

    Eloen
    Participant

    Here’s an example – the image is ALWAYS left-aligned and I can’t center it: http://i.imgur.com/qcYK7NU.png

    Eloen
    Participant

    Hah! I got it! After increasing the body width and reducing the sidebar width with the JS code above, I added this shortcode to my lightbox images:

    [row][column width="1" offset="2"][/column][/row]

    Now it works great!

    I only need help with this one please – http://www.pixelwars.org/forums/topic/excerptread-more-tag-broken/

    Mehmet S.
    Keymaster

    Ok. Good luck.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register