Jump to content
Fórum Script Brasil
  • 0

centralizando table e form


SCIENTIST

Question

BOm, tenho tabelas que apenas mostram os registros, porém tenho tabelas que contém forms dentro, o que eu queria é que essas tabelas que contém apenas dados dentro, tudo ficasse centralizado, porém as que contém form não fossem centralizadas, continuassem com a alinhamento à esquerda.

Meu css no momento está assim, mais não funciona:

form{
    background-color: #f2f2f2;
    margin: 10px 0 10px 0;
    width: 100%;
}

table {border-collapse: collapse; border: 1px solid #ccc; width: 100%;}

table tbody td{
    padding: 6px;
    color: #333;
    font-size: 9px;
    text-align: center;
}

table thead th { background-color:#87CEEB; 
                 font: bold; 
                 color: #FFFFFF; 
                 font-size: 14px;
                 padding: 6px;
                 text-align: center;}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...