I'm having a challenge with hanging indents and linebreaks. the essential effect I want is:
Q: Question
A: Answer
Q: Question
A: Answer
For each question and answer, I want a hanging indent:
p.hang { margin-left: 1in; text-indent: -0.25in }
That way if a question or answer wraps to the next line, it will not go to the left margin but line up under Question or Answer. It's working ok for the Q: part but not A.
To keep the Q & A as one block, I'm using <br /> instead of </p> so there's no gap. I've tried defining
ans { position: relative; margin-left: X }
X has been some negative number using px, pt or inches
and using it as a span on the answer portion but to no avail.
Here's the full code of a typical block right now:
<p class="hang">
Q: Should I have a baby after 35?<br />
<span class="ans">A: No, 35 children is enough.</span>
</p>
Is there any way around this? Whoever devised this original premise of a blank line between paragraphs should be shot.