|
This page documents some of the difficulties that I experienced during my site-migration project from "html4.01-loose, tablebased layout" to "html4.01-strict, tableless layout".
Experienced DifficultiesLanguage selector for babelfish on MoFF1.0Note Nov 6, 2005: below problem has been diagnosed and solved. Text to be adapted. The code for access to the "babelfish" translation service (in the top-right corner of the "welcome" page) has been copied from "some" site (I don't remember which one). It works okay, including the language selector, on MSIE6.0 (Microsoft Internet Explorer 6.0) and on MoFF1.0 (Mozilla Firefox 1.0), in my old table-based layout (401-tb). In the tableless layouts however (both 401-lo and 401-st), the selector continues to work okay on MSIE6.0, but it does not work at all on MoFF1.0. The reason for this flaw is not understood. The babelfish submit button and the language selector are contained in an (I think) validly styled "float:right;" division. Note that it does work on MoFF1.0 too if the containing div is simply unfloated, but that is not a solution since it prevents me from positioning the header divisions where I like. MSIE "3px float" problemNote Nov 6, 2005: where suitable, I avoid the problem in 401-hy with table constructs. Description: MSIE has a problem with text positioned alongside (or wrapping around) a div styled "float:left;". For background: see A "float:left" div
Possible solutions/workarounds:
MSIE "italic bug"Note Nov 6, 2005: this is the most annoying bug of all, that forces me to use the hybrid 401-hy template for production. Note Mar 7, 2006: the hybrid template has now been used intensively, and always behaves flawlessly with predictable results. This nasty bug tends to breakdown the layout:
See For this website, I have used the suggested "overflow" workaround for the MainText division, with suitable tuning of widths, margins and paddings. This solves the problem as long as the navigation bar is wide enough to contain the navigation buttons in-line. The design (including the navigation menu) still tends to break down when the browser window is resized to even smaller widths. Work-around for lack of target attribute in 4.01-strictNote Nov 6, 2005: this work-around is okay and is used on all converted pages. Templates 401tb, 401lo and derived pages fail 4.01-strict because I heavily use the "target" attribute (default <base target="_blank"> in head, along with target="_self" attributes in local links). For opening external links in a new window, here is a 4.01-strict work-around (which is still far from ideal since my default logic is inverted). <a href="http://www.google.com/" onclick="window.open(this.href); return false"> Google should open in a new window </a> |