Log in

View Full Version : HTML not centred



Burgin
04-01-2009, 11:17 AM
Not quite sure which forum I should be in for this one but here goes, I'll risk a beating.

I'm developing a site and each page's code starts with...


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

Each page is centred by CSS using...


#wrapper{
width: 850px;
margin: 0px auto;
background: #FFFFFF;
}


All work fine, except. On the Contact Us page I'm using the Form2mail cgi script provided by my host and to use the captcha element the page has to be saved as index.cgi.

The HTML is contained within the script and it works fine if I remove the above <!DOCTYPE... from the HTML. Fine other than the page positions to the left instead of centre. If I introduce the above <!DOCTYPE code into the HTML I get "Internal Server Error" displayed.

I think the centreing isn't happening because the <!DOCTYPE code is missing, can anyone think of a solution? You can view the page here...
http://www.tagmail.co.uk/contact/index.cgi