[RESOLVIDO]Posição RIGHT desceu..... templates da siteground

  • riccelly
  • Avatar de riccelly Autor do Tópico
  • Offline
  • JCB! Geek
  • JCB! Geek
Mais
15 anos 3 meses atrás #33947 por riccelly
riccelly created the topic: [RESOLVIDO]Posição RIGHT desceu..... templates da siteground
PESSOAL, uso um template que nao tinha pocição central... cria um e funciuonou,
mas o lado direito desceu... alguem sabe o motivo?

CONSEGUI! SEGUE A SOLUÇÃO. OBS: NÃO MEXI NA CSS E SIM NO INDEX.PHP! aproveitei uma ID do centro.

<div id="content">



<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>

<div id="leftcolumn">

<jdoc:include type="modules" name="left" style="rounded" /> </div>

<?php endif; ?>

<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>

<div id="maincolumn">

<?php if ($this->countModules('central')) : ?>
<div>
<jdoc:include type="modules" name="central" style="xhtml" />
</div>
<?php endif; ?>


<?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 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>

Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]

[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]

Please Entrar ou Registrar to join the conversation.


Mais
15 anos 3 meses atrás #33971 por Walkus
Walkus replied the topic: Re: Posição RIGHT desceu..... templates da siteground
riccelly;

Acredito que o problema esteja no largura da nova área criada.

Verifique isso e altere, com certeza sua área right deverá voltar ao normal.

Abç e sucesso

[color=#FF0000:1fjd1yw0][b:1fjd1yw0]>>> NÃO RESPONDO[/b:1fjd1yw0] dúvidas por MSN/MP/E-mail, somente em casos de extrema URGÊNCIA <<<[/color:1fjd1yw0][color=#008000:1fjd1yw0] ####[/color:1fjd1yw0] Obrigado
[color=#0000BF:1fjd1yw0]##[/color:1fjd1yw0][color=#8000FF:1fjd1yw0]##[/color:1fjd1yw0][color=#FF00FF:1fjd1yw0]##[/color:1fjd1yw0][color=#FF4040:1fjd1yw0]##[/color:1fjd1yw0][color=#FFBF00:1fjd1yw0]##[/color:1fjd1yw0][color=#FFFF00:1fjd1yw0]##[/color:1fjd1yw0][color=#BFFF80:1fjd1yw0]##[/color:1fjd1yw0][color=#8080FF:1fjd1yw0][b:1fjd1yw0]www.[/b:1fjd1yw0][/color:1fjd1yw0][color=#FF0000:1fjd1yw0][b:1fjd1yw0]wa[/b:1fjd1yw0][/color:1fjd1yw0][color=#000000:1fjd1yw0]master[/color:1fjd1yw0][color=#8080FF:1fjd1yw0][b:1fjd1yw0].com.br[/b:1fjd1yw0][/color:1fjd1yw0] [color=#FFFFBF:1fjd1yw0]##[/color:1fjd1yw0][color=#FFFF80:1fjd1yw0]##[/color:1fjd1yw0][color=#FFFF40:1fjd1yw0]##[/color:1fjd1yw0][color=#FFFF00:1fjd1yw0]##[/color:1fjd1yw0][color=#008000:1fjd1yw0]##[/color:1fjd1yw0]

Please Entrar ou Registrar to join the conversation.

Mais
15 anos 3 meses atrás #33976 por Andre MaNcHa
Andre MaNcHa replied the topic: Re: Posição RIGHT desceu..... templates da siteground
Provavelmente a largura total da div principal deve estar menor do que a soma da coluna da direita e esquerda de 220px + o content... verifique a soma deles para resolver.

Abs <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->

Please Entrar ou Registrar to join the conversation.

  • riccelly
  • Avatar de riccelly Autor do Tópico
  • Offline
  • JCB! Geek
  • JCB! Geek
Mais
15 anos 3 meses atrás #33986 por riccelly
riccelly replied the topic: Re: Posição RIGHT desceu..... templates da siteground
o CSS está assim:
#content {
margin:0 auto;
width:960px;
}

#leftcolumn, #rightcolumn {
float: left;
width: 220px;
padding:0;
margin:0 10px 10px 0;
}

#rightcolumn {
float: right;
margin:0 0 10px 10px;
}

div#maincolumn {
float: left;
padding:10px 10px 20px;
margin:0;
width:478px;
background:#fff;
border:1px solid #dbd8d8;
}

div#maincolumn_full {
margin:0 auto;
padding:10px 10px 20px;
width: 940px;
background:#fff;
border:1px solid #dbd8d8;
}

div#maincolumn_left, div#maincolumn_right {
float: left;
padding:10px 10px 20px;
margin:0;
width: 708px;
background:#fff;
border:1px solid #dbd8d8;
}

div#maincolumn_right {
padding:6px 9px 10px 10px;
}

Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]

[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]

Please Entrar ou Registrar to join the conversation.

Mais
15 anos 3 meses atrás #33989 por Andre MaNcHa
Andre MaNcHa replied the topic: Re: Posição RIGHT desceu..... templates da siteground
Ou vc diminui o "width" das colunas laterais ou separa as divs com uma medida pra cada coluna pra acertar..

Além disso tem espaçamentos de margin e padding.. onde pode estar ultrapassando a medida geral de 960px.

O site não está online?

Abs <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->

Please Entrar ou Registrar to join the conversation.