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