How to have two items on opposite sides on the same line

Use flexbox, like this

#HASH {
  display: flex;
  justify-content: space-between;
}

P.S.: If the “MESSAGE HERE” content is supposed to expand across multiple lines, I would put it in a div (instead of span) and restrict its width to 50% (adjust value as you like).

#HASH {
  display: flex;
  justify-content: space-between;
}
<div id="HASH" class="blue-msg">
<span id="time-HASH" class="smalltext">9 months 2 weeks ago</span>
<span class="ios-circle">MESSAGE HERE</span>
</div>

Leave a Comment