You are here: How's this for cross-browser table positioning? « HTML « IT news, forums, messages
How's this for cross-browser table positioning?

Posted by Curtis on 09/28/83 11:34

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация