I have some source code in <pre>
tags which I would like to scroll when the browser window is resized. The pre tags are contained in a flex box, with the containing div set to flex: 1.
How can I make the code scroll horizontally?
<div style="display: flex;">
<div style="flex: 1;">
<div style="max-width: 100%; overflow-x: auto; min-width: 0;">
<pre>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
</pre>
</div>
</div>
</div>