How to stop line break after span element?
-
I have a simple HTML page where I am trying to display multiple span elements on the same line but it doesn’t seem possible for some reason.
Here is my code.
<div style=”display:inline-block;”>
<span style=”white-space:nowrap”>paragraph.</span>
<span style=”white-space:nowrap”>paragraph.</span>
<span style=”white-space:nowrap”>paragraph.</span>
</div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to stop line break after span element?’ is closed to new replies.