Hi there, am working on a new website and was testing it in Chrome and Firefox (looks fine) and when testing it in IE9, the top header image has shifted way off to the right. I can't figure out how to get it to stay put.

Any suggestions from the brilliant audience members?

http://home.comcast.net/~waynetorrance/sunrisehill/

Thanks!

Hi

I think, it may have something to do with the DOCTYPE you specified, that may not switch IE into compliance mode.

Your doctype:

<!doctype html>

I may be wrong, but see if there is any difference when you use a doctype like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">

or:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">

Both declarations switch Internet Explorer 6 and later to standards-compliant mode, but then you may find that some css code will not be validated.

Worked like a gem! Thanks so much for your time!

I'm glad it worked out for you.

Good luck

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.