Kossu
05-18-2005, 08:33 AM
Hi!
I've got a prob with positioning div's and the table layout in FireFox... Here's the site:
http://www.ratol.fi/~mkoskenk/pennihaat/
It displays just fine on Opera & IE but in Firefox it just prints the contents one after another discarding also the table layout. Any idea what causes this? And furthermore, how to fix this :)
The idea of the javascript code is to print out the table to the page without having to manually add it to every page. Here's an example from menu.js
document.write("<table id=\"menu\" cellspacing=\"0\" cellpadding=\"0\">")
document.write("<tr>")
document.write("<td class=\"otsikko\"> <a class=\"otsikko\" href=\"index.htm\">Pääsivu</a></td></tr>")
document.write("<tr>")
document.write("<td class=\"otsikko\"> <a class=\"otsikko\" href=\"yhdistys.htm\">Yhdistys</a></td></tr>")
document.write("<tr>")
document.write("<td class=\"linkki\"> <a class=\"linkki\" href=\"hallitus.htm\">Hallitus</a></td></tr>")
etc.
Cheers,
Kossu
I've got a prob with positioning div's and the table layout in FireFox... Here's the site:
http://www.ratol.fi/~mkoskenk/pennihaat/
It displays just fine on Opera & IE but in Firefox it just prints the contents one after another discarding also the table layout. Any idea what causes this? And furthermore, how to fix this :)
The idea of the javascript code is to print out the table to the page without having to manually add it to every page. Here's an example from menu.js
document.write("<table id=\"menu\" cellspacing=\"0\" cellpadding=\"0\">")
document.write("<tr>")
document.write("<td class=\"otsikko\"> <a class=\"otsikko\" href=\"index.htm\">Pääsivu</a></td></tr>")
document.write("<tr>")
document.write("<td class=\"otsikko\"> <a class=\"otsikko\" href=\"yhdistys.htm\">Yhdistys</a></td></tr>")
document.write("<tr>")
document.write("<td class=\"linkki\"> <a class=\"linkki\" href=\"hallitus.htm\">Hallitus</a></td></tr>")
etc.
Cheers,
Kossu