-1

I'm trying to achieve the following:

enter image description here

But maintaining a specific div structure/hierarchy/order:

<div>
  <div>
    <h3>TITLE</h3>
    <p>LEGEND</p>
  </div>
  <div>
    <i>BUTTON</i>
  </div>
</div>

Tried with position relative float right and display inline, but to no success.

Here are the attempts: https://jsfiddle.net/xzmf8753/

RASMiranda
  • 371
  • 6
  • 19

1 Answers1

0

<div style="background-color: red; position: relative">
  <div style="position: relative; display: inline;">
    <h3>TITLE</h3>
    <p style="display: inline;">LEGEND</p>
  </div>
  <div style="position: absolute;top: 0;right: 0;">
    <i>BUTTON</i>
  </div>
</div>
Mangesh
  • 365
  • 2
  • 8