Skip to content

Commit

Permalink
Avoid using <p> tags because different browsers treat them differentl…
Browse files Browse the repository at this point in the history
…y (e.g in firefox if a table cell starts with a <p> it will start with an empty line, in IE it will not). Use <div> instead.
  • Loading branch information
gustav_delius committed Feb 6, 2005
1 parent 0726eb2 commit 0e2851b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions course/format/topics/format.php
Expand Up @@ -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>";
Expand Down Expand Up @@ -182,7 +182,7 @@

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
Expand Down
12 changes: 6 additions & 6 deletions course/format/weeks/format.php
Expand Up @@ -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>";
Expand Down Expand Up @@ -170,20 +170,20 @@

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);
Expand Down

0 comments on commit 0e2851b

Please sign in to comment.