I can't seem to get the HTML to appear like I want, something like this (ignore the tokens):
What I have above is what I have produced in Visual Studio Code and shown in the browser with live server, so I know I have the syntax correct. This is what I have:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> </head> <body> <table style="background-color: #ffffe0; color: black; border: 1px solid #bdb76b" > <tr style="background-color: darkgreen; color: white"> <th style="background-color: darkgreen; color: white">Scanner</th> <th style="background-color: darkgreen; color: white">Start Date</th> <th style="background-color: darkgreen; color: white">End Date</th> <th style="background-color: darkgreen; color: white">Documents</th> </tr> <tr style="background-color: darkgreen; color: white"> <td>%(_scanner_fullNames#[1]#)</td> <td>%(_tc__oneMonthAgo)</td> <td>%(_tc__today)</td> <td>%(_resultCount#[1]#)</td> </tr> <tr style="background-color: darkgreen; color: white"> <td>%(_scanner_fullNames#[2]#)</td> <td>%(_tc__oneMonthAgo)</td> <td>%(_tc__today)</td> <td>%(_resultCount#[2]#)</td> </tr> </table> </body> </html>
I see that in-line CSS seems to work because I was able to change the font color to blue previously. A style tag in the head was ignored. For the table, tr, td, and th, there does not seem to be a way allow a way to color the cells, borders, etc.
The email I send doesn't look good without styling. How can I get my email to look more like my first screen shot?