C
Curtis
Recently we were considering how to set the position of
tables and some other elements simply and reliably
cross-browser. By "simply" I mean that it had to fit in a
single line of text applied to a single element--and we
wished to avoid deprecated HTML. (The most simple and
reliable things seem to be deprecated... sigh.)
This site does some cross-browser tests.
http://theodorakis.net/tablecentertest.html
The best solutions suggested are combinations of divs and
table-margin settings and the like, too messy for our needs,
which amount to using a macro in our markup language to set
table width and position.
While not as terse as "center" and the like, this seems to
work very well, the generated HTML being:
<table style="margin-left: 15%; margin-right: 15%; width:
70%;">
I've tested it on IE 5.0, 5.5, Firefox and Opera.
Any reason why we shouldn't stick with this syntax?
--
Curtis
Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.
tables and some other elements simply and reliably
cross-browser. By "simply" I mean that it had to fit in a
single line of text applied to a single element--and we
wished to avoid deprecated HTML. (The most simple and
reliable things seem to be deprecated... sigh.)
This site does some cross-browser tests.
http://theodorakis.net/tablecentertest.html
The best solutions suggested are combinations of divs and
table-margin settings and the like, too messy for our needs,
which amount to using a macro in our markup language to set
table width and position.
While not as terse as "center" and the like, this seems to
work very well, the generated HTML being:
<table style="margin-left: 15%; margin-right: 15%; width:
70%;">
I've tested it on IE 5.0, 5.5, Firefox and Opera.
Any reason why we shouldn't stick with this syntax?
--
Curtis
Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.