So I have a template which I populate using PHP variables like so:
<p>'.$myVar.'</p>
Works perfectly except for that the var containing a string for some reason moves outside of the parent div. If I replace the variable with static text like so
<p>A lot of nice text etc. etc.</p>
this does not happen. I’m pretty sure this is not a CSS issue.
EDIT
The content of the var is:
$myVar = 'AFDKAAGKAGGAMAGKGASKGASKLNANÖLASDNASFDNAFSDNÖADSNLNLKFDSNKAFDSNKFASDLNÖAFSÖNLAFSLNÖKAFSDLNÖAFSDNÖLKSFADÖKNLDFSAÖNKLANKLFSADNÖFASDLNÖKFSNLÖKAFLNÖKFADSKLNÖFADSKLNÖFDSALKNÖFSDANLNLÖKNÖK';
If it’s only one word, the HTML renderer won’t be able to cut your text into multiple line. You will end up with an overflow. Force the word wrap: