'bullet ( <ol> ) position goes down after changing line height
I have bullet list:
<ol className="graphkregular mt-2" style={{ display: "listItem" }}>
<li>
<small>{popupData.content[0].split("\n").join("\n")}</small>
</li>
<li className='mt-2'>
<small>{popupData.content[1].split("\n").join("\n")}</small>
</li>
</ol>
after changing line height and display bullets go down:
small {
line-height: 1.4em;
display: inline-block;
}
how to fix this:
Solution 1:[1]
Try removing margin top from ol tag's classname
Solution 2:[2]
Just remove display: inline-block; from small tag.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | S-Men |
| Solution 2 | Amandeep Singh |

