<ul><li style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:20px">Add your text here to test</li></ul>
string strText = "Pakistan is my Country"; if (strText.Length > 10) { string abcText = strText.Substring(0, 8) + ".."; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)