My goal is to display the user's name and email within an option of a select box:
<option>Adda <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="caabaeaeab8aafb2aba7baa6">[email protected]</a></option>
The problem I am encountering is that some names are too long and make the options look awkward.
I attempted to use a <span>
with a style property inside the option, but it did not work as expected.
Could someone advise me on how to properly layout the name
and email
so they appear on separate sides without touching each other?