Sentinel Logic App HTML table style

I am using an Analytics Rule with an automated response to run a playbook.

In the playbook, I am trying to get the results of my query to be formatted in an email. I have a step to build a HTML style.

I am using this code:

<style>

table {

border: 1px solid #1C6EA4;

background-color: #EEEEEE;

width: 100%;

text-align: left;

border-collapse: collapse;

}

table td, table th {

border: 1px solid #AAAAAA;

padding: 3px 2px;

}

table tbody td {

font-size: 13px;

}

table thead {

background: #02A0E1;

border-bottom: 2px solid #444444;

}

table thead th {

font-size: 15px;

font-weight: bold;

color: #FFFFFF;

border-left: 2px solid #D0E4F5;

}

table thead th:first-child {

border-left: none;

}

</style>

I've added the HTML table and the style to the body of the email like this:

​

https://preview.redd.it/meyt1dnzai3a1.jpg?width=612&format=pjpg&auto=webp&s=f3cee563e5333bbdf64f3654baf3d9efaf8bdf89

When I receive the email, the table has no style applied.
What am I doing wrong?

Posted Dec 2, 2022, 3:54 PM UTC

10
Loading comments…