The different editors do not work the same way so moving between them can result in a loss of formatting. I think your problem may be that moving to the Rich Text Editor (RTE) ignores your <style></style> section.
Put the css in userstyle.css and just add only the <div> class to the note. It seems to work as the css for the class is no longer part of the note. It also means that you can use that class in any note.
In this example I have called the class "planner" and I have nested the css but it does the same thing.
userstyle.css
.planner {
th {
background: lightgrey;
}
tr:nth-child(odd) {
background: lightblue;
font-weight: bold;
}
}
Note Editor
<div class="planner">
| LUNEDÌ | MARTEDÌ | MERCOLEDÌ | GIOVEDÌ | VENERDÌ | SABATO | DOMENICA |
| --- | --- | --- | --- | --- | --- | --- |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| Pat<br><br>Open<br><br>Lat geb | Far | | GEP<br>**12.00 joh** | Dut | | |
| 28 | 29 | 30 | 31 | 1 NOV | 2 | 3 |
| Ghe | | | | | | |
</div>

2 Likes