Back to top

Autore Topic: Allineare il testo dell'articolo (RISOLTO)  (Letto 1401 volte)

fra84xxx

  • Visitatore
Allineare il testo dell'articolo (RISOLTO)
« il: 18 Ott 2008, 13:42:35 »
Vi prego Aiuto!
Non ci sto più dentro.Non so piu' cosa fare...

Allora il problema è questo:

Il template mi allienea il contenuto degli articoli a sinistra.E se ne frega se io nel editor metto le frasi a destra a sinistra in centro.
E sono sicuro che sia il template il problema perchè cambiando template il problema si risolve. Ma io non voglio cambiare template.Io voglio cambiare IL MIO template e sistemarlo.
Dov'è il problema???

Questo è l'index:
<?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/<?php echo $this->template ?>/css/template.css" type="text/css" />

<!--[if lte IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<![endif]-->

</head>
<body class="body_bg">
   <div id="page_bg">
   <div id="page_bg_1">
      <div id="topw">
         
         <div class="pill_m">
            <div id="pillmenu">
               <table cellpadding="0" cellspacing="0">
                  <tr>
                     <td style="text-align: left; vertical-align: middle;">
                        <jdoc:include type="modules" name="user3" />
                        <div class="clr"></div>
                     </td>
                  </tr>
               </table>
            </div>
         </div>
      </div>
      <div class="clr"></div>
      
      <div id="header_1">
         <div id="header">
            <div id="logo">
                  <a href="index.php"><?php //echo $mainframe->getCfg('sitename') ;?>[/url]
            </div>
         </div>
      </div>
      
      <!--center start-->
      <div class="center">
         <div id="wrapper">
            <div id="content">
                     <!--pathway start-->
                     <div class="cpathway">
                        <div class="cpleft">
                           <jdoc:include type="module" name="breadcrumbs" />
                        </div>
                     </div>
                     <!--pathway end-->

               <?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
                  <div id="leftcolumn"  style="text-align: center">   
                     <jdoc:include type="modules" name="left" style="rounded" />
                     <script type="text/javascript">
                        //<![CDATA[
                        var l='it';
                        document.write('<s'+'cript type="text/javascript" src="http://'+l+'.altervista.org/members_inc/cat.av?'+new Date().getTime()+'"><\/s'+'cript>');
                        //]]>
                     </script>
                  </div>
                     
                  <?php endif; ?>
                  
                  <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
                  <div id="maincolumn">
                     <div class="m1">
                  <?php else: ?>
                  <div id="maincolumn_full">
                     <div class="m1_f">

                  <?php endif; ?>
                        <div class="nopad">         
                           <jdoc:include type="message" />
                           <?php if($this->params->get('showComponent')) : ?>
                              <jdoc:include type="component" />
                           <?php endif; ?>
                        </div>
                     </div>
                  </div>
                  
                  <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
                  <div id="rightcolumn" style="float:right;">
                     <jdoc:include type="modules" name="right" style="rounded" />                        
                  </div>
               <?php endif; ?>
               <div class="clr"></div>
            </div>      
         </div>
      </div>
      <!--center end-->
      
   </div>   
   </div>   
   <jdoc:include type="modules" name="debug" />
   <!--footer start-->
      <div id="footer">
         <div id="sgf">
            <div>
               <div style="text-align: center; padding: 10px 0 0;">
                  <script type="text/javascript">
                     //<![CDATA[
                     document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=728X90/r='+new Date().getTime()+'"><\/s'+'cript>');
                     //]]>
                  </script>
                  <?php $sg = ''; include "templates.php"; ?>
               </div>
               <div style=" padding: 5px 0; text-align: center; color: #fff;">
                  Valid <a style="color: #fff;" href="http://validator.w3.org/check/referer">XHTML[/url] and <a style="color: #fff;" href="http://jigsaw.w3.org/css-validator/check/referer">CSS[/url].
               </div>
            </div>
         </div>
      </div>
      <!--footer end-->
      <script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5981654-1");
pageTracker._trackPageview();
</script>
</body>
</html>

e questo allegato è il file template.css (che ho dovuto rinominare per postarlo nel forum!)

Grazie davvero!!!


[allegato eliminato da un amministratore - Il file era vecchio]
« Ultima modifica: 18 Ott 2008, 14:55:25 da tonicopi »

fra84xxx

  • Visitatore
Chiudete pure!!! ho risolto :D  ;) per chi avesse lo stesso problema nel fail templat.txt che sarebbe il template.css c'è la parte:

p{
bla bla bla
bla bla bla
text-align: justify;

}

per risolvere ho semplicemente eliminato la riga
text-align: justify;

anche se ancora non capisco perchè mi allienasse tutto a sinistra... beh pace!!!

 



Web Design Bolzano Kreatif