OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Does anyone know how to center a table on screen with HTML 4.01 Strict and CSS?
This page's ID:
10625
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I am trying to make the jump from HTML 4.01 Transitional to HTML 4.01 Strict and for the most part, it is a piece of cake, but one little thing evades me: centering a table on screen. It was so simple in HTML 4.01 Transitional and with previous versions of HTML... [b]In Ancient Times:[/b] <TABLE...ALIGN="CENTER">... </TABLE> [b]Or When Centering An Entire Page:[/b] <CENTER> ... </CENTER> [b]Or In Recent Times Even:[/b] <DIV ALIGN="CENTER"> ... </DIV> [b]Now:[/b] ??? * The CENTER element is deprecated. * DIV elements no longer have ALIGN attributes. * TABLE elements no longer have ALIGN attributes. * Internet Explorer 6 applies BODY element text-align attributes to all tables, but Netscape 6.2 does not. * Tables do not inherit text-align attributes from DIV or P containers. [b]The Ugly, Long Solution:[/b] <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD ALIGN="CENTER"> ... </TD></TR></TABLE> Need I say "ew"? Indeed, I must. Ew. If only there were a TABLE element attribute like "align: center" or "horizontal-align: center" rather than "left: xpx
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »