Rendering div out of thead tags

Asked

Viewed 23 times

1

I am creating a table in this following template

<table class="table table-bordered table-striped  table-colored ">
    <thead>
       <tr>
          <th rowspan="2">Código</th>
           <th rowspan="2">Descrição</th>
           <th rowspan="2">Quantidade</th>
           <th rowspan="2">Unidade</th>
           <div class='fornecedor-material-th'>
           </div>
           <th rowspan="2">Fornecedor Compra</th>
        </tr>
     </thead>
       <tr>
            <div class='fornecedor-material-th-row2'>

             </div>
        </tr>

But when rendered by the browser Divs are outside the table

inserir a descrição da imagem aqui

  • Guy inside a table you can’t use allowed tags. Tr td th tbody thead tfooter, you can not by a div as direct son of una tr, but can put the div inside th that eh the indicated

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.