A while back a friend of mine were working on a project together. He used tables heavily for layout design and I used a good mix between styles and tables to manage layout. We had to work together which means we had to meet each other in the middle. We came upon the problem of converting HTML's table attributes CellPadding and CellSpacing into CSS attributes. Below is the equivalents of cellspacing="0" and cellpadding="0" respectively in CSS.
table { border-spacing: 0; }I hope this helps others. I still have not perfected this. But I hope I am getting closer
table { border-collapse: collapse; }
No comments:
Post a Comment