how to autosize image in html code example Example: scale down image css img.resize { width: 540px; /* you can use % */ height: auto; }