dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Website doesn't want to center

  1. #1
    Join Date
    Dec 2002
    Location
    US
    Posts
    128

    Website doesn't want to center

    Hello,

    I am currently working with a website but I'm having a particular problem. I'm having a problem getting my website to center properly when I covert it into an HTML5 webpage. It all worked previously using this:

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

    But as soon as I change it the page is all to the left side of the screen instead of being centered.

    Any ideas what I may need to do?
    Last edited by ecross; 07-05-2011 at 08:09 PM.

  2. #2
    Join Date
    Aug 2006
    Posts
    1,942
    The DOCTYPE still needs to be on the first line of the code...

    Dave

  3. #3
    Join Date
    Dec 2002
    Location
    US
    Posts
    128
    Thanks Dave! That fixed the problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles