Is there a way to eliminate the slight gap between two tbody
tags when they are both displayed inline like this?
http://jsfiddle.net/kttss/
Use float instead of inline-block
display. You also have to collapse the borders with border-collapse:collapse
, or use border-spacing: 0
as in @JoeEnos's answer, as well.
table { border-collapse:collapse; }
tbody { float:left; }
Demo
With display: inline-block
, the white-space in the markup (line-breaks, tabs) are collapsed and rendered as a single space. float
s are not affected by this.