I have the following css:
#app {
display: flex;
flex-direction: row;
align-items: center;
gap: 10px;
padding: 20px;
margin: 20px auto 20px auto;
max-height: 400px;
max-width: 400px;
overflow-y: scroll;
}
.result {
font-weight: 300;
width: 400px;
padding: 20px;
text-align: center;
background: #eceef0;
border-radius: 10px;
}
With this CSS I create the following:
This is scrolls from left to right. The issue I'm having is that I can't enlarge the individual width of .result. The max-width of the parent is 500px which would be the parent window and I'd like the child element to be 400px but it doesn't work. It appears that the flex some how limits it. Here is a code pen.