Solved

Browser Compatibility Issue (Internet Explorer)

Posted on 2011-09-26
4
233 Views
Last Modified: 2012-05-12
I just finished building a site and noticed that on Internet Explorer 7, the navigation is reversed and overlaps the logo.  The site looks fine on all other browsers, including Explorer 8.  Can somebody please let me know how to correct this?  Attached are screen shots of the site on explorer and firefox.  The link to view it live is www.sightdesignz.com/wim

Thanks!
Screen Shot In Firefox (Navigation is Correct)Screen Shot in Explorer 7 (Navigation Issues)
0
Comment
Question by:E-Dub
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:ienaxxx
ID: 36600035
Try adding this doctype string before the html tag

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

This should instruct IE to interpret CSS in another way than the IE standard way. FF and others recognize undeclared doctypes as loose automatically, while IE does not.


HTH
Bye!
0
 
LVL 1

Author Comment

by:E-Dub
ID: 36600112
I added that string only to the index.html page to see if it worked and it didn't.  Could it be anything else?
0
 
LVL 10

Accepted Solution

by:
ienaxxx earned 500 total points
ID: 36600161
Let's have a look at the css class / inline definition for the logo element....

Try to delete the margin-left property from the class and see if it works for IE (doesn't really matter if with others don't work). Obviously, create a backup of the original css file.
Anyway, in general, try to create a CSS that works with IE 7 without caring about other browsers (while keeping the standard CSS in another file).

At last, when you found the property that causes the problem (or when you defined a definition set that adjust the logo position in IE, when loaded additionally), write a css file with a class definition that overwrites the problematic class.

Then you can use this code:

<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="css/iespecific.css" />
<![endif]-->

To load that css file ONLY if the browser is IE earlier than version 8.

This will overwrite just the problematic properties OR load additional definitions to adjust the work for IE 7.


HTH. Bye!
0
 
LVL 1

Author Closing Comment

by:E-Dub
ID: 36601205
You just taught me a VERY valuable lesson! If I ever have a similar problem, now I'll know how to go about fixing it.  THANK YOU SO MUCH! :D
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Add shadow behind div 5 25
ASP.NET Content Page 3 35
How can I make a div layout like the one in the image 2 27
CSS DIV Height in Percent 1 9
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question