1

I have a jpg photo that size is 1920 px width but I want to responsive this width.

HTML

<html>
   <head>
      <title>image</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   </head>
   <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
      <!-- Save for Web Slices (image.jpg) --> 
      <table id="Table_01" style="width:50%" border="0" cellpadding="0" cellspacing="0">
         <tr>
            <td colspan="17"> <img src="images/image_01.jpg" width="1920" height="29" alt=""></td>
            <td> 
         </tr>
         <tr> <img src="images/spacer.gif" width="1" height="45" alt=""></td> </tr>
      </table>
      <!-- End Save for Web Slices --> 
   </body>
</html>

How can I do this?

enter image description here

Hunter Turner
  • 6,804
  • 11
  • 41
  • 56
Md Hannan
  • 11
  • 1

2 Answers2

3

You could use % to make the image responsive instead of px.

For eg,u can use 50% width to make the image half the size of the page. (width=50% ,instead of width=___px) <img src="source.jpeg" width="50%" height="75%">

Gokul
  • 88
  • 6
0

An alternate solution is to change the width in the css file.

class-name-of-image.img{ width=50%; height=75%; }

Gokul
  • 88
  • 6