Please tell me how you can display the button in more detail, so that it would appear when the number of characters in the text exceeds 150. By clicking on the button, the text was revealed further ...

1 answer 1

Actually solved the problem a little differently. I added a script to check the height of the block .. The solution also came up.

<script> if($('.contproduct').height() > 50){ $('.contproduct').height(50); $('.open').addClass('visible'); } $('.open').click(function () { $('.contproduct').addClass('full'); $('.open').removeClass('visible'); $('.close').removeClass('hide'); }); $('.close').click(function () { $('.contproduct').removeClass('full'); $('.open').addClass('visible'); $('.close').addClass('hide'); }); }); </script>