Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove separation between rows in a HTML table?

I have a html table with 3 rows and 1 column. In the top and button row I have images and in the middle row I have div.

Between my rows I see a separation (I see background of my page). I tried to set all padding and margins to zero (for tables, div and images) and I still have this separation. Can anybody, please, help me to solve this problem.

like image 902
Roman Avatar asked Jun 01 '10 13:06

Roman


2 Answers

Try using 'border-collapse':

table {
  border-collapse: collapse;
}
like image 102
gonzohunter Avatar answered Sep 17 '22 15:09

gonzohunter


Set the cellspacing=0 in the <table> tag as well as cellpadding=0.

like image 22
Paul Avatar answered Sep 21 '22 15:09

Paul