Results 1 to 1 of 1

Thread: HTML not centred

  1. #1
    Join Date
    Jan 2006
    Location
    Derbyshire, UK
    Posts
    74
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default HTML not centred

    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...

    Code:
    <!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...

    Code:
    #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
    Last edited by Burgin; 04-01-2009 at 01:30 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •