I have an HTML element that contains a list of synonyms. I only want the first 5 synonyms to be displayed.
In the example shown below, can I use CSS to hide everything after and including the 5th comma for each element with the "synonyms" class?
Example:
<div class="synonyms"> talkative, garrulous, voluble, over-talkative, long-winded, wordy, verbose </div>