Archive for November 3rd, 2014

I have been spending more than a hour trying to find out why a :hover selector on a <span> wasn’t working in Internet Explorer 8 – many documents on the Web are clearly stating that it works. In the end, it was the W3Schools.com website that came to the rescue, in the form of a note:

Note: In IE there must be declared a for the :hover selector to work on other elements than the element.

CSS Selectors explained at W3Schools.com

CSS Selectors explained at W3Schools.com

You had better make sure that the DOCTYPE is indeed declaration is indeed on the first line in your HTML… and then everything works smoothy, as far as I can tell. Whew.

PS. No, I will not try to explain why I still have to build code that has to work in IE8, and not in a somewhat more recent version…

Read Full Post »