-2
I’m trying to make a table with bootstrap. It turns out that some things don’t work.
- The size of the TD’s are always the same.
- I can’t create rows to separate rows and columns, like a grid.
- I took a grid option with bootstrap, but in the same way I cannot create rows and columns.
Below my code to build the table
:
<div id="tabela" class="container">
<table class="table table-hover table-bordered table-striped" border="0">
<thead>
<tr>
<th>Nome</th>
<th>E-mail</th>
<th>Endereço</th>
<th>Bairro</th>
<th>Cidade</th>
<th>Estado</th>
<th>Telefone</th>
<th>Celular</th>
</tr>
</thead>
<tbody id="tbcadastro">
<tr>
<td>Nome</td>
<td>E-mail</td>
<td>Endereço</td>
<td>Bairro</td>
<td>Cidade</td>
<td>Estado</td>
<td>Telefone</td>
<td>Celular</td>
</tr>
</tbody>
</table>
</div>
Ué, this opened normal: http://jsfiddle.net/aymone/4tfuL/
– Marcelo Aymone
On the 2, add the class
table-bordered
in the table. Check the documentation: http://getbootstrap.com/css/#Tables– user7261
Already have @Andrey... Look at the table Class, I think the problem is another, maybe his css mixing, something like that.
– Marcelo Aymone
I put your code to run and it’s running perfectly, the
css
andjs
bootstrap are really running? I also find it unnecessaryborder=0
on your table.– Diego Vieira
You have another css file that is importing along with bootstrap css?
– Marcelo Aymone