I have been using this code to display the most recent user comments on my website, where some comments are concise while others are more lengthy.
If you inspect the source code, you will notice that the height is set to 90px and overflow is set to hidden:
#sidebar li { height: 90px; overflow: hidden; }
Now I am attempting to display the entire text here by changing the overflow attribute to visible.
However, because the height is fixed at 90px, longer comments end up overlapping previous entries - causing the last line of a long comment to appear on top of the preceding entry.
This issue only occurs in Internet Explorer; Chrome automatically adjusts the height accordingly. One option could be to increase the height from 90px to 130px, but this solution is not ideal as it would leave excessive blank space for single-line comments and still may not accommodate very long comments within the 130px limit.
Changing the height attribute to "auto" is not feasible as it is required for the scrolling effect script.
Is there a way to resolve this problem specifically in IE? Thank you.