css flexbox auto width code example Example: flex make width dynamic .display-flex-div .dynamic-width { flex: 1; }