Jump to content
Fórum Script Brasil
  • 0

Centralizar Pagina No Meio Da Tela



Olá gente, estou com um problema, pois tenho uma pagina com tabelas e algumas layers e consegui um codigo que centraliza a pagina no meio da tela, mas so que as layers não atendem ao codigo CSS, somente o html. O que posso fazer pra resolver isso?

Aqui, o codigo CSS:

<style type="text/css">

body {




text-align:center; /* hack para o IE */


#tudo {

width: 790px;

margin:0 auto;

padding: 10px;

text-align:left; /* "remédio" para o hack do IE */


#conteudo {

padding: 5px;

background-color: #eeeeee;



Aqui engloba tudo, dentro do body:

<body ...

<div id="tudo">

<div id="conteudo">



Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...