vendredi 23 février 2018

HTML/CSS overflow ellipses with lists

I have a big block of text including a list <li> </li> that I'd like to hide in ellipses overflow. However, I realize that when the <li> element is nested in a <span> for which I've added the overflow and ellipses properties to, it won't apply to the <li> element! i.e., the list will not be hidden within the ellipses as overflow, it still gets displayed.

What is a workaround here?




Aucun commentaire:

Enregistrer un commentaire