i have this code that pulls text from text file and displays it in pre-code block, the problem is that i’m only able to scroll the entire page (with body overflow enabled) but i cant scroll div itself, even if i force display of scrollbar it stays unactive. What is my mistake here?
<body style="overflow:hidden">
<div style="margin: 0;padding: 0; height:100%; width: 100%; border: none; overflow: auto;">
<pre style="margin: 0;padding: 0; border: none; overflow: auto;">
<code> <?php echo $content?> </code>
</pre>
</div>
</body>
i’ve tried changing width/height to all available values, and overflow settings too