td color classes not working with Essential

Re: td color classes not working with Essential

by Mary Evans -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi,

I have just been testing this in my Moodle 3.0 using the equivalent Essential Theme.

To get this to work you need to first add the class="table" to the table itself.

Next all you have to do is add to the <td> tag the following:

class="success" if you want a green background color

class="error" if you want a pink background color

<table class="table">
<caption>TEST</caption>
<tbody>
    <tr>
        <td class="success">SUCCESS</td>
        <td>1</td>
        <td>2</td>
    </tr>
    <tr>
        <td class="error">ERROR</td>
        <td>1</td>
        <td>2</td>
    </tr>
</tbody>
</table>
TEST
SUCCESS 1 2
ERROR 1 2

Sadly it does not work here but it does in Essential theme for Moodle 3.0

Hope this helps?

Mary.