the main body link text color works in firefox but doesn't work in IE. any ideas before I throw my computer out the window?

Dani AI

Generated

reported that link color shows correctly in Firefox but not in IE; since and both see the site working, this is most likely a local IE issue (settings, cache, or an overriding stylesheet) rather than a server-side bug. The usual culprits in IE are the accessibility color override, a user style sheet, or a later CSS rule (including inline styles or !important) with higher specificity that is masking the link rules.

Quick diagnostic steps that resolve this class of problem:

  • Verify Tools > Internet Options > General tab > Accessibility and make sure "Ignore colors specified on Web pages" and "Format documents using my style sheet" are unchecked.
  • Empty IE's cache and force a full refresh (Ctrl+F5).
  • Test the same page on another machine or a different Windows user profile to rule out a per-user setting.

For cross-browser certainty, explicitly set all link pseudo-classes and keep the LVHA order (link, visited, hover, active). Example CSS that works in IE6/7 and modern browsers:

a:link  { color: #0066cc; }
a:visited { color: #551a8b; }
a:hover { color: #004499; }
a:active { color: #004499; }

Also check for inline style="color:..." or later stylesheet rules that use !important or more specific selectors; those will override the rules above. Links that lack a real href (javascript: or name anchors) may be treated differently, too. The Flash/click-to-activate note from is a separate issue and not related to link color.

Recommended Answers

All 2 Replies

it appears to be working to me

Confirmed +1. All looks the same in FF, IE6, IE7b3.

Note that your Flash is triggering the Eolas patch in IE7b3, requireing users to click on the Flash to view it. There are several ways to avoid this, and I recommend SWFObject

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.