How to stop length of text block from affecting spacing and position of everything around it

What I usually do in situations like yours is start by checking the CSS properties of the text block in question. It sounds like the text block might be unintentionally affecting the modal’s layout due to its dynamic content.
A good place to start is by setting a max-width on your text block. This will prevent it from expanding too much and pushing other elements out of place. You can also try using overflow: hidden; or text-overflow: ellipsis; to manage the text overflow if the content is too long for the allotted space.

1 Like