The css style for a Table is not working in send a email for a Gmail account

Chandrika Kambala 40 Reputation points
2025-03-27T09:18:51.3066667+00:00

Hello Community members,

Any help is greatly appreciated!
I have added CSS formatting to Create HTML table to send an email to notification to the gmail account. For the Outlook email, it is working fine as shown in the below image:
User's image

But for the Gmail account, styling is not supporting:

User's image

Please reply the solution to this.

<style>
table {
  border: 1px solid #1C6EA4;
  background-color: #EEEEEE;
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}
table td, table th {
  border: 1px solid #AAAAAA;
  padding: 3px 2px;
}
table tbody td {
  font-size: 13px;
}
table thead {
  background: #ffd700;
  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>

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.