How do i fit image to table td
cell? [Pure HTML]
I have tried below code to fit an image in table td
cell.
HTML code is here :
<table border="1" bordercolor="#aaa" cellspacing="0" cellpadding="0">
<tr>
<td><img width="100%" height="100%" src="http://dummyimage.com/68x68/000/fff" /></td>
</tr>
</table>
As you can see in following screenshot and in JsFiddle DEMO, that image doesn't fit to td
cell.
Shot :
What am i doing wrong ?
Any suggestion would be awesome.
img { display:block; }