Results 1 to 2 of 2

Thread: lightbox size problems

  1. #1
    Join Date
    Jan 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default lightbox size problems

    I am useing lightbox v2.0 on my new site, but i seem to have a little probem with it. for some reason the background image dosent fill the page. i have a gap at the right hand side and at the bottom of the page. ive fixed the problem with the gap on the right hand side by doing this

    original code
    #overlay{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 90;
    width: 100%;
    height: 500px;
    background-color: #000;
    filter:alpha(opacity=60);
    -moz-opacity: 0.6;
    opacity: 0.6;
    }

    New Code
    #overlay{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 90;
    width: 102%;
    height: 500px;
    background-color: #000;
    filter:alpha(opacity=60);
    -moz-opacity: 0.6;
    opacity: 0.6;
    }

    but i cant work out how to get rid of the gap at the bottom of the page
    any help would be greatfully received

    thanks in advance
    wrighty59uk

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This is probably due, in the first place, to something else about styles for the page in general. I'm thinking styling the overflow for the body and/or html selectors and/or having width and/or height set for one or both of them. This also has happened where the main page is set via style so that when it scrolls, only a portion of the page scrolls.

    If it is the latter, you may have to choose between the two effects - Partial Page Scrolling or Lightbox.

    Theoretically, though at least, you should be able to custom mod lightbox.js to temporarily suspend these styles of the body and/or html selectors during the display phase of Lightbox.

    Then again, it may be something else entirely.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •