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