0

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 -

<%@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 -

<!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- http://www.amm.org/giftshop/cards/ecards.asp

I don't even know if the above is for sure killing it but it is the only thing that I could see that would make it break in one and work in the other.

Michelle

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by ArtistScope
0

"I have other pages that use layers and they work fine in IE and Mozilla with the above code."

I'll bet there is a difference that you haven't noticed, and my first guess will be this line...

<html xmlns="http://www.w3.org/1999/xhtml">

And unless you have specific need for XML support, I would only use...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

The more detailed specification will result in more WC3 errors on the page. Try feeding your web pages to an online WC3 validator and you'll see what I mean. Recently we revised our main site and I was surprised how much has changed in the last few years... most old pages had numerous errors (they were originally created in Frontpage and now much of the tableset code is defined as inappropriate).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.