Layout is left align in ie

Hi,

I have made layout and it works fine in ff, chrome and safari but in ie its always left align.

i dont understand what is the issue.
here is the url

www dot inventifweb dot com/layout1

Please help me.

Is that the correct link - it says page not found?

If it’s left aligned in IE then it sounds like you are working in quirks mode caused most likely by an incomplete doctype or no doctype or comments above the doctype.

Can you post the correct link?

sorry my mistake.

the link is

http://www dot inventifweb dot com/landmark/layout1/

i checked the doctype its

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>

Web Developer tells me the page loads in quirks mode.

I looked at your code and the issues I saw were with using /> at the end of your style sheet links. Try removing those and that may get you out of quirks mode.


<title>Landmark Corporation Pvt Ltd </title>
<link type="text/css" href="css/menu.css" rel="stylesheet" [COLOR="Red"]/[/COLOR]>
<link type="text/css" href="css/style.css" rel="stylesheet" [COLOR="Red"]/[/COLOR]>

Just remove the / that are in red above and see if that makes a difference.

thank you for reply,
i remove / but its still the same.
:frowning:

Hi, it is the doctype causing this I believe. :slight_smile:

The complete doctype for standard mode should also have the uri part:

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

But appropriate for a new site would rather be a strict doctype:


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

thank you so much for your reply.
it solves the issue.

for the first time i have faced this issue.

Thank you so much…
:slight_smile: