#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    3
    Rep Power
    0

    Need help with my lightbox gallery


    Hello everyone! I am new here and need some help.
    I have a couple of lightbox galleries here: www sebastianbojek com/streets.html

    As you see the two first galleries are aligned right ( center ). But all the other ones are to the left. I don`t know how to fix that. I tried everything.
    I hope someone here can help me out!

    Thanks in advanced!

    Jutaro

    Edit: Why did you move my post? its not about javascript! Its about HTML. How to align my galleries!
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    The problem is with the way the hidden images for the lightbox are defined. It looks like they just have their width sset to 0, which means the margins on them are still going to take up space. Those margins are what is causing the alignment to be wonky.

    Ideally those hidden images would have display:none set on them, and then when rendered the lightbox plugin would change that.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    3
    Rep Power
    0
    Thank you!
    Could tell me where exactly I have to put that in my code.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    3
    Rep Power
    0
    Sorry for double posting. But it is driving me crazy! I tried the display none thing and still its not working.

    Please help!!!

IMN logo majestic logo threadwatch logo seochat tools logo