Hi this is the first time I have built a site and I’m having problems with my divs aligning in Internet Explorer, Safari, Firefox and google chrome are all fine.
Hi, thanks for your reply I used this website yesterday to try and fix some errors, but didn’t understand some of the feedback, I’m using quite an old version of Dreamweaver and the head section automatically generated the HTML 4.01 presumably this is wrong.
Should I remove
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
and replace with:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
I see you’ve changed your doctype - has that solved your problem? (I can’t test on IE just now.)
You should certainly remove this: <meta http-equiv=“X-UA-Compatible” content=“IE=EmulateIE7”/> as it’s telling all versions of IE to emulate IE7, which had/has all kinds of problems. You really don’t want that.
You might want to run your page through the W3C Validator, to pick up a few errors there. It’s always a good idea to validate your code, as it helps to ensure it will display correctly in any browser. Valid code is not always enough, unfortunately, but it’s a darned good starting point.
If you need any help interpreting the Validator results, just ask.