homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

IE8 - different display between local file and online

 8:45 pm on May 16, 2010 (gmt 0)

I've never run into this particular browser bug before, so I though it would be good to mention it to the community here. I have a page that's been online for about a month. Someone reported to me that in IE8 one line of text was an incorrect color.

I checked my local file and it looked fine, but when I checked the page online, sure enough instead of being gold, the line was black -- nearly invisible against the background image. Clicking on the Compatibility View icon did fix it. That's small comfort, however.

The problem appears to be deep in the CSS specificity, but after 10 minutes of detective work, I just couldn't be bothered to investigate any further. I slapped a span tag around the line and forced IE8 to use the color I intended.

The HTML and CSS both validate and every other browser (including earlier versions of IE) got the display right.

So I've learned another IE lesson - always proof my work online, not just locally.



 12:27 am on May 17, 2010 (gmt 0)

Just a couple of thoughts...

1) Is it possible that a CSS file hasn't been updated online?
2) Is it possible that a CSS file has been linked with a '\' instead of a '/' in the url (and is therefore being ignored)?

Assuming you aren't doing anything on the page with javascript (or Active X controls) I would not expect rendering to be different offline. I know IE is buggy but that really would be odd.



 12:50 am on May 17, 2010 (gmt 0)

IE8 displays all "intranet sites" in Compatibility View by default - so how were you viewing your file "locally"?

You should go to the Compatibility View Settings page, and untick the option "Display intranet sites in Compatibility View" and see if that makes a difference.


 1:11 am on May 17, 2010 (gmt 0)

Thanks for that idea, encyclo. However, I double-checked and I had un-checked that box long ago - right when IE8 was released, as I remember.

I'm sure the problem does involve some complexity in or around Compatibility View, but honestly, how much IE minutiae can one person bother with?

I am doubly happy for the reminder, however, because I'm about to set up a new laptop and now I'll be sure to make that tweak.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved