The bullets in IE8 are so small, I tried changing the font-size, but that didn't work. Code:
<ul style="padding:0; margin:0; margin-left:20px;">
<li>item 1</li>
<li>item 2</li>
</ul>
Is there any way to do this without using an image for the bullet?
You could do this in an IE8 conditional comment...
jsFiddle.
In IE7, you could prepend the bullet via JavaScript and style it accordingly.
Internet Explorer doesn't seem to natively support sizing of the bullets from
list-style-type
withfont-size
as Firefox and Chrome appear to. I do not know if this is a known problem or bug.There are workarounds, but sometimes an image is the quickest and more widely supported "fix".
IE8+ does scale the bullets but not for every font size.
My fix is based on the fact the bullets for Verdana are larger than for Arial. I use css to set Verdana for
li
, at the same time I add extra spans aroundli
's contents to keep the original font. Also, as Verdana can makes the lines higher, I may need to use line-height to make up for that, but that depends on the browser.Also I can use bigger font size for
li
to make the bullets even larger, then I'll have to use still smaller line-height.