There is an unexpected gap between div
and table
elements in Google Chrome.
Tried many solutions including Why is there an unexplainable gap between these inline-block div elements? , but no luck.
Unfortunately I cannot replace table
with div
due to specifics.
Also, zooming in 110% removes the gap.
Please help.
https://jsfiddle.net/bdyju024/
div {
float: left;
width: 18%;
background-color: orange;
}
table {
float: right;
width: 82%;
border-spacing: 0;
}
table td {
background-color: gray;
}
<div>
test
</div>
<table>
<tr><td>test</td></tr>
</table>