Adjusting the vertical-align property allows you to customize it to your preferences:
div div {
display: inline-block;
border: 1px solid red;
}
div div:last-of-type {
font-size: 0.6em;
vertical-align: 2em;
}
<div>
<div>XYZ</div>
<div>™</div>
</div>
Please note that this response was crafted based on the assumption that the original markup in the question forms part of the site layout and any solution should accommodate it, considering that some issues stem from the initial markup choice:
<div>
<div style="display: inline-block;">XYZ</div>
<div style="font-size:0.6em;display: inline-block;">™</div>
</div>
XYZ™
If you are searching for a general solution to present ™ as superscript, I suggest using the <sup>
element as recommended in mx0's answer. While it may not meet all semantic requirements perfectly, it remains the most effective option available :)