There seems to be an issue with the underlining border in this example not extending across the entire width of the container. Any suggestions on how to resolve this would be greatly appreciated.
.outer-container {
width: 200px;
overflow: auto;
}
.grid-container {
display: grid;
min-width: 100%;
width: 100%;
grid-template-columns: minmax(200px, 3.5fr) minmax(80px, 1fr);
padding-top: 16px;
padding-bottom: 16px;
}
.grid-underline {
border-top: 2px solid green;
min-width: 100%;
width: 100%;
}
.item {
background-color: pink;
}
<div class="outer-container">
<div class="grid-container">
<div class="item">hello</div>
<div class="item">world</div>
</div>
<div class="grid-underline"></div>
</div>
Check out the JSFiddle example here: