Skip to main content

Posts

Showing posts with the label IE8

Image links in IE8

While mocking up a design page for a colleague's website I came across a new browser behaviour in IE8. This was the first time I used IE8 as my main development browser, due to the fact that the PC was re-installed and high-priority updates were applied. Surprisingly Microsoft branded IE8 as a priority update. Anyway, back to what I was talking about, here's a sample: <a href="index.htm"><img src="logo2.jpg" alt="Logo" title="Logo" /></a> As you can tell, this is using an image for a link, where it behaves well in Chrome, Firefox and in the previous versions of IE (7 and older). But in IE8, this is not the case as the DOM does not treat the image as innerText, only as a child node. As a result, everytime I hover the mouse over this image, an extra gap would come from nowhere shifting any relatively positioned elements. To fix this I explicitly added a space (&nbsp;), so the line would look like: <a href="inde...

IE8 - 1

Aaargghh! I just hate it. While IE8 is still in Beta, Microsoft still has not addressed the problem that some websites (or applications) appear as a blank page, even though they appear correctly in IE7 and other browsers. Microsoft's excuse is that the engine has be re-written from the ground up. But it's not excusable when those sites are standards compliant. Anyway, at the start they did provide an undocumented feature for IE8 to simulate IE7 to ensure pages render correctly (and show at all). Just add: <equiv="”X-UA-Compatible”" content="”IE="7"> to your page header. Not exactly ideal, but a necessary work around till Microsoft gets its act together.