Building Technical Documentation Page using css grid

here is my codepen, the issue I am facing now is that even I set the left div and the right div’s ratio as 1fr 6fr, the right div still does not wrap up 100% of the text I keyed in.

(see the scroll bar I highlighted in red)

So I have to manually scroll to the right in order to see the right side content.

Is there anyway to fix this using CSS grid property??

Don’t use <xmp> it’s obsolete. Change it to <code> or <pre>.

1 Like