Results 1 to 3 of 3

Thread: Image Thumbnail View: Thumbnail borders

  1. #1
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default Image Thumbnail View: Thumbnail borders

    1) Script Title: Image Thumbnail Viewer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    3) Describe problem: I have been able to control the large images with css, but am having problems with the thumbnails.

    Here's the page I have the script on:
    http://www.thegenesisgroup2000.com/portfolio.html

    There is a 2 pixel border on the left and right and 2 pixels on top and 4 pixels at the bottom.

    I tried using css, but it's still off center and has the border:
    .port { border-bottom:0; margin-top:0px; margin-bottom;0px; }

    Thanks in advance.
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  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

    Nesting tables like that makes the page take longer to load. Your page looks different in different browsers. I couldn't find one that made it look as you describe it (I only checked in 5). FF 2 came closest.

    Anyways, in IE 7 it looked best with each group of thumbs in a horizontal line, but in all others I checked they are each in two columns, I'm not sure yet why this is, but if each td they are in is given the style - say, via a class name:

    Code:
    .port_tds {
    white-space:nowrap;
    padding:2px 6px;
    }
    It should work out (for horizontal lines), then for the images themselves:

    Code:
    .port {
    border:none;
    padding:2px 4px;
    vertical-align:middle;
    }
    That will get rid of the borders, space them out evenly, and center them vertically in the cells. Of course, this is just what looked good to me in the FF developer extension, your taste and results may vary.
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    Thanks!
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

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
  •