Ir para conteúdo

POWERED BY:

Arquivado

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

Ronaldo Bitencourt

Alinhamento de DIVS

Recommended Posts

Olá pessoal por favor me ajudem estou ficando meio loco já, estou começando a fazer minhas paginas agora com Webstandards mas estou tendo dificuldade na hora de centralizar uma DIV o problema é o seguinte:

 

 

Tenho uma div pai de width: 100% e dentro dela preciso colocar uma outra div CENTRALIZADA com width:778px, mas não estou conseguindo o endereço do q eu fiz ate agora é http://www.pixelweb.com.br/testes/new/ por favor já tentei pesquisar no fórum inteiro e não consegui achar a solução então tive q criar um tópico urgente heheeh!

 

 

o meu código é o seguinte:

 

 

CSS

html,body {margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background:#F9F9F9;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;height:100%;}#geral { width:100%;height:100%;}#left {float:left;width:auto;}#rigth{float:right;width:auto;}#base {width:778px;float:left;height:100%;background:url(../img/bg_shadow.jpg) center repeat-y;vertical-align:top;}

 

 

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>	<title>PSW v1.0 - GERENCIADOR DE CONTEÚDOS</title>	<link href="css/geral.css" rel="stylesheet" type="text/css" /></head><body><div id="geral">	<div id="left">asasa</div>	<div id="base">Leandro SUA BIXA </div>	<div id="rigth">asasas</div></div></body></html>

 

POR FAVOR ME AJUDEM, MAIS DO QUE NUNCA QUERO QUE MEUS CÓDIGOS FIQUEM DENTRO DAS NORMAS DA W3C :rolleyes:

 

 

MUITO OBRIGADO AGUARDO RESPOSTAS !!!

Compartilhar este post


Link para o post
Compartilhar em outros sites

#base {width:778px;float:left;height:100%;background:url(../img/bg_shadow.jpg) center repeat-y;vertical-align:top;margin:0 auto;}

[]'s

Compartilhar este post


Link para o post
Compartilhar em outros sites

valew cara pela ajuda mas mesmo assim não deu certo a div#base continua na esuerda

 

 

 

estou há dois dias nisso já é de perder cabelos !!! hehehe http://forum.imasters.com.br/public/style_emoticons/default/upset.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

valew cara pela ajuda mas mesmo assim não deu certo a div#base continua na esuerda estou há dois dias nisso já é de perder cabelos !!! hehehe http://forum.imasters.com.br/public/style_emoticons/default/upset.gif

#base {width:778px;height:100%;background:url(../img/bg_shadow.jpg) center repeat-y;vertical-align:top;margin:0 auto;}
E agora?

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.