CSS equivalent of cellspacing="0"

It took me some time to figure out the CSS equivalent of the HTML cellspacing=”0″ property. Following is what worked for me.

<table cellspacing=”0″>

Can be written as

<style>
.myclass {border-collapse: collapse;}
</style>
<table class=”myclass”>

Hope someone benefits from it.


About this entry