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!

How do I centre my HTML site in browser window? 1

Status
Not open for further replies.

loopsta

MIS
Nov 16, 2001
47
US
Hope the subject says it all, I would like to centre my HTML exactly in the centre no matter what size scree the viewer is seeing it on, I have managed to do it perfectly for my flash site through HTML, but haven't got a clue when it comes to Dreamweaver. I've only been learning it for a botu 3 weeks now so any help would be gratefully appreciated.
Thanks
 
Create single row, single column table and fix the horizontal size to 100%. Place the guts of your site in this table. This will make your page resize to whatever size the browser is.
 
1. Create a table (single row/column) with width=100%. Horizontally align the table contents as "center"

2. Create a new table with this with fixed width (of say 650
pixels).

3. Place your centents in the innermost table.

Cheers

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top