Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

paleogoti

Erro ao Centralizar a Pagina.

Recommended Posts

http://forum.imasters.com.br/public/style_emoticons/default/joia.gif Salve, pessoal da Imaster. Esse duvida postei em alguns forums e não obtive resposta. Atravez da indicação de um amigo, venho a postar essa duvida aqui. Eu não intendo nada de nenhuma linguagem, mas mesmo assim estou me atrevendo ao montar uma pagina pessoal pra mim. Eu fiz a pagina no Firewors há recortei e exportei. Logico uma pagina html foi criada junto com as imagens exportadas, ai fui editala no Dreamweaver, coloquei os links, depois resolvi centralizala, primeiro usei as tags abaixo:

<body><div align=center>--Conteúdo--</div></body>

Mas ai o texto ficou dessa maneira como podem ver nessa imagem: http://www.imagepot.us/viewimage.php?file=...es/gJQ41969.jpgEmtão usei um pequeno codigo em Css:

<style type="text/css">body {margin:0;padding:0;background:#000000;text-align:center; /* hack para o IE */ }#tudo {width: 760px;margin:0 auto; padding: 10px;text-align:left; /* "remédio" para o hack do IE */ }#conteudo {padding: 5px;background-color: #eeeeee; }

O site foi centralizado assim como da outra vez, mas o ploblema no texto permaneceu. Depois, criei uma tabela e coloquei o site dentro, depois centralizei a tabela, e o mesmo erro permaneceu. casso nessesario, ai vai o codigo da minha pagina:

<!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"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title><style type="text/css">td img {display: block;}body { background-color: #666666;}body,td,th { font-family: xscale; color: #666666; font-size: 14px;}#Layer1 { position:absolute; width:43px; height:13px; z-index:1; left: 605px; top: 568px;}#Layer2 { position:absolute; width:60px; height:14px; z-index:2; left: 605px; top: 588px;}a:visited { text-decoration: none; color: #666666;}a:hover { color: #666666; text-decoration: none;}a:active { color: #CCCCCC; text-decoration: none;}#Layer3 { position:absolute; width:50px; height:15px; z-index:3; left: 605px; top: 610px;}#Layer4 { position:absolute; width:84px; height:15px; z-index:4; left: 608px; top: 702px;}#Layer5 { position:absolute; width:48px; height:14px; z-index:5; left: 609px; top: 727px;}#Layer6 { position:absolute; width:58px; height:14px; z-index:6; left: 609px; top: 751px;}#Layer7 { position:absolute; width:56px; height:14px; z-index:7; left: 607px; top: 777px;}#Layer8 { position:absolute; width:108px; height:13px; z-index:8; left: 607px; top: 806px;}#Layer9 { position:absolute; width:109px; height:13px; z-index:9; left: 607px; top: 837px;}#Layer10 { position:absolute; width:104px; height:16px; z-index:10; left: 608px; top: 860px;}a:link { text-decoration: none; color: #666666;}#Layer11 { position:absolute; width:34px; height:12px; z-index:11; left: 54px; top: 276px;}</style></head><body><div align="center"> <table width="778" height="296" border="1"> <tr> <td><div id="Layer1"><a href="index.html">Index</a></div> <table border="0" cellpadding="0" cellspacing="0" width="768"> <!-- fwtable fwsrc="Untitled-4.png" fwbase="index.jpg" fwstyle="Dreamweaver" fwdocid = "1688422" fwnested="0" --> <tr> <td><img src="spacer.gif" width="6" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="8" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="86" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="32" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="49" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="41" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="41" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="25" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="12" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="41" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="19" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="118" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="6" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="16" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="74" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="39" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="18" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="130" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="7" height="1" border="0" alt="" /></td> <td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td> </tr> <tr> <td colspan="9"><img name="index_r1_c1" src="index_r1_c1.jpg" width="300" height="186" border="0" id="index_r1_c1" alt="" /></td> <td colspan="7"><img name="index_r1_c10" src="index_r1_c10.jpg" width="313" height="186" border="0" id="index_r1_c10" alt="" /></td> <td colspan="3"><img name="index_r1_c17" src="index_r1_c17.jpg" width="155" height="186" border="0" id="index_r1_c17" alt="" /></td> <td><img src="spacer.gif" width="1" height="186" border="0" alt="" /></td> </tr> <tr> <td colspan="14"><img name="index_r2_c1" src="index_r2_c1.jpg" width="500" height="11" border="0" id="index_r2_c1" alt="" /></td> <td rowspan="3" colspan="3"><img name="index_r2_c15" src="index_r2_c15.jpg" width="131" height="38" border="0" id="index_r2_c15" alt="" /></td> <td rowspan="3" colspan="2"><img name="index_r2_c18" src="index_r2_c18.jpg" width="137" height="38" border="0" id="index_r2_c18" alt="" /></td> <td><img src="spacer.gif" width="1" height="11" border="0" alt="" /></td> </tr> <tr> <td rowspan="5" colspan="2"><img name="index_r3_c1" src="index_r3_c1.jpg" width="14" height="272" border="0" id="index_r3_c1" alt="" /></td> <td><a href="downloads.html"><img name="index_r3_c3" src="index_r3_c3.jpg" width="86" height="19" border="0" id="index_r3_c3" alt="" /></a></td> <td rowspan="3"><img name="index_r3_c4" src="index_r3_c4.jpg" width="32" height="55" border="0" id="index_r3_c4" alt="" /></td> <td><a href="racas.html"><img name="index_r3_c5" src="index_r3_c5.jpg" width="49" height="19" border="0" id="index_r3_c5" alt="" /></a></td> <td rowspan="3"><img name="index_r3_c6" src="index_r3_c6.jpg" width="41" height="55" border="0" id="index_r3_c6" alt="" /></td> <td><a href="game.html"><img name="index_r3_c7" src="index_r3_c7.jpg" width="41" height="19" border="0" id="index_r3_c7" alt="" /></a></td> <td rowspan="3"><img name="index_r3_c8" src="index_r3_c8.jpg" width="25" height="55" border="0" id="index_r3_c8" alt="" /></td> <td colspan="2"><a href="cheats.html"><img name="index_r3_c9" src="index_r3_c9.jpg" width="53" height="19" border="0" id="index_r3_c9" alt="" /></a></td> <td rowspan="3"><img name="index_r3_c11" src="index_r3_c11.jpg" width="19" height="55" border="0" id="index_r3_c11" alt="" /></td> <td><a href="charh.html"><img name="index_r3_c12" src="index_r3_c12.jpg" width="118" height="19" border="0" id="index_r3_c12" alt="" /></a></td> <td rowspan="3" colspan="2"><img name="index_r3_c13" src="index_r3_c13.jpg" width="22" height="55" border="0" id="index_r3_c13" alt="" /></td> <td><img src="spacer.gif" width="1" height="19" border="0" alt="" /></td> </tr> <tr> <td rowspan="2"><img name="index_r4_c3" src="index_r4_c3.jpg" width="86" height="36" border="0" id="index_r4_c3" alt="" /></td> <td rowspan="2"><img name="index_r4_c5" src="index_r4_c5.jpg" width="49" height="36" border="0" id="index_r4_c5" alt="" /></td> <td rowspan="2"><img name="index_r4_c7" src="index_r4_c7.jpg" width="41" height="36" border="0" id="index_r4_c7" alt="" /></td> <td rowspan="2" colspan="2"><img name="index_r4_c9" src="index_r4_c9.jpg" width="53" height="36" border="0" id="index_r4_c9" alt="" /></td> <td rowspan="2"><img name="index_r4_c12" src="index_r4_c12.jpg" width="118" height="36" border="0" id="index_r4_c12" alt="" /></td> <td><img src="spacer.gif" width="1" height="8" border="0" alt="" /></td> </tr> <tr> <td colspan="5"><img name="index_r5_c15" src="index_r5_c15.jpg" width="268" height="28" border="0" id="index_r5_c15" alt="" /></td> <td><img src="spacer.gif" width="1" height="28" border="0" alt="" /></td> </tr> <tr> <td><img name="index_r6_c3" src="index_r6_c3.jpg" width="86" height="198" border="0" id="index_r6_c3" alt="" /></td> <td><img name="index_r6_c4" src="index_r6_c4.jpg" width="32" height="198" border="0" id="index_r6_c4" alt="" /></td> <td><img name="index_r6_c5" src="index_r6_c5.jpg" width="49" height="198" border="0" id="index_r6_c5" alt="" /></td> <td colspan="5"><img name="index_r6_c6" src="index_r6_c6.jpg" width="160" height="198" border="0" id="index_r6_c6" alt="" /></td> <td colspan="2"><img name="index_r6_c11" src="index_r6_c11.jpg" width="137" height="198" border="0" id="index_r6_c11" alt="" /></td> <td colspan="2"><img name="index_r6_c13" src="index_r6_c13.jpg" width="22" height="198" border="0" id="index_r6_c13" alt="" /></td> <td colspan="4"><img name="index_r6_c15" src="index_r6_c15.jpg" width="261" height="198" border="0" id="index_r6_c15" alt="" /></td> <td rowspan="13"><img name="index_r6_c19" src="index_r6_c19.jpg" width="7" height="1031" border="0" id="index_r6_c19" alt="" /></td> <td><img src="spacer.gif" width="1" height="198" border="0" alt="" /></td> </tr> <tr> <td colspan="16"><img name="index_r7_c3" src="index_r7_c3.jpg" width="747" height="19" border="0" id="index_r7_c3" alt="" /></td> <td><img src="spacer.gif" width="1" height="19" border="0" alt="" /></td> </tr> <tr> <td rowspan="12"><img name="index_r8_c1" src="index_r8_c1.jpg" width="6" height="830" border="0" id="index_r8_c1" alt="" /></td> <td rowspan="5" colspan="12"><img name="index_r8_c2" src="index_r8_c2.jpg" width="478" height="201" border="0" id="index_r8_c2" alt="" /></td> <td colspan="5"><img name="index_r8_c14" src="index_r8_c14.jpg" width="277" height="12" border="0" id="index_r8_c14" alt="" /></td> <td><img src="spacer.gif" width="1" height="12" border="0" alt="" /></td> </tr> <tr> <td rowspan="10" colspan="2"><img name="index_r9_c14" src="index_r9_c14.jpg" width="90" height="802" border="0" id="index_r9_c14" alt="" /> <div id="Layer10"><a href="crack.html">Crack e Patch </a></div> <div id="Layer9"><a href="linha.html">linha do tempo </a></div> <div id="Layer8"><a href="charh.html">VilÔEs e Herois </a></div> <div id="Layer7"><a href="cheats.html">Cheats</a></div> <div id="Layer6"><a href="game.html">O Game </a></div> <div id="Layer5"><a href="racas.html">raÇas</a></div> <div id="Layer4"><a href="downloads.html">downloads</a></div> <div id="Layer3">Forum</div> <div id="Layer2"><a href="mailto:spark_virtual@hotmail.com">contato</a></div></td> <td colspan="3"><img name="index_r9_c16" src="index_r9_c16.jpg" width="187" height="59" border="0" id="index_r9_c16" alt="" /></td> <td><img src="spacer.gif" width="1" height="59" border="0" alt="" /></td> </tr> <tr> <td colspan="3"><img name="index_r10_c16" src="index_r10_c16.jpg" width="187" height="89" border="0" id="index_r10_c16" alt="" /></td> <td><img src="spacer.gif" width="1" height="89" border="0" alt="" /></td> </tr> <tr> <td colspan="3"><img name="index_r11_c16" src="index_r11_c16.jpg" width="187" height="35" border="0" id="index_r11_c16" alt="" /></td> <td><img src="spacer.gif" width="1" height="35" border="0" alt="" /></td> </tr> <tr> <td rowspan="2" colspan="3"><img name="index_r12_c16" src="index_r12_c16.jpg" width="187" height="211" border="0" id="index_r12_c16" alt="" /></td> <td><img src="spacer.gif" width="1" height="6" border="0" alt="" /></td> </tr> <tr> <td rowspan="2" colspan="12"><img name="index_r13_c2" src="index_r13_c2.jpg" width="478" height="213" border="0" id="index_r13_c2" alt="" /></td> <td><img src="spacer.gif" width="1" height="205" border="0" alt="" /></td> </tr> <tr> <td rowspan="2" colspan="3"><img name="index_r14_c16" src="index_r14_c16.jpg" width="187" height="53" border="0" id="index_r14_c16" alt="" /></td> <td><img src="spacer.gif" width="1" height="8" border="0" alt="" /></td> </tr> <tr> <td rowspan="2" colspan="12"><img name="index_r15_c2" src="index_r15_c2.jpg" width="478" height="292" border="0" id="index_r15_c2" alt="" /></td> <td><img src="spacer.gif" width="1" height="45" border="0" alt="" /></td> </tr> <tr> <td rowspan="3" colspan="3"><img name="index_r16_c16" src="index_r16_c16.jpg" width="187" height="355" border="0" id="index_r16_c16" alt="" /></td> <td><img src="spacer.gif" width="1" height="247" border="0" alt="" /></td> </tr> <tr> <td colspan="12"><img name="index_r17_c2" src="index_r17_c2.jpg" width="478" height="93" border="0" id="index_r17_c2" alt="" /></td> <td><img src="spacer.gif" width="1" height="93" border="0" alt="" /></td> </tr> <tr> <td rowspan="2" colspan="12"><img name="index_r18_c2" src="index_r18_c2.jpg" width="478" height="31" border="0" id="index_r18_c2" alt="" /></td> <td><img src="spacer.gif" width="1" height="15" border="0" alt="" /></td> </tr> <tr> <td colspan="6"><img name="index_r19_c14" src="index_r19_c14.jpg" width="284" height="16" border="0" id="index_r19_c14" alt="" /></td> <td><img src="spacer.gif" width="1" height="16" border="0" alt="" /></td> </tr> </table></td> </tr> </table></div></body></html>

Obrigado pela atenção t+

Compartilhar este post


Link para o post
Compartilhar em outros sites

<div align=center>Assim você centraliza a camada onde está o texto, não o texto em si nem o parágrafo.Tenta fazer no DreamWeaver ou FrontPage alinhado o texto selecionado(ou parágrafo). Deve funcionar assim.

Compartilhar este post


Link para o post
Compartilhar em outros sites

<center></center> pode ajudar, não sei se no seu caso.

 

[]tz ;)

Compartilhar este post


Link para o post
Compartilhar em outros sites

Cara, poste um link e diga onde está o problema...fica bem mais fácil!!!Ficar olhando um código gigante e feito com tabelas....fica dificil.[]'s

Compartilhar este post


Link para o post
Compartilhar em outros sites

e viva as tabelas \o/eu num tenho as manhas do tableless ehhehehe

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.