Jay Arjun
Jay Arjun

Reputation: 1

Ul li style-type:decimal is not working in IE7?

While using style-type:decimal in ul li, the IE7 browser takes up to 9 numbers, after that it start with 0 not 10. What is the solution for this problem?

Upvotes: 0

Views: 433

Answers (2)

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201608

The property name is list-style-type, but I suppose that’s what you have, if you get numbers and not bullets for a ul in the first place.

The numbers are probably truncated on the left, because there is not enough room for more than one digit on the left of the item contents. This depends on the left margin and left padding of the ul and li elements (in a browser-dependent manner), so you have probably set them in CSS, and you now have to modify those settings to allow more room.

Upvotes: 0

nirazul
nirazul

Reputation: 3955

ul means 'unordered list'
ol means 'ordered list'

OL is what you try to achieve. So change your ul-Tag to ol:

<ol>
    <li>test</li>
</ol>

See here: Fiddle

Take care with css-resets. Some will overwrite the ol list-style.

Upvotes: 1

Related Questions