0
How do i wrap all text in a single line in HTML ?
4 Respostas
+ 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>
+ 5
With your code, you can do:
div{
display:inline;
}
+ 2
#suffix, #time {
display: inline;
}
0
see my code above ^