I have a collection of email addresses and names displayed in rows. My goal is to maximize the amount of content shown. For short names, more of the email address should be visible, while for shorter email addresses, more of the name should be shown. If both the name and email are lengthy, I want them to occupy an equal portion of space. Additionally, any long truncated items should end with an ellipsis.
Is there a way to meet these requirements without using JavaScript? While I would prefer not to use flexbox layouts due to limited browser support, I am open to exploring this option. Keep in mind that everything must remain on a single line without wrapping.
------------- -------------------------------------
| This is a long name...| This is a long email... |
------------- -------------------------------------
|<------------------100% width ------------------>|
<div class='result'>
<div class='textHolder'>
<h3>Name</h3>
<h4>Email</h4>
</div>
</div>