In ogni caso, rispetto a quello di ieri, il css è da modificare così:
#nuovo_div {
background-attachment:scroll;
background-color:transparent;
background-position:center top;
background-repeat:no-repeat;
margin-bottom:0;
margin-left:0;
margin-right:auto;
margin-top:0;
text-align:left;
width:435px; <---- questa la puoi rgolare
}
mentre l'index.php diventa così:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<!--[if lte IE 7]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<![endif]-->
</head>
<body id="page_bg">
<a name="up" id="up"></a>
<div class="center">
<div id="pathway">
<jdoc:include type="module" name="breadcrumbs" />
</div>
<div id="header">
<?php /*Aggiungo la nuova posizione modulo */?>
<?php if ($this->countModules('usermio')) : ?>
<div id="nuovo_div">
<jdoc:include type="modules" name="usermio" style="xhtml" />
</div>
<?php endif; ?>
<?php /*Fine aggiunta nuova posizione modulo*/?>
<div id="homelink">
<a href="index.php"></a>
</div>
<div id="logo">
<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>
</div>
</div>
<div id="wrapper">
<div id="area">
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="vline">
<div id="leftcolumn" style="float: left;">
<jdoc:include type="modules" name="left" style="xhtml" />
<?php $sg = 'banner'; include "templates.php"; ?>
</div>
<div id="maincolumn">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
<div class="clr"></div>
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
</div>
<div class="clr"></div>
<?php endif; ?>
</div>
<div class="clr"></div>
</div>
</div>
<div class="clr"></div>
<div id="footer">
<p style="padding: 0; margin:0 30px 20px 0; float: right;">
Valid <a href="http://validator.w3.org/check/referer">XHTML</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</p>
<div id="sgf" style="clear:both;"><?php $sg = ''; include "templates.php"; ?></div>
</div>
<jdoc:include type="modules" name="debug" />
</div>
</body>
</html>