<table style="width:100%">
<tr>
<th>Product</th>
<th style="width:30%">Description</th>
<th>Price</th>
</tr>
<tr>
<td><img src="product1.jpg" alt="Product 1"></td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</td>
<td>$19.99</td>
</tr>
<!-- Additional rows go here -->
</table>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.table-container {
background-color: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
tr:hover {
background-color: #f1f1f1;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.