I have a <p> tag to display some information but it should be restricted to 2 lines and if the text is greater then it should show "..." at end. I tried many solutions but i am not able to get exactly what i am looking for. i have tried below css.
.mw { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 20px; max-height: 40px; width:100px; border:1px solid #ccc; } but i am getting three different outputs for three different text in <p>.
TestingTestingTestingTestingTestingTesting


