DISQUS

Tech-Recipes: Workaround for IE6 Empty-Cells CSS Support

  • anon · 11 months ago
    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.
  • Rudolf · 10 months ago
    ...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....
  • Viktor · 6 months ago
    its not a complete solution :)
  • stymiee · 6 months ago
    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.
  • Neocompo · 3 months ago
    Works perfectly well. Thank you for this hint.
  • bibiainikkara · 1 month ago
    thanks 4 da advice