diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 5340083141a..ed1193e696e 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -371,7 +371,7 @@ class Form
$s="";
if (empty($notabs)) $s.='
';
- if ($direction < 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14"> '.$img.''.$tag.'>';
+ if ($direction < 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14">'.$img.' '.$tag.'>';
if ($text != '') $s.='<'.$tag.$paramfortooltiptd.'>'.$text.''.$tag.'>';
if ($direction > 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14"> '.$img.''.$tag.'>';
if (empty($notabs)) $s.='
';