I've just had a similar problem, and had to use the <div>
inside the <td>
at first (John MacIntyre's solution didn't work for me for various reasons).
Note though that <td><div>...</div></td>
isn't valid placement for a div so instead I'm using a <span>
with display:block;
set. It validates fine now and works.