- Postagens: 4
- Obrigados Recebidos: 0
Alinhamento de modulo(Resolvido)
- amneves
- Autor do Tópico
- Offline
- JCB! Novato
Menos
Mais
13 anos 8 meses atrás #37182
por amneves
amneves created the topic: Alinhamento de modulo(Resolvido)
Olá,
Estou com problemas de alinhamento de um módulo.
Segui o tutorial do Rick, e criei um espaço, deu tudo certo, só que distorceu o centro da página.
[url=http://www.paroquiademonteiro.com.br" onclick="window.open(this.href);return false;]http://www.paroquiademonteiro.com.br[/url]
esse é o código:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ;
<html xmlns=" 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/ie6.css" type="text/css" />
<![endif]-->
</head>
<body id="page_bg">
<div id="wrapper">
<div id="header">
<div class="logo">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<h1><a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a></h1>
</td>
</tr>
</table>
</div>
<div id="pillmenu"><jdoc:include type="modules" name="user3" /></div>
<div class="clr"></div>
<div class="newsflash<?php if(!$this->countModules('user1') and JRequest::getCmd('layout') != 'form') : ?> only<?php endif; ?>">
<jdoc:include type="modules" style="rounded" name="top" />
</div>
<div id="search"><jdoc:include type="modules" name="user4" /></div>
<div class="clr"></div>
</div>
</div>
</div>
<div id="content">
<div id="content_m">
<div class="cpathway"><jdoc:include type="module" name="breadcrumbs" /></div>
<div class="clr"></div>
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<br />
<?php $sg = 'banner'; include "templates.php"; ?>
<br />
</div>
<?php endif; ?>
<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_left">
<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_right">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div align="center"><jdoc:include type="modules" name="user5" /></div>
<div class="clr"></div>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
</div>
<div id="footer">
<jdoc:include type="modules" name="debug" />
<?php $sg = ''; include "templates.php"; ?>
<a href=" validator.w3.org/check/referer">valid xhtml</a>
<a href=" jigsaw.w3.org/css-validator/check/referer">valid css</a>
</div>
</div>
</body>
</html>
Estou com problemas de alinhamento de um módulo.
Segui o tutorial do Rick, e criei um espaço, deu tudo certo, só que distorceu o centro da página.
[url=http://www.paroquiademonteiro.com.br" onclick="window.open(this.href);return false;]http://www.paroquiademonteiro.com.br[/url]
esse é o código:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ;
<html xmlns=" 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/ie6.css" type="text/css" />
<![endif]-->
</head>
<body id="page_bg">
<div id="wrapper">
<div id="header">
<div class="logo">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<h1><a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a></h1>
</td>
</tr>
</table>
</div>
<div id="pillmenu"><jdoc:include type="modules" name="user3" /></div>
<div class="clr"></div>
<div class="newsflash<?php if(!$this->countModules('user1') and JRequest::getCmd('layout') != 'form') : ?> only<?php endif; ?>">
<jdoc:include type="modules" style="rounded" name="top" />
</div>
<div id="search"><jdoc:include type="modules" name="user4" /></div>
<div class="clr"></div>
</div>
</div>
</div>
<div id="content">
<div id="content_m">
<div class="cpathway"><jdoc:include type="module" name="breadcrumbs" /></div>
<div class="clr"></div>
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<br />
<?php $sg = 'banner'; include "templates.php"; ?>
<br />
</div>
<?php endif; ?>
<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_left">
<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_right">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div align="center"><jdoc:include type="modules" name="user5" /></div>
<div class="clr"></div>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
</div>
<div id="footer">
<jdoc:include type="modules" name="debug" />
<?php $sg = ''; include "templates.php"; ?>
<a href=" validator.w3.org/check/referer">valid xhtml</a>
<a href=" jigsaw.w3.org/css-validator/check/referer">valid css</a>
</div>
</div>
</body>
</html>
Please Entrar ou Registrar to join the conversation.
- glauciarezende
- Offline
- JCB! Senior
Menos
Mais
- Postagens: 146
- Obrigados Recebidos: 0
13 anos 8 meses atrás #37184
por glauciarezende
glauciarezende replied the topic: Re: Alinhamento de modulo
Olá, amneves!
Resolvido seu problema!
Entrei no site e fiz mudança através do Firebug (uma ferramenta do Firefox)
Abra seu arquivo: template.css
E na linha 279 que é onde está formatada a div #content.
Vc coloca mais esta linha:
margin:0 auto;
Assim seu layout fica centralizado.
Finalizando a div #content tem que ficar assim:
#content {
margin:0 auto;
width:960px;
}
Sucesso!
Glaucia.
Resolvido seu problema!
Entrei no site e fiz mudança através do Firebug (uma ferramenta do Firefox)
Abra seu arquivo: template.css
E na linha 279 que é onde está formatada a div #content.
Vc coloca mais esta linha:
margin:0 auto;
Assim seu layout fica centralizado.
Finalizando a div #content tem que ficar assim:
#content {
margin:0 auto;
width:960px;
}
Sucesso!
Glaucia.
Please Entrar ou Registrar to join the conversation.
- amneves
- Autor do Tópico
- Offline
- JCB! Novato
Menos
Mais
- Postagens: 4
- Obrigados Recebidos: 0
13 anos 8 meses atrás #37187
por amneves
amneves replied the topic: Re: Alinhamento de modulo
Glaucia;
Você resolveu sim meu problema, Não sei como lhe agradecer.
Mesmo com minhas limitações se puder ajudar de alguma forma, estou a disposição.
Sucesso pra Você.
Você resolveu sim meu problema, Não sei como lhe agradecer.
Mesmo com minhas limitações se puder ajudar de alguma forma, estou a disposição.
Sucesso pra Você.
Please Entrar ou Registrar to join the conversation.
- glauciarezende
- Offline
- JCB! Senior
Menos
Mais
- Postagens: 146
- Obrigados Recebidos: 0
13 anos 8 meses atrás #37190
por glauciarezende
glauciarezende replied the topic: Re: Alinhamento de modulo
<!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt="" title="Legal" /><!-- s:P --> Que bom!
Ah, só o prazer de saber que fui útil já é uma recompensa
Qualquer coisa é só ir colocando coisas no Fórum e gente vai respondendo..
Abraços, bom final de semana ... yupiiiiiiiiii!
Ah, só o prazer de saber que fui útil já é uma recompensa
Qualquer coisa é só ir colocando coisas no Fórum e gente vai respondendo..
Abraços, bom final de semana ... yupiiiiiiiiii!
Please Entrar ou Registrar to join the conversation.
- Keira Fehon
- Offline
- JCB! Novato
Menos
Mais
- Postagens: 3
- Obrigados Recebidos: 0
2 anos 4 dias atrás #176158
por Keira Fehon
Keira Fehon replied the topic: Re: Alinhamento de modulo
You are guaranteed to have so much free time, I can advise you how to do it perfectly and you will have many times, this site
https://writemypaper.help/
will help you to complete any written work, while you make time for yourself
Please Entrar ou Registrar to join the conversation.