Results 1 to 2 of 2

Thread: Lightbox Image Viewer

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

    Default Lightbox Image Viewer

    1) Script Title: Lightbox Image Viewer V2

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem:

    Hey all, I just need some help with the coding in this.
    I added this to my site and its works fine but there are just some things i want to change and have no idea how to.

    I would like the image box to be a little closer to the top.

    And the other thing... is it possible to make the Black background reach right to the end and to the bottom because at the moment its just stopping at the bottom as some of the images are a little bigger.....


    Thanks in advanced.
    Kind Regards

  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

    In lightbox.css - using this:

    Code:
    #outerImageContainer{
    	position: relative;
    	background-color: #fff;
    	width: 250px;
    	height: 250px;
    	margin: -50px auto 0 auto;
    	}
    instead of the default:

    Code:
    #outerImageContainer{
    	position: relative;
    	background-color: #fff;
    	width: 250px;
    	height: 250px;
    	margin: 0 auto;
    	}
    Will raise the image container 50px on the page. As to your second question, the only way I can think of is to make sure that your page is taller than the tallest image.
    - 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
  •