SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Aug 2000
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've added a border consisting of images using the <td background=image.gif> format which I understand is not supported in NS. Are there any other methods of adding an expandable border using images (e.g. corners, sides, tabs, etc.) which will be displayed in both NS and IE?

    Thanks,
    Chad Sandstedt

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    WA
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Chad, that is supported by NS 4.x and later. NS requires that there be some actual content in the cell besides the background image. Something like a non-breaking space or a spacer gif for instance.

    Here's a really nice reference for creting expanding bordered tables.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2000
    Location
    Buffalo, NY 14226
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to make sure you have the following:

    - For any corner image (ie, curve at the top left), a "holder" that is put in the foreground of the cell that is as high as the BG image and as wide as it.
    - For any border, the same pic as above will work.

    So, let's say you've got a table that's lined with a 5 pixel wide graphic border, and the top and bottom are 5 pixels tall, make one transparent GIF that's 5x5 and put it in all the border cells.

    Also, it's a good idea to set the width of the table. You can "trick" a browser by setting the table width to 100% and then not specify a width in your content cells but specify it in your border cells. It's a pretty nifty way to do it

    Hope this helps!
    Hatton

  4. #4
    SitePoint Member
    Join Date
    Aug 2000
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the great answers.

    Regards,
    Chad


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
  •