Center website in browser window

Status
This thread has been Locked and is not open to further replies. The original thread starter may use the Report button to request it be reopened but anyone else with a similar issue should start a New Thread. Watch our Welcome Guide to learn how to use this site.

plejon

Thread Starter
Joined
Jul 26, 2001
Messages
671
I would like to design a website that fits on a 640X480 screen, and that is centered horizontally on higher resolution screens.

Samples : www.yahoo.com or www.about.com

How can I design such a site and dynamically center it as I resize the browser window ?
 
Joined
Feb 28, 2001
Messages
11,584
plejon
Here is a site that lists the script your looking for to dynamically track the display settings for center.
Click Here for site.
Hope that helps you.
Dave
 

plejon

Thread Starter
Joined
Jul 26, 2001
Messages
671
I found an easy way to center my website using frames.

I just define three vertical frames, left, middle, right.
I then set the width for the middle frame to the value I want for my site (E.g. 500 pixels). The width of the left and right frames is set to *. This way, the middle frame will be centered in the window of my browser and even move dynamically if I resize the browser window.

Here's the code I used :

< FRAMESET COLS="*,500,*">
< FRAME SRC="border.html">
< FRAME SRC="content.html">
< FRAME SRC="border.html">
< /FRAMESET>
 
Status
This thread has been Locked and is not open to further replies. The original thread starter may use the Report button to request it be reopened but anyone else with a similar issue should start a New Thread. Watch our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top