I've encountered an issue with my CSS: I have a dynamic div containing a single line of text that needs to wrap every time the width of the div resizes to a smaller size.
The challenge lies in having the text inside a table, serving as a directory for contacts and similar to paging functionality.
For a clearer view of the problem, refer to the attached images. Additionally, a snippet of the code has been provided below for reference.
Since I lack expertise in CSS, I'm seeking suggestions for a more suitable layout for this particular scenario.
Your assistance would be greatly appreciated. Thank you! :)
<div id="divSearch" style="width:350px">
<p style="word-wrap:break-word;white-space:pre-wrap;">
<table id="tblGlossary">
<tr>
// Table content here
</tr>
</table>
</p>
</div>