0

How do i wrap all text in a single line in HTML ?

https://code.sololearn.com/W2d57jISPnzt/?ref=app

25th Jun 2018, 10:25 AM
GodSpeed
GodSpeed - avatar
4 Réponses
+ 2
you are using block element, which print text in new lines.so use in-line elements <!DOCTYPE html> <html> <head> <title>Count Up Timer</title> </head> <body onload ="setInterval(increase,1000)"> <div> The timer is now on its </div> <span id ="time"> </span> <span id="suffix"></span> lap </body> </html>
25th Jun 2018, 10:34 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 5
With your code, you can do: div{ display:inline; }
25th Jun 2018, 10:28 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
#suffix, #time { display: inline; }
25th Jun 2018, 10:35 AM
Calviղ
Calviղ - avatar
0
see my code above ^
25th Jun 2018, 10:25 AM
GodSpeed
GodSpeed - avatar