Joomla.it Forum

Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => : paperjoomla 29 Jun 2007, 13:45:45

: Centrare modulo in campo tabella
: paperjoomla 29 Jun 2007, 13:45:45
allora ragazzi ho una tabella con tre campi in ognuno di questi un modulo, inserendo il modulo in un campo me lo da spostato a sinistra, come faccio a centrarli




<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
<?php if (mosCountModules('user4')) { ?>
    <td valign="top" width="<?php echo $tdwidth; ?>" style="padding-right:<?php echo $tdpad; ?>;"><?php mosLoadModules( 'user4', -2 );?></td>
   <?php } ?>
<?php if (mosCountModules('user5')) { ?>
    <td valign="top" width="<?php echo $tdwidth; ?>" style="padding-right:<?php echo $tdpad; ?>;"><?php mosLoadModules( 'user5', -2 );?></td>
   <?php } ?>
<?php if (mosCountModules('user6')) { ?>
    <td valign="top" width="<?php echo $tdwidth; ?>" style="padding-right:0px"><?php mosLoadModules( 'user6', -2 );?></td>
   <?php } ?>

  </tr>
</table>
: Re: Centrare modulo in campo tabella
: thepisu 29 Jun 2007, 14:07:49
Penso di non aver capito.. ci fai uno screenshot?
: Re: Centrare modulo in campo tabella
: paperjoomla 29 Jun 2007, 14:31:35
ho risolto...

bastava mettere align="center"

<table width="100%" border="0" [cellspacing="0" cellpadding="0">
  <tr>
<?php if (mosCountModules('user4')) { ?>
    <td valign="top" align="center" width="<?php echo $tdwidth; ?>" style="padding-right:<?php echo $tdpad; ?>;"><?php mosLoadModules( 'user4', -2 );?></td>
   <?php } ?>
<?php if (mosCountModules('user5')) { ?>
    <td valign="top" align="center"width="<?php echo $tdwidth; ?>" style="padding-right:<?php echo $tdpad; ?>;"><?php mosLoadModules( 'user5', -2 );?></td>
   <?php } ?>
<?php if (mosCountModules('user6')) { ?>
    <td valign="top" align="center"width="<?php echo $tdwidth; ?>" style="padding-right:0px"><?php mosLoadModules( 'user6', -2 );?></td>
   <?php } ?>

  </tr>
</table>