[TASK] Replace CSS3 for nowrap combination

The nowrap combinations are using display table/table-cell/flex to get rid of generating CSS on the fly.

This patch replaces it with a better structure without introducing the CSS generation again.