How to not wrap contents of a div? by Tarik Try white-space: nowrap; Documentation: https://developer.mozilla.org/docs/Web/CSS/white-space