Advanced Search

Results 1 to 2 of 2

Thread: Website centering in a browser

  1. #1
    Join Date
    Jan 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Website centering in a browser

    Can anyone help with a script to centre my website in any browser.
    I built a website sometime ago in html when everyone used 800 x 600. Now screens have got bigger the site sits to the left. Is there a script that would centre my website in any screen resolution.

    Thanks

    Steve

  2. #2
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    well, you could use <center> tags...I'm pretty sure most would argue that you should use CSS (so I'll include it), but for a quick (maybe temporary) fix:

    A) Put <center> directly under the <body> tag. Then, put </center> directly above the </body> tag.

    or

    B) Somewhere between the <head></head> tags, put:
    Code:
    <style type="text/css">
     body {align:center;}
    </style>
    Verzeihung!

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
  •