]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid using <p> tags because different browsers treat them differently (e.g in firefo...
authorgustav_delius <gustav_delius>
Sun, 6 Feb 2005 18:18:44 +0000 (18:18 +0000)
committergustav_delius <gustav_delius>
Sun, 6 Feb 2005 18:18:44 +0000 (18:18 +0000)
course/format/topics/format.php
course/format/weeks/format.php

index 84b70df3542268c40fc45212fa30bc99cb76c00a..bfdfb99030ea4f9cf9a2257be704f246f5fa45ea 100644 (file)
@@ -83,9 +83,9 @@
         $strcancel= get_string("cancel");
         echo "<tr>";
         echo "<td colspan=\"3\" valign=\"top\" class=\"topicoutlineclip\" width=\"100%\">";
-        echo "<p><font size=\"2\">";
+        echo "<div><font size=\"2\">";
         echo "$stractivityclipboard&nbsp;&nbsp;(<a href=\"mod.php?cancelcopy=true&amp;sesskey=$USER->sesskey\">$strcancel</a>)";
-        echo "</font></p>";
+        echo "</font></div>";
         echo "</td>";
         echo "</tr>";
         echo "<tr><td colspan=\"3\"><img src=\"../pix/spacer.gif\" width=\"1\" height=\"1\" alt=\"\" /></td></tr>";
 
             echo "<tr>";
             echo "<td nowrap=\"nowrap\" $colorsides valign=\"top\" width=\"20\">";
-            echo "<p align=\"center\"><font size=\"3\"><b><a name=\"$section\">$section</a></b></font></p>";
+            echo "<div align=\"center\"><font size=\"3\"><b><a name=\"$section\">$section</a></b></font></div>";
             echo "</td>";
 
             if (!isteacher($course->id) and !$thissection->visible) {   // Hidden for students
index e27b36cffaf545b4902d473529cdbbff16ad78ff..09ed531860ca0fc0b83989fe80582680b2e7084a 100644 (file)
@@ -73,9 +73,9 @@
         $strcancel= get_string("cancel");
         echo "<tr>";
         echo "<td colspan=\"3\" valign=\"top\" class=\"weeklyoutlineclip\" width=\"100%\">";
-        echo "<p><font size=\"2\">";
+        echo "<div><font size=\"2\">";
         echo "$stractivityclipboard&nbsp;&nbsp;(<a href=\"mod.php?cancelcopy=true&amp;sesskey=$USER->sesskey\">$strcancel</a>)";
-        echo "</font></p>";
+        echo "</font></div>";
         echo "</td>";
         echo "</tr>";
         echo "<tr><td colspan=\"3\"><img src=\"../pix/spacer.gif\" width=\"1\" height=\"1\" alt=\"\" /></td></tr>";
 
             echo "<tr>";
             echo "<td nowrap=\"nowrap\" $colorsides valign=\"top\" width=\"20\">";
-            echo "<p align=\"center\"><font size=\"3\"><a name=\"$section\">$section</a></font></p>";
+            echo "<div align=\"center\"><font size=\"3\"><a name=\"$section\">$section</a></font></div>";
             echo "</td>";
 
             echo "<td valign=\"top\" $colormain width=\"100%\">";
 
             if (!isteacher($course->id) and !$thissection->visible) {   // Hidden for students
-                echo "<p class=\"weeklydatetext\">$weekday - $endweekday ";
+                echo "<div class=\"weeklydatetext\">$weekday - $endweekday ";
                 echo "(".get_string("notavailable").")";
-                echo "</p>";
+                echo "</div>";
                 echo "</td>";
 
             } else {
 
-                echo "<p class=\"weeklydatetext\">$weekday - $endweekday</p>";
+                echo "<div class=\"weeklydatetext\">$weekday - $endweekday</div>";
 
                 $summaryformatoptions->noclean = true;
                 echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);