Remove spacing between table cells and rows

Are you using table for display any record or for any formatting ? and observe issue similarly like i fetch as space between two cells or rows.


It is even not major issue that is shown in all cases while use Table, but normally it observe when you use image inside Table structure or even use border css for table td than that time its look like odd.

See



Solution for such type of problem is add cellspacing="0" to Table.

In Some Cases like,  for loading purpose you are going to display a big image by cut down it in  small images and than set all small images in Table cell format that time may be you fetch such type of issue.



after adding  cellspacing="0" to table if small gape between two images still present than add display:block to all images.

finally, it look like



Post a Comment

0 Comments