Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the site to the centre of the page

Status
Not open for further replies.

Darrenb

MIS
Jan 20, 2000
85
GB
I want to set my whole website to display itself in the middle of the screen. I can get it to centre across the top of the page, but not in the dead centre. What is the best way to do this?

Any help will be greatly appreciated.

Darren
 
Take a look at this code in a browser:

Code:
<table border=&quot;0&quot; width=&quot;100%&quot; height=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
  <tr>
    <td width=&quot;100%&quot; valign=&quot;middle&quot; align=&quot;center&quot;>
      <table border=&quot;1&quot; width=&quot;640&quot; bordercolor=&quot;#000000&quot; height=&quot;480&quot; cellspacing=&quot;0&quot; cellpadding=&quot;5&quot; bgcolor=&quot;#FFFF00&quot;>
        <tr>
          <td width=&quot;100%&quot; valign=&quot;middle&quot; align=&quot;center&quot;><b><font face=&quot;Verdana&quot;>This
            is your site (yellow).</font></b></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
» » » » » »
Mike Barone
FREE and Pro CGI/Perl Scripts

FREE Scripts
 
The way I center is to create a table with only 1 cell. Everything goes inside the cell. This cell is set at 100% vertically and horizontally. In the properties panel it is referred to as row and column. Just type in 100% in each one and it will be centered. Ya' Gotta Love It!:)X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top