<sup> in underline element
<u>This is some text for Brand Name™ to test the error.</u>
It works. I cannot recreate your mistake.
EDIT Good, my bad, βI replied, not using the <sup> element. If you use a trademark marker (& trade;), itβs better to just use the HTML expression for it, which ™ - use it directly in the text.
As for your question, you really have two options.
CSS
sup { padding-bottom: 4px; border-bottom: 1px solid black; } * You may need to adjust the padding-bottom value depending on the height of your line.
HTML
<u>This is a Brand</u><sup>for a company</sup><u> and then some more text</u>
or, the version of Lollero (changed to work in a line) ...
CSS
div.underline { display: inline; padding-bottom: 1px; border-bottom: 1px solid #222; }
HTML
<div class="underline">what'<sup>s UP</sup></div>
There is no simple solution to this problem (there always seems to be a situation that needs to be fixed).
For me, I preferred to do it this way (works with a wrapper)
HTML:
<span class="u2"> Registered<sup>®</sup> </span> CSS
.u2{ border-bottom:2px solid #666666;display:inline; } sup{ font-size: 40%; display: inline; vertical-align: top; }