3
My code that presents the problem and this:
html:
<body>
<table class="default_grid">
<thead>
<tr>
<th class="opcao1">Opção 1</th>
<th class="opcao2">Opção 2</th>
</tr>
</thead>
</table>
</body>
css:
{
background-color: aliceblue;
}
.default_grid {
text-align: left;
width: 600px;
color: white;
}
.default_grid .opcao1 {
background-color: purple;
}
.default_grid .opcao2 {
background-color: orange;
}
The problem appears in internet explorer, testo is centered, not aligned on the left, how to solve it ?
{
background-color: aliceblue;
}
.default_grid {
text-align: left;
width: 600px;
color: white;
}
.default_grid .opcao1 {
background-color: purple;
}
.default_grid .opcao2 {
background-color: orange;
}
<body>
<table class="default_grid">
<thead>
<tr>
<th class="opcao1">Opção 1</th>
<th class="opcao2">Opção 2</th>
</tr>
</thead>
</table>
</body>
I think in IE you really have to put
.default_grid th { text-align: left;}
. You already tested that?– Sergio
I just tested, solved! Post as answer to be able to score
– DoctorNo