I am currently utilizing the br
tag to insert line breaks in my website's faq
section. Although the output is accurate, I'm exploring alternatives like implementing linebreak
through CSS to enhance responsiveness. During my research, I came across the pseudo
element but didn't find a clear representation of it.
.faqfirstsec {
margin: 0 0 0 70px;
background: lightgrey;
height: 100%;
}
font.faqtitle {
font-weight: bold;
}
font.faqques {
color: red;
}
<div class="faqfirstsec">
<font class="faqtitle" weight="bold">TITLE</font><br><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<font class="faqques">QUESTION 1</font><br><br>
<font class="faqans">ANSWER 1<br> ANSWER 1。</font><br><br><br><br><br>
<font class="faqques">QUESTION 2</font><br> ANSWER 2<br><br><br><br>
<font class="faqques">QUESTION 3</font><br> ANSWER 3<br><br>
</div>
I aim to create some spacing between question 1, 2, and onwards. I have been using the font class
tag but unable to apply Margin
. Would switching to DIV
instead of FONT
be more suitable?