The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> W3C DTD Code Problem
Steve M
post Mar 24 2007, 10:57 PM
Post #1





Group: Members
Posts: 1
Joined: 24-March 07
Member No.: 2,315



I am trying to get this page: http://www.stevemedleyphotography.com/bwg/index.html

working in both IE and Firefox. After many trials and errors I found the problem to be the W3C DTD Code.

Now as an example I'll show you this:


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


I say example because I have tried every possible DTD code from http://www.w3.org/QA/2002/04/valid-dtd-list.html and always get the same result.

The result is if I put it in like above then the site works in IE 7. But in Firefox (At least on my Mac, can't get Firefox to download on the PC oddly), the webpage loads with the flash getting pushed up really high and into the header, also the entire flash part is significantly smaller.

In order to get it working properly in Firefox I have to have the code like this:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">



Notice the lack of the final link.

This then works in FireFox but in IE it ONLY shows my header and a blank page, no part of the flash loads, or if it is loading then it's so far off screen that I can't see it.


Any suggestions?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Mar 24 2007, 11:32 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



See Activating the Right Layout Mode Using the Doctype Declaration

FWIW, when I click on the "click to view gallery" link, I get another page that looks like the first. Also, the online validator reports a number of HTML errors in your document.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 02:07 AM