Seeking assistance with a design challenge, further details are available in the screenshot I've provided.
I am attempting to apply a unique border bottom style to or text, with specific width specifications that do not span the entire word length.
The complexity arises from the fact that the text is centered on the page, and there will be multiple texts of varying lengths that require this special treatment.
I have considered three potential solutions:
1) Implement a border-bottom, but how can I adjust the width for texts of different lengths?
2) Utilize an hr element, however aligning it directly under the word proves challenging when centering the text on the page.
3) Experiment with a :after property, though there remains uncertainty about ensuring the line appears exactly at the start of the word as desired.
Any recommendations on achieving the effect shown in the screenshot attached?
https://i.stack.imgur.com/GOG8M.png
Thank you in advance for your suggestions and valuable insights! Francesco