Since in cases like these, people will just want to click the link and not read it, you could simply use overflow: hidden on the direct container, i.e. the lis of that list.
And you could also add text-overflow: ellipsis; to make clear that the link is longer than what is visible on the screen:
2
Answers
try using the overflow-wrap property to break the string enabling it to wrap onto a new line.
Since in cases like these, people will just want to click the link and not read it, you could simply use
overflow: hidden
on the direct container, i.e. theli
s of that list.And you could also add
text-overflow: ellipsis;
to make clear that the link is longer than what is visible on the screen: