By default, there is some space between the borders of adjacent table cells, because the default border modal for the HTML tables is separated. But, you can overwrite this and create a table with collapsed border without any cellspacing by simply setting the CSS border-collapse property value for the <table> element to collapse, as shown in the example below:
Use the CSS
border-collapse
propertyBy default, there is some space between the borders of adjacent table cells, because the default border modal for the HTML tables is separated. But, you can overwrite this and create a table with collapsed border without any cellspacing by simply setting the CSS
need an explanation for this answer? contact us directly to get an explanation for this answerborder-collapse
property value for the<table>
element tocollapse
, as shown in the example below: