CSS: align two element, to the left and right in the same line WHITHOUT floats

You can use some flexbox magic:

h1 {
  display: flex;
  justify-content: space-between;
}
<h1>
  <span>Align me left</span>
  <a href="">align me right</a>
</h1>

Leave a Comment