Jump to content


Photo

Já Tentei De Varias Formas E Não Consigo...


  • Faça o login para participar
7 replies to this topic

#1 rancidrancid

rancidrancid

    Turista

  • Usuários
  • 40 posts
  • Sexo:Não informado

Posted 12/12/2004, 14:48

Já tentei de várias formas centralizar o site e não to conseguindoo , tem alguma parte no html se eu trocar ele fica ?

OBRIGADO




html>
<head>
<title> titulo </title>
<script language="JavaScript">
<!--
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,';
else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
if(h!="") windowProperties+='height='+h; if(windowProperties!="") {
if( windowProperties.charAt(windowProperties.length-1)==',')
windowProperties=windowProperties.substring(0,windowProperties.length-1); }
window.open(url,name,windowProperties);
}
// -->
</script>
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="#000000">

<table width="778" height="101" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="101" valign="top">
<style type="text/css">
<!--
a {text-decoration:none;}
.unnamed1 { border-top: 1px none #255699;
border-right: 1px solid #255699;
border-bottom: 1px solid #255699;
border-left: 1px solid #255699;
}
-->
</style>

<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="778" height="100">
<param name="movie" value="topo.swf">
<param name="quality" value="High">
<embed src="topo.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj1" width="778" height="100"></object>

<br>
</td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" height="19">
<tr>
<td width="242" height="19" align="center"> <p align="left"><font color="#CC0000">
&nbsp;
<script language="JavaScript"><!--

hoje = new Date()
dia = hoje.getDate()
dias = hoje.getDay()
mes = hoje.getMonth()
ano = hoje.getYear()
if (dia < 10)
dia = "0" + dia
if (ano < 2000)
ano = "19" + ano
function CriaArray (n) {
this.length = n }
NomeDia = new CriaArray(7)
NomeDia[0] = "Domingo"
NomeDia[1] = "Segunda-feira"
NomeDia[2] = "Terça-feira"
NomeDia[3] = "Quarta-feira"
NomeDia[4] = "Quinta-feira"
NomeDia[5] = "Sexta-feira"
NomeDia[6] = "Sábado"
//
NomeMes = new CriaArray(12)
NomeMes[0] = "Janeiro"
NomeMes[1] = "Fevereiro"
NomeMes[2] = "Março"
NomeMes[3] = "Abril"
NomeMes[4] = "Maio"
NomeMes[5] = "Junho"
NomeMes[6] = "Julho"
NomeMes[7] = "Agosto"
NomeMes[8] = "Setembro"
NomeMes[9] = "Outubro"
NomeMes[10] = "Novembro"
NomeMes[11] = "Dezembro"

// function WriteDate() {
document.write ("<font color='white' size='1' face='arial'>" + NomeDia[dias] + ", " + dia + " de " + NomeMes[mes] + " de " + ano + " </font>")
// }
// --></script>
</font></p></td>
<td width="536" height="19" align="center">
<table border="0" width="100%" id="table2" cellspacing="1" cellpadding="0">
<tr>
<td align="center"><b><font face="Verdana" size="1" color="#FFFFFF">
<a target="_self" href="home.htm"><font color="#FFFFFF">HOME&nbsp;&nbsp; </font>
</a> </font></b></td>
<td align="center"><b><font face="Verdana" size="1" color="#FFFFFF">
<a target="_self" href="eventos.htm"><font color="#FFFFFF">EVENTOS</font></a></font></b></td>
<td align="center"><b><font face="Verdana" size="1" color="#FFFFFF">
<a target="_self" href="fotos.htm"><font color="#FFFFFF">FOTOS</font></a></font></b></td>
<td align="center"><b><font face="Verdana" size="1" color="#FFFFFF">
<a target="_self" href="faz.htm"><font color="#FFFFFF">QUEM FAZ</font></a></font></b></td>
<td align="center"><b><font face="Verdana" size="1" color="#FFFFFF">
<a target="_self" href="publicidade.htm"><font color="#FFFFFF">PUBLICIDADE</font></a></font></b></td>
<td align="center">
<p align="center"><b><font color="#FFFFFF" face="Verdana" size="1">
<a target="_self" href="contato.htm"><font color="#FFFFFF">CONTATO</font></a></font></b></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" height="166">
<tr>
<td bgcolor="#F9c302" width="553">
</tr>
<tr>
<td width="837" height="166" valign="top">
<table border="0" width="104%" cellspacing="1" cellpadding="2" height="275">
<tr>
<td width="104%" valign="top">
<table border="0" width="100%" id="table1" cellspacing="4">
<tr>
<td valign="top">
<p align="center">
<font color="#F9C302" size="2"> <b>
<font face="Verdana, Arial, Helvetica, sans-serif">
::</font></b></font><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#F9C302">Quem
faz::</font></b><p align="center"><span class="fontNegrito"> </span>
<p>&nbsp;</td>
<td width="157" valign="top">
<table border="0" width="100%" id="table4" cellspacing="5" cellpadding="0">
<tr>
<td>
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj2" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="120" height="60" align="left">
<param name="movie" value="emporio.swf">
<param name="quality" value="High">
<embed src="emporio.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj2" width="120" height="60"></object>
</td>
</tr>
<tr>
<td>
<p>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj4" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="120" height="60">
<param name="movie" value="scorpim.swf">
<param name="quality" value="High">
<embed src="scorpim.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj4" width="120" height="60"></object>
</td>
</tr>
<tr>
<td>
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj3" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="120" height="60" align="left">
<param name="movie" value="enigma.swf">
<param name="quality" value="High">
<embed src="enigma.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj3" width="120" height="60"></object>
</td>
</tr>
<tr>
<td>
<p align="center">
</td>
</tr>
<tr>
<td>
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj6" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="120" height="60" align="left">
<param name="movie" value="trans.swf">
<param name="quality" value="High">
<embed src="trans.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj6" width="120" height="60"></object>
</td>
</tr>
<tr>
<td>
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj5" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="120" height="60" align="left">
<param name="movie" value="sala.swf">
<param name="quality" value="High">
<embed src="sala.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj5" width="120" height="60"></object>
</td>
</tr>
<tr>
<td>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj7" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="120" height="60">
<param name="movie" value="fordent.swf">
<param name="quality" value="High">
<embed src="fordent.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj7" width="120" height="60"></object>
</td>
</tr>
<tr>
<td>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj8" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="120" height="60">
<param name="movie" value="atual.swf">
<param name="quality" value="High">
<embed src="atual.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj8" width="120" height="60"></object>
</td>
</tr>
<tr>
<td>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj9" codebase="http://download.macr...rsion=6,0,40,0" border="0" width="120" height="60">
<param name="movie" value="anuncieaki.swf">
<param name="quality" value="High">
<embed src="anuncieaki.swf" pluginspage="http://www.macromedi...getflashplayer" type="application/x-shockwave-flash" name="obj9" width="120" height="60"></object>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="778">
<div align="right">
<p><font color="#999999" size="1" face="Verdana" class="msnNav">&nbsp;
</font><b> <font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" size="1">
font></b><font color="#CCCCCC">&nbsp;</font></div>
</td>
</tr>
</table>
</body>
</html>

#2 nemu

nemu
  • Visitantes

Posted 12/12/2004, 17:02

cara tb presizo disso, mais acho que é só colocar todo o site dentro de uma tabela e colocar para a tabela ficar centralizada

#3 Daburah_RJ

Daburah_RJ

    12 Horas

  • Usuários
  • 191 posts
  • Sexo:Não informado
  • Localidade:RIO DE JANEIRO

Posted 12/12/2004, 19:28

Fala rapaziada, blz?

Bem, n sei se entendi. Mas se o problema é centralizar a estrutura do site, basta
colocar <CENTER> antes da tabela principal do site ou então colocar dentro da
tabela principal do site o parâmetro align="center"

Ex.:

<CENTER>
<table>
</table>

OU

<table border=1 align="center" .......... >

Sacaram?

#4 Crab

Crab

    Da paz, mas preparado para Guerra

  • Ex-Admins
  • 2521 posts
  • Sexo:Masculino
  • Localidade:Florianópolis - SC
  • Interesses:Desenvolvimento Gráfico e Web.

Posted 13/12/2004, 01:13

Daburah, desta forma apenas centralizara na horizontal, e a idéia é centralizar na vertical tbm.

quer dizer eu acho que era isso que ele queria ... mas se não for ... filtre todas as dicas e veja qual se encaixa melhor.

Aliás esta sua dúvida já foi muitas vezes respondidas. e se usar a busca vai encontrar muita coisa sobre o assunto.

Tente Criar uma tabela mestra tipo coloque ele com 100% de altura e 100% de largura.

Clique dentro da tabela e escolha na paleta de Propriedades as opções:

Horz - Center
Vert - Middle

Agora todo o conteúdo do seu site deve ser colocado dentro desta tabela inclusive outras tabelas se quiser.

Com certeza ficará cntralizado ... dá uma tentada e use a busca antes de pergutar da próxima vez.

As vezes é de maior ajuda.

(y) Até mais

#5 rancidrancid

rancidrancid

    Turista

  • Usuários
  • 40 posts
  • Sexo:Não informado

Posted 13/12/2004, 02:05

Valeu galeraa deu certo ... (y) (y)

#6 Daburah_RJ

Daburah_RJ

    12 Horas

  • Usuários
  • 191 posts
  • Sexo:Não informado
  • Localidade:RIO DE JANEIRO

Posted 13/12/2004, 16:06

Ah é! :P
Agora que eu entendi o que ele tava perguntando.

Muito boa colocação amigo Crab

#7 D@kness @ngel

D@kness @ngel

    Turista

  • Usuários
  • 43 posts
  • Sexo:Não informado
  • Localidade:Rio de Janeiro
  • Interesses:Internet, guitarras, mulheres, musicas, Nirvana, rock!!!

Posted 05/01/2005, 14:07

Po cara, eu coloquei o seguinte no meu site:

#central {
border: 1px solid #ffffff;
width: 801px;
height:572px;
position:absolute;
top: 50%;
left: 50%;
margin-top:-286px;
margin-left: -400px;
}

Criei um div e coloquei todo o conteudo dentro desse div, ai ficou tudo centralizado, tanto no ie quanto no mozilla, porque eu tinha colocado o <center> ai só centralizou no ie e no mozilla ficou desalinhado, ai coloquei isso aí, ai centralizou nos dois, ou até mesmo nos outros browser's.

Vc terá que mudar os tamanhos do width e height, diminuir ou aumentar, se não, não dara certo, use as bordas para ver o tamnho, coloque bem junto ao conteudo da pagina, depois é só tirar a borda!

Lembrando que margin-top é -a metade do seu height, e margin-left é - a metade do width.
Valeu?!?!?

(y) :ph34r:
A morte é só um passo para a imortalidade!!!
Ninguem é melhor do que eu. E eu naum sou melhor do q ninguem!!!
alex_rlduart@yahoo.com.br

Caso meu futuro chegue despercebido, não se preocupe, virei te dar um último beijo, visitarei seus sonhos todas as noites, serei um anjo e um demonio, serei a morte e a vida, serei eu e serei você. Você nunca se esquecerá de mim, porque eu não deixarei.

Meus inimigos terão uma morte perversa, se vc tem amor a vida, seja meu amigo, terei piedade até no momento de minha Ira.


#8 rancidrancid

rancidrancid

    Turista

  • Usuários
  • 40 posts
  • Sexo:Não informado

Posted 05/01/2005, 15:09

Valeu Obrigado ! (y)




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq