DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

Workaround for IE6 Empty-Cells CSS Support

Started by qdideas · 7 months ago

The empty-cells property in css establishes if the browser should or should not create borders around empty cells in tables. Internet Explorer 6 was thought to not support this property. However, if you align the CSS moons in the perfect direction, IE6 actually does recognize the empty-cells p ... Continue reading »

4 comments

  • I feel your pain.

    Unfortunately, this appears to simply collapse borders rather than forcing IE to actually respect the empty-cells style. You can simply remove the empty-cells style and this renders the same. Well, it does for me anyhow.
  • ...or you simply use the old Google trick, set an empty image tag into an empty cell as in
    <img ALT="" height=1 width=1>
    not valid HTML according to W3C, but it is a solid thing that works just as well as the even older "spacer.gif", a small few pixels of a totally transparent image as can be done in Paint Shop Pro....
  • its not a complete solution :)
  • This solution is about as good as you can get. The best alternative (which is better then putting an empty image in the cell which is just really bad code and invalid anyways) is to put a blank space either as a literal blank space or using  . But this way is ideal as you can use CSS to apply it across all tables and table cells with very little code and you don't have to clutter up your HTML with unnecessary code or characters.

    This solution can be considered complete and corporate ready.

Add New Comment

Returning? Login