While working with ASP.NET, I am faced with the challenge of creating a ListBox
where text in each option wraps to the next line if it exceeds the listbox's width, using only CSS.
In Chrome, this can be achieved by utilizing the CSS property word-wrap: break-word
. However, this solution does not work for IE11.
I have explored different alternatives for similar issues, involving a combination of properties like:
-ms-word-wrap: break-word;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
width: 100%;
Unfortunately, none of these options have proven effective for me.
Could it be that I am overlooking something? Or is it possible that IE11 lacks support for this feature, requiring an external plugin as a workaround?