I have a tag. The maximum number of lines for output must be 3. Width, let's say 250 px. So, is there any way to cut characters that already increase the level of 3 lines using php or js / jquery? Or a single option, count the number of characters that fit into these 3 lines, and cut off all the rest?
h3{ width:250px; } <h3>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores accusantium aut impedit mollitia repudiandae soluta minima, sit veniam tempora nesciunt magnam laborum, cupiditate eius, animi ex vel incidunt ratione reprehenderit.</h3>