How can I stop children of a flexbox overflowing the container?
- I do not want the overflow set to hidden.
- I want both of the children to fit inside the parent.
- No wrapping to next line.
HTML:
<div>
<form>
<input type="text">
<input type="submit">
</form>
</div>
CSS:
div {
background: gold;
width: 120px;
}
form {
display: flex;
}
input[type='text'] {
??
}
input[type='submit'] {
??
}