Код: Выделить всё
nav {
display: grid;
grid-template-columns: 1fr auto 1fr;
/* grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr); */
background: green;
align-items: center;
overflow: hidden;
}
.box {
box-sizing: border-box;
overflow: hidden;
}
.scroll-container {
position: relative;
}
ul {
display: flex;
border: 1px solid black;
border-radius: 4px;
list-style: none;
padding: 0;
overflow-x: auto;
position: relative;
li {
padding: 8px 16px;
white-space: nowrap;
&:not(:last-child) {
border-inline-end: 1px solid black;
}
}
}
.edge {
padding: 8px;
white-space: nowrap;
}
.right {
justify-self: end;
}< /code>
Super Cool App
[list]
[*]First Link Item
[*]Second Link Item
[*]Third Link Item
[*]Fourth Link Item
[*]Fifth Link Item
[*]Sixth Link Item
[*]Seventh Link Item
[*]Eighth Link Item
[*]Ninth Link Item
[*]Tenth Link Item
[/list]
X
< /code>
< /div>
< /div>
< /p>
grid-template-columns: 1fr auto 1fr;
Подробнее здесь: https://stackoverflow.com/questions/795 ... ual-minimu