Maintaining Margin (or paragraph spacing) in Dynamically Filled Text Boxes?

tecocat Community Member Posts: 416 ✶ Headliner ✶
I have a text box on my quiz question pages that is used to dynamically provide feedback (via actions that stores the feedback text in a variable and then changes the contents of the text box to whatever text is stored in that variable). I've formatted the text box to have a margin (so that the text doesn't bump right up against the border I have on the text box), which looks fine with the "placeholder" text that I put it in. However, when the text changes to the dynamic text, it no longer honors the margin. I also tried adding a bit of paragraph spacing to the top (to at least keep it from bumping up against the top border line), but, again, when the dynamic text comes in, it's not respecting that setting either.

Is there anything I can do to fix this, short of adding some kind of CSS thing or something? (I'm not conversant enough with CSS/HTML/Javascript coding to fix the problem that way.) I don't remember having this problem with previous versions, but I may have, but in previous versions, I used a background color for the text box instead of a border, so it may have been less noticeable. But I just don't understand why the dynamically set text won't "obey" the text box settings (other than font size, style, and justification, which it does seem to maintain from how I set the "placeholder" text, thank goodness!).