<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Three Column Responsive Layout</title>
<style>
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
/* Outer wrapper with left & right borders */
.container {
border-left: 6px solid #333;
border-right: 6px solid #333;
padding: 20px;
}
/* Three columns */
.columns {
display: flex;
gap: 20px;
justify-content: space-between;
flex-wrap: wrap;
}
.column {
flex: 1;
min-width: 250px;
display: flex;
flex-direction: column;
gap: 15px;
}
.column img {
width: 100%;
height: auto;
border-radius: 8px;
display: block;
}
</style>
</head>
<body>
<div class="container">
<div class="columns">
<!-- Column 1 -->
<div class="column">
<img src="https://via.placeholder.com/300x200" alt="Pic 1">
<img src="https://via.placeholder.com/300x200" alt="Pic 2">
</div>
<!-- Column 2 -->
<div class="column">
<img src="https://via.placeholder.com/300x200" alt="Pic 3">
<img src="https://via.placeholder.com/300x200" alt="Pic 4">
</div>
<!-- Column 3 -->
<div class="column">
<img src="https://via.placeholder.com/300x200" alt="Pic 5">
<img src="https://via.placeholder.com/300x200" alt="Pic 6">
</div>
</div>
</div>
</body>
</html>