Here is a small example I created (https://jsfiddle.net/c58oknmf/). I was able to find the line that was causing the issue (the padding value on table-data tags), but don't know why it is behaving like that. And also I still can't use paddings, and the 'cellpadding' attribute will not do it, as I only want horizontal paddings on my cells.
The CSS line causing the problem is the first property there is, removing it will fix the problem.