How to apply border to tables in Internet Explorer

August 9, 2007 · Posted in css 

IE does not acknowledge borders for the <tr> element. The only way to allow it is to trick IE by creating an illusion that the <td> element is continuous in a given <tr>.

To do that set the value of border-collapse property to collapse for the given table.

eg.
table { border-collapse:collapse; }
td { border-bottom:2px solid #000; }

Comments

Leave a Reply