Skip to content Skip to sidebar Skip to footer

Ordered List (and Ie)

My list ordering appears fine in chrome and FF, but not in IE (all appear as 1's). I'm not even sure where to begin regarding what's going on. I spent a little time on a google sea

Solution 1:

Whenever a page doesn't render as I expect, the first thing that I do is run it through the w3c markup validation service.

The following page highlights a number of errors with your HTML:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.technion.ac.il%2F%7Ebalazs%2Fhtms%2Ftops1.3.htm&charset=%28detect+automatically%29&doctype=Inline&group=0

Fix those up and all should be rosy!

Solution 2:

You need to use the li element for lists. Any other tags are not allowed and will not validate. You seems to be using some sort of WYSISYG program or CMS that's wrapping each li in a span that gives them a black font color and a slightly larger size.

<ol><spanstyle="font-size: larger; color: rgb(0, 0, 0);"><li>Login and open the program</li></span><oltype="a"><li>Sign the logbook (name and phone number)</li>
    ...

The reason why in Firefox and Chrome it works is because they're slightly more forgiving.


And will you now excuse me while I rinse the residue image of Comic Sans from my eyes?

Post a Comment for "Ordered List (and Ie)"