Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Browser Compatibility Issue (Internet Explorer)

Posted on 2011-09-26
4
Medium Priority
?
252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 3

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 2000 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 3

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

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

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

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.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Suggested Courses

715 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