Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Adding Doctype
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

leatherlips
Senior Member

USA
1838 Posts

Posted - 25 August 2009 :  17:32:38  Show Profile  Visit leatherlips's Homepage
I'm trying to add a doctype above the <html> tag to get a script I'm trying to use work. It requires the following (I've rewritten it for the response.write):

Response.Write "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.1//EN"" ""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"">"

I have it working but for some reason by adding the above code it messes up my layout of my pages. It centers everything. What is causing this?


Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

iane87
Starting Member

USA
42 Posts

Posted - 25 August 2009 :  18:23:58  Show Profile  Visit iane87's Homepage
What browser are you using? I don't see these problems in FireFox 3.5 or IE 6.

The only suggestion I have is putting the doctype at the very beginning before all of the includes.

Twitter MOD | Search Provider MOD | W3C Valid RSS MOD | Google Translate MOD
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 25 August 2009 :  18:49:28  Show Profile  Visit leatherlips's Homepage
I removed the doctype on my forum because of the formatting issue. I was using IE8.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

iane87
Starting Member

USA
42 Posts

Posted - 25 August 2009 :  21:55:44  Show Profile  Visit iane87's Homepage
Try using the transitional doctype it also supports the older code.

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

Twitter MOD | Search Provider MOD | W3C Valid RSS MOD | Google Translate MOD
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 26 August 2009 :  06:12:45  Show Profile  Visit leatherlips's Homepage
Thanks. I tried that but I get the same results. I've also tried all other versions I found on the web.

Perhaps I have some tags incorrect somewhere causing the problem. With as many changes as I've made it's possible. The only thing is, without the doctype it all looks good.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 26 August 2009 :  09:42:53  Show Profile  Visit AnonJr's Homepage
Without the doctype its rendering in the most forgiving manner, the doctype is telling the browser what standards to apply - and using the xhtml strict is the least forgiving.

To use the doctype you'll have to fix all the fun little bugs that have been in your code all this time. Happy hunting.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 26 August 2009 :  15:13:36  Show Profile  Visit leatherlips's Homepage
quote:
Originally posted by AnonJr

To use the doctype you'll have to fix all the fun little bugs that have been in your code all this time. Happy hunting.

Is there a site that can help find the bugs in the code? I've used one of those html validator sites to check my page but it doesn't help. For example, it will say I have a closed tag such as </td> that was never open. But when I go look at the code there is no mistake.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

iane87
Starting Member

USA
42 Posts

Posted - 27 August 2009 :  04:44:39  Show Profile  Visit iane87's Homepage
Yes you can use http://validator.w3.org/

Check the show source checkbox should make it easier to see where the error is

Be prepared to fix a lot of errors

Twitter MOD | Search Provider MOD | W3C Valid RSS MOD | Google Translate MOD

Edited by - iane87 on 27 August 2009 04:52:46
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 27 August 2009 :  05:42:49  Show Profile
There's also Total Validator which can check a lot more than just the HTML structure for you and the HTML Validator add-on for Firefox.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

KC
Junior Member

USA
152 Posts

Posted - 12 September 2009 :  11:39:41  Show Profile  Visit KC's Homepage
Just put a </center> right after the <body> line ;-}

Owner of vales.com and Elite Computers.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 September 2009 :  15:01:02  Show Profile  Visit leatherlips's Homepage
quote:
Originally posted by KC

Just put a </center> right after the <body> line ;-}

I just tried it but it did nothing.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07