I recently adjusted the font size of the bullets in my list by wrapping the li
text in a span
element and setting a smaller font size for the li
. However, this caused an issue with the vertical alignment of the bullets in relation to the text. Can anyone suggest a solution to fix this problem?
Here is the link to the jsFiddle example: http://jsfiddle.net/tXzcA/
li {
font-size: 15px;
}
li span {
font-size: 25px;
}
<ul>
<li><span>text1</span></li>
<li><span>text2</span></li>
<li><span>text3</span></li>
<li><span>text4</span></li>
</ul>