Please see
http://lml.ls.fi.upm.es/~mcollado/tables/tables.html for an
example. The desired effect is to center wide tables, but limit the
amount of margin-left for narrow tables to say 20%%. This way narrow
tables are vertically aligned.
Is it possible to automatically achieve this effect with pure CSS? I.e.,
selecting to either center or to align tables depending on their natural
width. The example uses the class attribute to manually declare tables
as narrow (to be aligned) or wide (to be centered).
The pages are intended to be displayed locally, so a browser-specific
solution is acceptable. Of course, a portable solution would be great.
Thanks in advance.