[Solved] How to truncate a list item [closed]
It’s certainly possible to achieve this with a combination of CSS and JavaScript. What you want to do is limit the number of items displayed, and then check which elements should be truncated to ellipsis with modulo. This can be seen in the following example which uses jQuery: $(document).ready(function() { var maxToShow = 3; // … Read more