Jump to content
Fórum Script Brasil
  • 0

Centralizar Pagina No Meio Da Tela


visual_online
 Share

Question

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 {

margin:0;

padding:0;

background:#cccccc;

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;

}

</style>

Aqui engloba tudo, dentro do body:

<body ...

<div id="tudo">

<div id="conteudo">

</body...

</html>

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.

Guest
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.

 Share



  • Forum Statistics

    • Total Topics
      151k
    • Total Posts
      649k
×
×
  • Create New...