Results 1 to 2 of 2

Thread: Tables are not displaying correctly in IE

  1. #1
    Join Date
    May 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tables are not displaying correctly in IE

    I have a slight problem. My table on this page http://www.saint-bernard.com/betasite/athletics is not displaying the borders for the boxes that do not have any content in IE6+. It seems to work fine on any other browser except IE6+.

    Any Suggestions?

  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

    There is a style for that:

    http://www.blooberry.com/indexdot/cs.../emptycell.htm

    According to that specification, you could put this in the head (or put its rule in your external stylesheet):

    Code:
    <style type="text/css">
    td {
    empty-cells: show;
    }
    </style>
    However, in testing here, it doesn't seem to work (in IE) for a standard HTML table. That may be due to lack of support for it in IE though, depending upon your DOCTYPE and other considerations it may be all you need.

    Another thing you can do is insert a non-breaking space character entity into each empty cell:

    HTML Code:
    <td>&nbsp;</td>
    This will force them to render as though they did have content.

    That does work in IE.
    - 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
  •