Is it possible to make source code contained within <pre>
tags scroll horizontally when the browser window is resized? The pre tags are placed inside a flex box, with the containing div set to flex: 1.
If so, how can this be achieved?
<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>