Hey there! I have a list of titles in a drop-down menu as strings, for example:
"Bharat Untitled offer #564", "Bharat Untitled offer #563"
The titles are quite long, so we want to display the first eight characters, followed by '...' and then the last 4 characters of each title.
To achieve this, I've applied the following CSS rules:
.title{
max-width: 100px;
min-width: 100px;
overflow: hidden;
text-overflow:ellipsis;
}
With these rules, we get an output like:
Bharat Unt...
However, I'm looking for an output like:
Bharat Untitled...ffer
Do you have any ideas on how to achieve this format? Let me know!