<!DOCTYPE html>
<html>
<head>
<style>
.grid-container {
display: grid;
grid-template-columns: minmax(min-content, 350px) minmax(150px, 1fr) 120px;
grid-gap: 5px;
height: 150px;
background-color: green;
padding: 10px;
}
.grid-container > div {
background-color: beige;
padding: 5px;
}
</style>
</head>
<body>
<h1>The minmax() Function</h1>
<div class="grid-container">
<div>Column as wide as the content, but maximum 350 pixels.</div>
<div>Colum with flexible width but a minimum of 150 pixels.</div>
<div>Column width: 120 pixels.</div>
</div>
</body>
</html>