Hhhdx
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Two Images in a Row</title>
<style>
/* Container for the images */
.image-row {
display: flex;
justify-content: space-between; /* Ensures space between the images */
gap: 10px; /* Adds space between the images */
}
.image-container {
width: 48%; /* Ensures each image takes up half the width with some space between them */
overflow: hidden;
border-radius: 8px; /* Optional: adds rounded corners */
}
.image-container img {
width: 100%; /* Makes images responsive, filling container width */
height: auto; /* Maintains the aspect ratio */
object-fit: cover; /* Ensures the image fills the container without distortion */
}
</style>
</head>
<body>
<!-- Image Row Section -->
<div class="image-row">
<!-- First Image -->
<div class="image-container">
<img src="https://via.placeholder.com/600x400" alt="Image 1">
</div>
<!-- Second Image -->
<div class="image-container">
<img src="https://via.placeholder.com/600x400" alt="Image 2">
</div>
</div>
</body>
</html>