I have a table that is supposed to have a "table-class" class, but the class isn't even recognized/read and the properties don't show up in the table. I'm using azure appServiceEditor and when I run the code the output is just a default stylesheet so the attribute of class="table-class" is not read. However, when I insert any other class instead of "Table Class", the properties are displayed. I don't understand what the problem is.
.table-class { position: absolute; display: block; font-family: arial, sans-serif; border-collapse: collapse; z-index: 10000000; background-color: rgba(0, 0, 0, 0.5); border-radius: 5%; color: white; } .table-class td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } .table-class tr:nth-child(even) { background-color: rgba(0, 0, 0, 0.6); }
<table class="table-class"> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> <td>Germany</td> </tr> <tr> <td>Centro comercial Moctezuma</td> <td>Francisco Chang</td> <td>Mexico</td> </tr> <tr> <td>Ernst Handel</td> <td>Roland Mendel</td> <td>Austria</td> </tr> <tr> <td>Island Trading</td> <td>Helen Bennett</td> <td>UK</td> </tr> <tr> <td>Laughing Bacchus Winecellars</td> <td>Yoshi Tannamuri</td> <td>Canada</td> </tr> <tr> <td>Magazzini Alimentari Riuniti</td> <td>Giovanni Rovelli</td> <td>Italy</td> </tr> </table>
Use this code instead of table class