Results 1 to 4 of 4

Thread: Website Centering help

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

    Default Website Centering help

    I am looking for a script or a way to center a website within a window browser. So that no matter what resolution I am using, it always stays in the center with equal space on both sides. How would I do that?

    I have frontpage 2002, and I have been searching for the answer to this for a some time. I am hoping that a script here would help .

    So how would I do it? www.dynamicdrive.com would be an example of what I am looking for.

    Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Everything on the page you mention is enclosed in either <center></center> tags or in an element that has align="center" as an attribute. Doing just this would still take up the whole page at any resolution. However, key elements are given the width of 750 so that total width will never exceed that.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hum . . . ok, I think I understand.

    How would I set the maxium size of expansion to 750 pixels?

    Thanks,

    Q-Man -- Brandon

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    For example, in a table:

    HTML Code:
    <table width="750"><tr><td></td></tr></table>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •