Forum Moderators: open

Message Too Old, No Replies

Border collapse and cellspacing

Can cellspacing be dropped for CSS' border-collapse?

         

dnimrodx

11:56 am on May 9, 2007 (gmt 0)

10+ Year Member



Hi,

Can HTML's TABLE property CELLSPACING be dropped for CSS' border-collapse or should one adopt both for the sake of browser backward compatibility?

Robin_reala

12:03 pm on May 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can drop it if you want to replace cellspacing="0". In that case you can use border-collapse:collapse in your CSS and set the border-width to 0 on the cells. There is a CSS property called border-spacing which can completely replace the cellspacing attribute, but IE as of yet doesn't support it.