summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-04-04 06:26:00 +0000
committerDries Buytaert <dries@buytaert.net>2003-04-04 06:26:00 +0000
commitb7ddc3a4071f777e7cab55b09af1eb1edda2b985 (patch)
tree11fba107abc90eac6fb29f33989c4228b9673fe2 /modules
parentcb2d27c78dbac76d396d2c254e6aefa1154ad1e4 (diff)
downloadbrdo-b7ddc3a4071f777e7cab55b09af1eb1edda2b985.tar.gz
brdo-b7ddc3a4071f777e7cab55b09af1eb1edda2b985.tar.bz2
- Bugfix: removed 'width="100%"' attributes from table tags. Patch by Al.
"IE has a bug with tables inside divs with width=100%. I see no reason why the forum tables should be 100% - they are pretty much naturally padded to 100% as soon as anyone puts any content in them. Removing them doesn't affect functionality and improves layout compatibility on IE."
Diffstat (limited to 'modules')
-rw-r--r--modules/forum.module4
-rw-r--r--modules/forum/forum.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/forum.module b/modules/forum.module
index b8e22d4c6..141d130bc 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -529,7 +529,7 @@ function forum_forum_list($forums, $parents, $tid) {
}
$t[] = l(t("Discussion forum"), "forum");
- $output .= "<table border=\"0\" cellpadding=\"5\" width=\"100%\">\n";
+ $output .= "<table border=\"0\" cellpadding=\"5\">\n";
$output .= " <tr><th colspan=\"3\" align=\"left\">".implode(" : ", array_reverse($t)) ."</th>";
if ($forums) {
$output .= "<th>". t("topics") ."</th><th>". t("posts") ."</th><th>". t("last post") ."</th></tr>";
@@ -600,7 +600,7 @@ function forum_topic_list($tid, $topics, $sortby, $forum_per_page, $offset) {
global $id, $status, $user, $pager_total;
if ($topics) {
- $output .= "<table border=\"0\" cellpadding=\"5\" cellspacing=\"5\" width=\"100%\">\n";
+ $output .= "<table border=\"0\" cellpadding=\"5\" cellspacing=\"5\">\n";
$output .= " <tr><th>&nbsp;</th><th>&nbsp;</th><th>". t("topic") ."</th><th>". t("replies") ."</th><th>". t("posted") ."</th><th>". t("last reply") ."</th></tr>";
foreach ($topics as $topic) {
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index b8e22d4c6..141d130bc 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -529,7 +529,7 @@ function forum_forum_list($forums, $parents, $tid) {
}
$t[] = l(t("Discussion forum"), "forum");
- $output .= "<table border=\"0\" cellpadding=\"5\" width=\"100%\">\n";
+ $output .= "<table border=\"0\" cellpadding=\"5\">\n";
$output .= " <tr><th colspan=\"3\" align=\"left\">".implode(" : ", array_reverse($t)) ."</th>";
if ($forums) {
$output .= "<th>". t("topics") ."</th><th>". t("posts") ."</th><th>". t("last post") ."</th></tr>";
@@ -600,7 +600,7 @@ function forum_topic_list($tid, $topics, $sortby, $forum_per_page, $offset) {
global $id, $status, $user, $pager_total;
if ($topics) {
- $output .= "<table border=\"0\" cellpadding=\"5\" cellspacing=\"5\" width=\"100%\">\n";
+ $output .= "<table border=\"0\" cellpadding=\"5\" cellspacing=\"5\">\n";
$output .= " <tr><th>&nbsp;</th><th>&nbsp;</th><th>". t("topic") ."</th><th>". t("replies") ."</th><th>". t("posted") ."</th><th>". t("last reply") ."</th></tr>";
foreach ($topics as $topic) {