I want to display text inside a fixed size div if the text size is larger, the more text should be indicated by dots.
Example
if the number of text can be displayed inside the div is 10, then
the text "Australia" should be displayed as "Australia" the text "United States of America" should be displayed as "United Sta ..."
source share