I thought it was supposed to be simple.
I would let this code snippet just overflow text with scroll, but it seem I'm missing something obvious.
How can I find a way to overflow text on code snippet if the body is smaller than the text of the pre code?
https://codepen.io/vittoriovittori/pen/XWdMyRP
CSS
div {
border: 1px solid;
}
pre {
background-color: grey;
padding: 10px;
overflow: scroll;
}
code {
background: pink;
}
.grid {
display: grid;
grid-template-columns: 100px auto;
}
HTML
<div class="grid">
<div>
stuff
</div>
<div>
this is a text line
<pre>
<code>
this is a very long text which is used to stress this page and trying to understand why i'm stuck on this problem based on the fact i cannot force overflow text on this basic layout which is supposed to be simple to solve.
</code>
</pre>
</div>
</div>