how to protect text to go new line in css code example Example: stop text from wrapping div { white-space: nowrap; overflow: hidden; }