3

I have a table with image inside:

<!DOCTYPE html>
<html>
<head>
<style>
body {
    font-family: TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    table-layout:fixed;
    width:800px;
}
th, td {
    padding: 15px;
    text-align: left;
}
td#tdimg{
    height: 500px;
}
</style>
</head>
<body>

<h2>Styling Tables111</h2>


<table>
  <tr>
    <td colspan="3" id="tdimg"><img src="file://C:\Users\max\AppData\Local\Temp\ec531b56-e9a8-4fa7-bec6-e56a3c90251d.bmp" alt=""></img></td>
  </tr>
  <tr>
    <th>Firstname</th>
    <th>Lastname</th> 
    <th>Age</th>
  </tr>
</table>

</body>
</html>

My table have width:

width:800px;

And my image size: 1500*2200px

How can i crop image by <td> bounds?

Kliver Max
  • 5,107
  • 22
  • 95
  • 148

0 Answers0