Jump to content
Fórum Script Brasil
  • 0

Tabela Com Div E Css Sem Hack


hipnos na area
 Share

Question

Por bastante tempo procurei uma maneira de criar colunas e linhas sem TABELAS <table>, <tr>, <th> e <td>

com DIV's sem usar posicionamento "POSITION:ABSOULUTE;" ou sem usar HACKS <!--if IE --><![endif]-->

Essa foi a solucao que eu arrumei... espero que ajude

Css

*{
        margin:2; /*Defin a a separacao das colunas aqui*/
        padding:0;
    }
    .linha{
        padding:0;
        clear:both;
    }

    .coluna{    
        height:25px;
        border: 1px solid #000000;
        width:120;      
        float:left;
    }
HTML
<div class="linha">
    <div class="coluna"> TABELA 1</div>
    <div class="coluna"> TABELA 2</div>
    <div class="coluna"> TABELA 3</div>
    <div class="coluna"> TABELA 4</div>
</div>
<div class="linha">
    <div class="coluna"> TABELA 1</div>
    <div class="coluna"> TABELA 2</div>
    <div class="coluna"> TABELA 3</div>
    <div class="coluna"> TABELA 4</div>
</div>

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.

 Share



  • Forum Statistics

    • Total Topics
      150.1k
    • Total Posts
      647.1k
×
×
  • Create New...