Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Where (and what type) to put doctype?

Quote Reply
Where (and what type) to put doctype?
I've got a problem and potential solution, but welcome any advice from Links users.

I've had some problems displaying pages in IE7 - an example here:

http://www.ukprwire.com/...itioning_11895.shtml

In Safari and Opera this page displays fine, but in IE7 it is extra wiiiiiide, with unwanted white space in various places.

I've been told the problem may be fixed by adding a doctype, specifically this one:

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

I added this to the 'detailed' template, but ALL the text on the page was then centred (centered) on IE7. Plus it was still wiiiiide!

Any ideas? Am I using the wrong doctype? Am I putting the doctype line in the wrong place?
Subject Author Views Date
Thread Where (and what type) to put doctype? pepped 2793 Nov 12, 2007, 7:37 AM
Thread Re: [pepped] Where (and what type) to put doctype?
Andy 2653 Nov 12, 2007, 8:03 AM
Thread Re: [Andy] Where (and what type) to put doctype?
pepped 2646 Nov 12, 2007, 8:11 AM
Post Re: [pepped] Where (and what type) to put doctype?
Andy 2637 Nov 12, 2007, 8:13 AM