Gyrolabs

Random tools to make your life easier

Show Empty Cells in IE

January 2nd, 2007 by admin

IE doesn’t show table cells if they are empty, which can cause a lot of problems. The most obvious fix is to just put <td>&nbsp;</td>, but this isn’t a viable solution if you are generating data from a table or if your site is already created. If you are using IE, below is an example of a table that doesn’t show empty cells:

wefaew
oweifj woeifj

As you can see (if you’re using IE), the cells simply don’t show up and it looks extremely ugly. It looks even worse when using special borders. Here is a simple script that will go through all tables on your page and fill the contents of the empty cells with &nbsp;

Put this script in the <head> of your document to show empty cells in IE:

note: the <!–[if lte IE 7]> line allows this script to run only in IE browsers.

<!--[if lte IE 7]>
  <script type="text/javascript">
   window.onload = function() {
        tds = document.all.tags("td");
        for (x = 0; x < tds.length; x++) {
            if (tds[x].innerHTML == '')
                tds[x].innerHTML = "&nbsp;";
        }
   }
   </script>
<![endif]-->

Posted in Quick Tips |

70 Responses

  1. Emery Maxwell Says:

    wrestler clamb encumber terzo villosity epipsychidion carolean googly
    NorVApics.com
    http://www.alljanitorialsupplies.com

  2. Dale Tanner Says:

    socinianism unparticipating miscorrect unskilfully geissolomataceae dennstaedtia celestitude revamp
    EDMAT 25
    http://www.math.unc.edu/

  3. Online pharmacy U.S.A Says:

    Paxil USA Online Pharmacy US http://OnlinepharmacyUSA.us

  4. vxyic qsulhknfy Says:

    atxws brdvf jabvkzc nrqoc amhnpf xysmlhzg jsceth

  5. John1440 Says:

    Very nice site! cheap viagra

  6. John1440 Says:

    Very nice site! [url=http://opeyixa.com/qoxxyo/2.html]cheap cialis[/url]

  7. John1440 Says:

    Very nice site! cheap cialis http://opeyixa.com/qoxxyo/4.html

  8. John1440 Says:

    Very nice site!

  9. PzJKRBuv Says:

    Hi! yzgjZVyQ

  10. fWnmwA Says:

    Hi! uxqRzJ

  11. Neo Nasty Says:

    Gigi Spice

  12. Club Francesca Says:

    Aamateur Amy

  13. Trixie Teen Says:

    Voyeur Campus

  14. Jesse Capelli Says:

    Dirty Milf Club

  15. Monstrous Melons Says:

    Kayden Love

  16. Sexxxy Jade Says:

    Sexy Jaqui

  17. Cam Teen Says:

    Real Black Anal

  18. Rachel Aziani Says:

    Shai West

  19. Christina Chaos Says:

    Kylies Secret

  20. Want Wow Says:

    Sweet Tiffany

  21. Ambya Says:

    Young Jess

  22. Martina Dreams Says:

    Sofia Rain

  23. Kinky Kate Says:

    Michael Stefano XXX

  24. 18 Years Old Says:

    True Hentai

  25. Cum Loving Petites Says:

    Enslaved Gals

  26. Cassie Kiss Says:

    Wet Lesbian Videos

  27. Boobs Says:

    Download Porn

  28. Lexi Diamon Says:

    Love Danielle

  29. Cute Asian Says:

    Mandy Muff

  30. Porn Cartoon Says:

    Bottom Bang

  31. Big Sophie Says:

    Just Ebony Sex

  32. Becky Black Says:

    I Love Str8 Boyz

  33. Taylor Mathews Says:

    Mia Isabella

  34. Hand Job Auditions Says:

    TS Foxxy

  35. Gay Groupsex Videos Says:

    Gay Ebony Dating

  36. Only Breast Says:

    Shemale Schlongs

  37. Oooowee Says:

    Interracial Titan

  38. True Tere Says:

    Angie XXX

  39. Knight Patrol Says:

    Got Bare Back

  40. Bitches N Hose Says:

    Bootylicious Mag

  41. Free Hardcore Says:

    Dolly Morgan

  42. Asia Carrera Says:

    Christoph Clark Online

  43. Sugar VOD Says:

    Hot Wives Black Guys

  44. Christine Mendoza Says:

    Busty Ines Cudna

  45. Granny Gumjobs Says:

    Porn Shemale Movies

  46. Fun Brunettes Says:

    Meat My Ass

  47. Smoking Mina Says:

    Smoking Videos

  48. My XXX Pass Says:

    GFS Movies

  49. Jessie Coxxx Says:

    Fuck Mature

  50. The Big Swallow Says:

    Solo Slut Pass

  51. Tori Black Says:

    Ray Veness

  52. Busty Adventures Says:

    Ariel Jordan

  53. Shemale Fuckfest Says:

    Lexxi Tyler

  54. Melody Spring Says:

    Dating Cheating Wives

  55. Brooke Skye Says:

    Girlfriends Fucking

  56. Fat Dicks In Chicks Says:

    A Rim With A View

  57. Big Cock Bangers Says:

    Stuffed Petite

  58. Gay Military Dating Says:

    Teen Cum Dumpsters

  59. Masturbation Instructors Says:

    Plumper Pass

  60. Mall Teen Says:

    Pantie Land

  61. Ashley Adore Says:

    Chubby Cheaters

  62. BBW Vault Says:

    Ultimate Fantasy Girls

  63. Fun With Amber Says:

    Sophie Cocks

  64. Aaliyah Love Says:

    Naughty Asian Nymphos

  65. Dean Phoenix Says:

    Eva Luxuria

  66. Asian Man Says:

    Catalina Cruz

  67. Evil Angel Live Says:

    Naughty America VIP

  68. Box Of Smut Says:

    Little Liana

  69. Magnus Muscle Says:

    Bella XoXo

  70. Korri Angel Says:

    Extreme Alex

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.