Results 1 to 2 of 2

Thread: Lightbox top padding problem

  1. #1
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Lightbox top padding problem

    1) Script Title: Lightbox Image Viewer 2.03

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

    3) Describe problem:

    Basically I just want to lose all the top padding so the image is on the most uppermost part of the page, so all the black part that underlays the lightbox itself is on the left+right and bottom.. but I don't know what part of the .js or .css file to edit, any help would be much appreciated. !

    Thanks in advance.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,994
    Thanks
    43
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    In lightbox.css at the beginning of the file, add the highlighted:

    Code:
    #lightbox{
    	position: absolute;
    	left: 0;
    	top: 0!important;
    	width: 100%;
    	z-index: 100;
    	text-align: center;
    	line-height: 0;
    	}
    - 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
  •