I have a codepen here - https://codepen.io/anon/pen/ePWJGE
Is it possible to have an element with max-width and have the other elements take up the remaining space.
In the second container in my codepen I would like the grey bar to have a max-width of 300px and the remaining elements to be spaced evenly in the remianing space.
.container{
border: 1px solid lightgrey;
max-width: 900px;
}
.row{
display: flex;
justify-content: space-between;
//flex-wrap:wrap;
}
.row-item{
padding: 10px 5px;
border-left: 1px solid grey;
}
.row:nth-child(even){
background: lightgrey;
}
.mobile-nav{
display: none;
}
.row-item-bar{
flex-grow: 1;
}
.bar{
background: lightgrey;
height: 20px;
max-width: 300px;
}
@media(max-width: 500px){
.row{
display: block;
}
.sc-left{
float: left;
}
.sc-right{
float: right;
}
.row-item{
border-bottom: 1px solid grey;
}
.mobile-nav{
display: inline-block;
}
}