How to prevent the text from going to next line? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to prevent the text from going to next line?

I want the text to continue in same line and overflow. Describe the solution with css code. https://code.sololearn.com/WEIdw7wZEc6j/?ref=app Thanks for your answers, done this: https://code.sololearn.com/Wg4TPTieKILI/?ref=app

20th Jul 2020, 12:04 PM
Jagrit Vats
Jagrit Vats - avatar
2 Answers
+ 4
A CSS solution looks like: p { white-space: nowrap; overflow: visible; }
20th Jul 2020, 12:15 PM
JaScript
JaScript - avatar
+ 3
p { white-space: nowrap; }
20th Jul 2020, 12:08 PM
Calviղ
Calviղ - avatar