Display Flex Item Overflow
Published at 2023-05-16  1 min read

sometime we have a flex item overflow the parent width, this note is to prevent that happened

.parent {
    display: flex;
}
.child-1 {
    flex: 1 1 0;
    min-width: 0px;
}
.child-2 {
    width: 99px;
}