Wednesday, November 3, 2010

IE8 bug causing first list item to be too high

I had an unordered list where the first list item was too high in IE8. At first i thought it was one of the many javascripts, then i thought it was something to do with IE8's rendering of lists, but when i stripped the HTML it turned out it was an anchor link on the top of the page.

It's a known bug ( The referenced site states no workaround, but not using a self-closing tag seems like a good workaround me, for example:

<a name="top"></a>

No comments: