Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Prasun7
Contributor II
Contributor II

CSS Formatting dissapearing on Mail Body

My CSS formatting is getting removed when I'm sending mail using NPrint, but it showing all the formatting in Preview in Nprinting Designer. Please help me fix this.

<html>

<body>
<style type = "text/css">
table, td {
border: 1px solid black;
border-collapse: collapse;
text-align: center;
}

td:first-child{
background: #ccccff;
bold: true;
font-weight: bold;
}
td:nth-child(2){
display: none;
}
tr:nth-child(1) {
background: yellow;
font-weight: bold;
}

</style>
<h1> DO Summary </h1>
%%rhWjGu%%
</body>
</html>

Labels (2)
1 Solution

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

I think it is an issue with the email client you are using. Some email clients remove or render the HTML code in different ways.

I suggest you:

- test the code with some online tools that render it as many different email clients do

- search if the client you are using needs to enable some options or if it requires specific HTML code to reach your goals

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.

View solution in original post

2 Replies
Ruggero_Piccoli
Support
Support

Hi,

I think it is an issue with the email client you are using. Some email clients remove or render the HTML code in different ways.

I suggest you:

- test the code with some online tools that render it as many different email clients do

- search if the client you are using needs to enable some options or if it requires specific HTML code to reach your goals

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Have you disabled “keep source format” on whatever object you are trying to use?

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.