tags:

views:

35

answers:

1

What should i keep table { border-collapse: separate; } or table { border-collapse: collapse; } in my css.

which would be better in which condition?

+1  A: 

It depends on what you want. They are different ways to render a table with different visual results. Check out this article for an illustration.

separate is the default.

Support for some border-collapse settings is incomplete in IE. See the brilliant compatibility table

Pekka
why eric meyer added `{ border-collapse: collapse; }` in his CSS reset? What's the purpose?
metal-gear-solid
Half the point of a reset is to set all the spacing to 0, you couldn't do that if you left the spacing between table cells.
David Dorward
and is `cellspacing="0"` and `{ border-collapse: collapse; }` same thing?
metal-gear-solid
@Pekka- BTW+1 article is very useful. gave me the new idea for table design.
metal-gear-solid