I would like a read more button to appear when text overflows and to not show if the text doesn't overflow
So far I have the following code to line clamp if it overflows to line 18:
display: -webkit-box;
-webkit-line-clamp: 18;
-webkit-box-orient: vertical;
overflow: hidden;
I've had a thorough search and can only find solutions that toggle show more, show less when a div exceeds a certain length.
However, I would only like the button to show if it exceeds the length: <a href="article.html">Read more</a>