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.

Bookmark this post: technorati CSS equivalent of cellspacing="0" delicious CSS equivalent of cellspacing="0" stumbleupon CSS equivalent of cellspacing="0" digg CSS equivalent of cellspacing="0" facebook CSS equivalent of cellspacing="0" yahoo CSS equivalent of cellspacing="0" google CSS equivalent of cellspacing="0" magnolia CSS equivalent of cellspacing="0" reddit CSS equivalent of cellspacing="0" windowslive CSS equivalent of cellspacing="0"

Tags: , , , ,

Related posts

1 Response to “CSS equivalent of cellspacing="0"”


  1. 1 dhkelley

    I benefit! Have been wondering about that one for years. Thanks.

Leave a Reply




/kapil/blog is Digg proof thanks to caching by WP Super Cache!