Skip to content Skip to sidebar Skip to footer

Display Elements On Same Line

I have every element aligned up on the same line:
~ $100.34

Solution 1:

A div is a block element. Block elements are oriented vertically rather than inline. You could simply change the div element into a span.

<iclass="fa fa-btc"></i><spanid="counter"></span><spanid="btcvalue"> 
    ~ $100.34 <spanclass="slight"><iclass="fa fa-play fa-rotate-270 text-success"></i> 0.000000690BTC</span></span>

Or you can style the div so that it is displayed on the same line. (e.g. display: inline-block)

If the elements are still not on the same line it could be caused by word wrap. You may need to wrap everything in an additional element and turn of word wrap. (e.g. white-space: nowrap)

Post a Comment for "Display Elements On Same Line"