html – image on table <TD> – Education Career Blog

html code to make image size are same with table size.
bacause i want to create a newsletter..
and how to set table size in html


add this to your stylesheet

td img{
 display: block;
 width: 100%;
 height: 100%


You set table size using width and height attributes.

<table style="width:200px;height:100px;">

Obviously, you can do that with a CSS class as well.

Leave a Comment