Is there a way to line up the bullets with the left margin of the text above the list? Here's an example:
<html>
<style>
ul.p1 {padding-left: 40px}
ul.p2 {padding-left: 0px}
</style>
<body>
<h2>List A</h2>
<ul class="p1">
<li>
<p>
Item 1.1
</p>
<p>
Item 1.2
</p>
</li>
</ul>
<h2>List B</h2>
<ul class="p2">
<li>
<p>
Item 2.1
</p>
<p>
Item 2.2
</p>
</li>
</ul>
</body>
</html>
When viewed in Google Chrome, the following result is displayed:
https://i.sstatic.net/qWryh.png
It is worth noting that the bullets are no longer visible in List B. My goal is to perfectly align the bullets with the "L" in the <h2>
element directly preceding the list. Is there a method to achieve this alignment without resorting to trial and error?