Saturday 18 February 2012

Websites created in Publisher 2003/2007/2010 websites are left align by design


Websites created in Publisher 2003/2007/2010 websites are left align by design. 

WARNING: ANY USE BY YOU OF THE HTML CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK.


One thing that we need to keep in mind is that this setting needs to be done out of Publisher. So this is not a feature of Publisher. These changes need to be done on all the web pages that you want to center align and every time you publishes the website. For Publisher 2007 / 2003 we can make a website center align by:

1.       Open html file(index.html for example) in notepad or WordPad
2.       Find </head>
3.       Replace it as follows


</head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>

Be sure that you edit the </head> line and NOT the <head> line

If you are using a page width different than 760 pixels then change that number in the above line

7 comments:

  1. Dear thanks for telling about the center webpage. But the problem is that center pages are not showing the images and other linked pages.

    i have uploaded entire files through FTP FileZilla . but the problem is not solving.
    my site is www.fukuokaschool.org

    ReplyDelete
  2. thanks a lot, my www.multiusahainsani.co.id now centered

    ReplyDelete
  3. Great! Finally a quick solution!

    Thanks

    ReplyDelete
  4. I have Publisher 2010 but this doesn't work.

    ReplyDelete
  5. Yes it worked. But only for the main page.
    All other web pages are still on the left. Not centered.
    What should I do for aligning center other web pages?

    ReplyDelete
  6. I am not clear on where to find the html file, is this the webpage that I uploading in publisher? Using Wordpad or Notepad both are unable to open a publisher file without it being encrypted. I found an index.html file and performed the modification and the page still loads to the left, that's why I think I might have the wrong file. A little help please

    ReplyDelete
  7. Thanks it works

    ReplyDelete