Forums

ASP

This topic is locked

Div Layers in IE vs. Mozilla

Posted 18 Feb 2011 14:52:46
1
has voted
18 Feb 2011 14:52:46 Michelle Weiler posted:
I don't understand why this is happening or how to explain it but here goes: I have an asp page that uses lots of layers and in Mozilla when I click on a link it is supposed to bring up and image and slide it into position. But when I put the typical code in the head -
Code:


<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">




it does not work in Mozilla (it actually slides the image up behind the background but it works in IE. When I take out -
Code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



it works in Mozilla but in IE it blows the format all to heck. I have other pages that uses layes and they work fine in IE and Mozilla with the above code.

Can anyone tell me what is going on, Please.

You might understand it better if you can see it in action. The link to the page is- www.amm.org/giftshop/cards/ecards.asp

I really don't know if this is the problem but this is the only thing I see that breaks it.

Michelle

Replies

Replied 21 Feb 2011 15:16:28
21 Feb 2011 15:16:28 Patrick Woldberg replied:
Make sure there are no empty lines/white-spaces before the DOCTYPE tag. IE Will go into "quirks" mode if the DOCTYPE is not at the first line.

Reply to this topic