Menu

#1 Banner ad Table Size off by one.

open-later
None
3
2000-06-29
2000-06-28
No

This was posted under slashcode, but I think it belongs here after I looked into it, so I'm handing it off here.

Original Submission:
The table cell size of the ad image is 468x60. That's the size of the ad image, but the table cell needs to also
account for the border around the image (unless border=0 is used in the <img> tag). Browsers that obey the
table cell size specification will end up with the image edging out of the cell. This results in some slight
glitching when that part of the image is scrolled out and back in (the background slices off the edge of the
image) then the image animation rewrites it (covers back over the background off the edge). It's not
something that can be screen captured since it isn't static. It is seen in the HTML on slashdot.org and
slashcode.com.

IWSTM the easies fix is to use border=0 in the <img> tag. Another solution is to use percentages for the table
cell size (since you can never really know for sure just how much extra is needed on different browsers).

Discussion

  • Kurt Gray

    Kurt Gray - 2000-06-29
    • priority: 5 --> 3
    • assigned_to: nobody --> kucht
    • status: open --> open-later
     
  • Kurt Gray

    Kurt Gray - 2000-06-29

    I'll make TD WIDTH =(IMG WIDTH+4)

    ..and the only reason I put the ad block in a table is to workaround the javascript document.write() bug in Netscape 3 (for the 6 people on earth whole still use NS3.

     

Log in to post a comment.

MongoDB Logo MongoDB