how to give a dynamic width to a flex container in css code example Example: flex make width dynamic .display-flex-div .dynamic-width { flex: 1; }