I would like to make a question mark icon appear after any <span>
that has text-overflow:ellipsis
and is currently showing the dots. Is there a way to achieve this?
Asked
Active
Viewed 117 times
0

Claudio Bonifazi
- 17
- 6
-
2short answer: no but depending on your html structure we can find workarounds and hacks – Temani Afif Jul 30 '19 at 14:08
-
https://stackoverflow.com/questions/7738117/html-text-overflow-ellipsis-detection You could use jquery? – Nikki Jul 30 '19 at 14:09
-
Is not a good practice check a property in order to change some element. The best way is to use a class to identify which `` will have a question mark icon. – lerichard_v Jul 30 '19 at 16:20
1 Answers
0
You can use a Text overflow string
.overflow-string {
text-overflow: "..?";
}
But it only works on Firefox 9
https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow