I am putting together an unordered list. Each line item contains several elements (<h> tags, <p> tags, etc.) and is separated by a top-border.
By default, the bullet point is not underneath the top-border. To fix this, I assigned list-style-position: inside; to <ul>. However, the content of the list now "wraps" around the bullet point. It would be great to separate the bullet point and the content vertically.
li {
border-top: 1px solid #000000
}
ul.inside {
list-style-position: inside;
}
<ul>
<li>
Item 1
<p> Content does not wrap around bullet point. Great! But border-top is not over the bullet </p>
</li>
<li>
Item 2
</li>
<li>
Item 3
</li>
</ul>
<hr>
<ul class="inside">
<li>
Item 1
<p> Content wraps around the bullet point. Boo! But border-top is over the bullet though! </p>
</li>
<li>
Item 2
</li>
<li>
Item 3
</li>
</ul>
Is there a clean way to do this?