2
I wish my chart looked like this.
but when adding the content to it it gets this look I’m not able to leave it as the top table.
function listarProdutos(){
var conteudo="<table border='1'>";
conteudo+="<tr>";
conteudo+="<div class='indice'><p>Indice</p></div>"
conteudo+="<div class='nome'><p>Nome</p></div>"
conteudo+="</tr>";
//pos contator
for(var pos=1;pos<indice.length;pos++){
conteudo+="<tr>";
conteudo+="<td>"+indice[pos]+"</td>";
conteudo+="<td>"+nomes[pos]+"</td>";
conteudo+="</tr>";
}
conteudo+="</table>";
document.getElementById("txtrelatorio").innerHTML=conteudo;
}
.indice, .nome{
font-size: 15pt;
font-weight: 700px;
background-color: #000066;
}
tr,td{
font-size: 14pt;
background-color: #000066;
color: #CCCCCC;
}
You are declaring tr and td with the same look, separate one css for tr and another for td, after all TR is line and TD is column. So you’re giving the same css to the whole table
– Victor