PDA

View Full Version : How To Centre A Webpage


The Smurf
08-20-2008, 10:00 PM
Hello!

I'm new here and quite new at webpage stuff too, here is the deal. I make my homepage in Photoshop and slice it and export it as HTML and just program the links in Dreamweaver, all this is fine. But I bought a new widescreen 20" screen and raised the resolution to 1680x1050 instead of 1024x768 as before.
Since the design in Photoshop won't let me flex the page for different widths I would like to center all stuff in my page.

Is there a code I can add so everything centers in the browser so it becomes resolution independent?

My webpage is www.danielfalken.com (http://www.danielfalken.com)
And I would like to go from this:
http://img384.imageshack.us/img384/1299/beforema0.th.jpg (http://img384.imageshack.us/my.php?image=beforema0.jpg)
To this:
http://img46.imageshack.us/img46/5507/aftergi2.th.jpg (http://img46.imageshack.us/my.php?image=aftergi2.jpg)
Is it possible with an easy touch?

Ricky55
08-21-2008, 01:44 AM
Just select the whole table and then click align center
see my attachment for details.

The Smurf
08-21-2008, 02:17 AM
Just select the whole table and then click align center
see my attachment for details.

Thx! Worked like a charm!

davidj
08-21-2008, 08:29 AM
dont discuss this out in the open. Its illegal!

you need to skulk and hide in the shadows before mentioning the word TABL...... No. Its no good. Just cant say the word!

Ricky55
08-21-2008, 09:06 AM
I know its not ideal but sometimes people just need a fix.

Corrosive
08-21-2008, 03:58 PM
dont discuss this out in the open. Its illegal!

you need to skulk and hide in the shadows before mentioning the word TABL...... No. Its no good. Just cant say the word!

It's good to see you on the campaign against the 't' word :wink: