Forum Moderators: open

Message Too Old, No Replies

Centering a table

in the middle of the screen

         

Nick_W

9:54 am on Nov 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi everyone,

Struggling with this:

750px by 450px table that I need centered horizontally and vertically in on the screen. I'm nesting tables but just can't get it to work.

Any help much apprecidated.

<aside>I may very well have to put in some flashing knobs and a spinning logo on this site ;)</aside>

Thanks

Nick

BlobFisk

10:40 am on Nov 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using tables: if you create a holding table with a width of 100% and height of 100% and set the alignment to center and valign-ment to middle, your 750px x 450px will then sit in the middle of the page....

Does using CSS calls for the body not centre things? The above is fool proof, but won't validate!

Nick_W

11:00 am on Nov 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah, with ya. Thanks.

I'd got that far but the problem was in Moz. When I took out the xhtml transitional doctype it worked fine though. Funny old world ;)

Nick