This is the basic outline of my code:
<div>
<h6>Heading 6</h6>
<p>- Long paragraph text that needs to wrap to the next line.</p>
</div>
I want to make the render look like this:
Heading 6 - Long paragraph text that needs
to wrap to the next line.
I know that styling the <h6> and <p> with display: inline-block will get them on the same line if the text in <p> is short, but otherwise, the text in <p> won't break to the next line even if I add word-break: break-word.
I tried adding display: flex to the <div>, but this also didn't work.
Thank you in advance!