I’m trying to use CM inside a CSS grid and it’s giving me problems.
If I put a CM inside an element, and set that element to “width:400px” in CSS then CM conveniently takes on the size of the parent.
But if I set “display: grid” on the parent, then CM grows as wide as the longest line of code, meaning it becomes wider than the width of the parent.
Has anybody else seen this? Have you found a solution? I have tried various combinations of justify and align contents on the grid, and various ways of setting widths and I just can’t get it to stay inside its parent.