-1
I’m trying to change the name of a column of my table through css, tried something like:
th#colunatableprod:nth-of-type(1):before { content: "Produto"!important; }
My table:
 <table class="table">
    <thead class="black white-text">
        <tr>
            <th id="colunatableprod" scope="col">Produto</th>
            <th id="colunaindicelucro" scope="col">Índice de Lucro</th>
            <th id="colunamlpremium" scope="col">ML Premium</th>
            <th id="colunamlclassico" scope="col">ML Clássico</th>
        </tr>
    </thead>
        <tr>
           <td>x</td>
           <td>y</td>
           <td>z</td>
           <td>aa</td>
       </tr>
</table>
With CSS you cannot change DOM nodes. Only with Javascript.
– Sam
with you yes because I already do it with a table, but I want to do it with two tables in the same css, I got it but I can’t remember now.
– veroneseComS
An id is unique, you should not use Nth-of-type(1) for something unique.
– Sam
A simple Javascript line replaces the text of an element with an id easily. But...
– Sam
In my view pseudo-classes do not serve to change us. Vc can even mask, but that is not the use of the resource.
– Sam