From 8fc49e00b1ea238b5dc1d23db3126bce3b3f5c9b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 15 Apr 2011 15:05:28 +0000 Subject: [PATCH] Todo: using div instead of tables --- htdocs/core/class/commonobject.class.php | 10 +++++----- htdocs/theme/auguria/style.css.php | 10 +++++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 38ff1217df6..322ff61a868 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1465,21 +1465,21 @@ class CommonObject global $conf,$langs; // TODO: test using div instead of tables - /* +/* print '
'; print '
'; print '
'; - print '
'.$langs->trans('Description').'
'; + print '
'.$langs->trans('Description').'
'; print '
'.$langs->trans('VAT').'
'; print '
'.$langs->trans('PriceUHT').'
'; print '
'.$langs->trans('Qty').'
'; print '
'.$langs->trans('ReductionShort').'
'; print '
'.$langs->trans('TotalHTShort').'
'; - print '
 
'; - print '
 
'; + print '
 
'; + print '
 
'; print '
 
'; print '
'; - */ +*/ print ''; print ''.$langs->trans('Description').''; diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index 4c27c916fc8..d877d186983 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -1892,8 +1892,16 @@ div.tr { } div.td { display:table-cell; + text-align: right; padding:5px; - width:24.5%; + width:auto; +} +div.td.desc { + text-align: left; + width: 70%; +} +div.td.ten { + width: 10px; } div.end { width:auto;