<li>test<br />test</li>
<li>test</li>
<li>test</li>
<li>test</li>
<li>test</li>
How do I make the second line inside the first <li>
to align with the first line?
I can't believe I'm asking this very basic question.
Your example omits the open/close ul
tags. With those, I would usually use a p
to force a new line, but br
works -- either would be aligned.
A followup comment asks for "no bullets". That is answered in Need an unordered list without any bullets
Try this combination of CSS rules:
text-indent: -1em;
padding-left: 1em;
li {
text-indent: -1em;
padding-left: 1em;
}
<li>test
<br />test</li>
<li>test</li>
<li>test</li>
<li>test</li>
<li>test</li>
to aline with the first line
if you need them in same line? – Ghostff Feb 24 '15 at 01:13
` ? – Stickers Feb 24 '15 at 01:21