Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
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"> <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 !!!
Carregando comentários...