[thelist] Is there a tag that will center a fixed sized table both horizontally an vertically on a page?

Charles F. Johnson charles at littlegreenfootballs.com
Tue Feb 6 21:17:31 CST 2001


Hi Candace,

A quick and somewhat dirty way to do this is to nest the fixed table inside
a table set to 100% width and height, with the TD attributes set to
align="center" and valign="middle".

It's "somewhat dirty" because the height attribute for tables is <gasp!>
deprecated. But it works in the major browsers.

Our home page (url in my sig) uses this technique.

Charles F. Johnson
Little Green Footballs Web Design
http://www.littlegreenfootballs.com

> From: "Candace Maynard" <Candace.Maynard at popart.com>
> Reply-To: thelist at lists.evolt.org
> Date: Tue, 6 Feb 2001 16:43:12 -0800
> To: <thelist at lists.evolt.org>
> Subject: [thelist] Is there a tag that will center a fixed sized table both
> horizontally an vertically on a page?
> 
> 
> Got a question....
> 
> Is there a way to center a fixed sized table both horizontally an
> vertically on a page?
> 
> TIA..
> 
> :)
> Candace
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 





More information about the thelist mailing list