In function YearPage I'm trying to get the table that holds the individual month tables, centered. However, no matter how many align="center"s, <center>s, and style="align: center;"s I slap on the sucker, it refuses to budge in Firefox. [It looks good in IE, which tells me that something is probably wrong with my coding.] Is the table just destined to sit stubbornly in one place in Firefox, or is there something I can do, short of beating it with a blunt object of some sort, to make it work?
The coding for the function is below.
-----
function YearPage::print_body {
$this->print_year_links();
var bool toggle = false;
print_system_box_top();
"""<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr align="center">
<td valign="top" align="center">""";
print_content_top();
"\n <center><table cellspacing=\"3\" cellpadding=\"3\" border=\"0\" style=\"margin-left: 0px; margin-top: 0px; align: center;\" align=\"center\">\n <tr align=\"center\">";
foreach var YearMonth m ($.months) {
if ($m.has_entries) {
"\n <td valign=\"top\">";
$this->print_month($m);
"\n </td>";
if($toggle) {
"\n </tr><tr>";
$toggle = false;
} else {
$toggle = true;
}
}
}
"\n </tr>\n </table>";
print_content_bottom();
"""</td></tr></table>""";
print_system_box_bottom();
print_spacer();
}
-----
You'll note the very centered table in the IE screencap, on the left, and the very not centered table in the Firefox screencap, on the right. Just, you know, because visual aids are fun.
[ETA] Fixed! Thank you, uniquewonders!