diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-04-04 06:26:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-04-04 06:26:00 +0000 |
commit | b7ddc3a4071f777e7cab55b09af1eb1edda2b985 (patch) | |
tree | 11fba107abc90eac6fb29f33989c4228b9673fe2 /modules/forum/forum.module | |
parent | cb2d27c78dbac76d396d2c254e6aefa1154ad1e4 (diff) | |
download | brdo-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/forum/forum.module')
-rw-r--r-- | modules/forum/forum.module | 4 |
1 files changed, 2 insertions, 2 deletions
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> </th><th> </th><th>". t("topic") ."</th><th>". t("replies") ."</th><th>". t("posted") ."</th><th>". t("last reply") ."</th></tr>"; foreach ($topics as $topic) { |