I would like to create a grid with 3 columns, I want middle column to have fixed width but be always in center of the grid, meaning that first and last column fills the void but have same size.
this is what I got so far:
.grid {
width: 100%;
height: 100%;
display: grid;
gap: 5;
background-color: lightBlue;
grid-template-columns: auto 50px auto;
}
.grid-item {
border: 1px solid black;
overflow: hidden;
}
<div class="grid">
<div class="grid-item">A</div>
<div class="grid-item">B</div>
<div class="grid-item">CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC</div>
</div>