Styles attributes in Content Template Style records are used for applying styles into HTML when a template is generated into an email or document. For example, we can define in the style all H1 tags should be Arial 14pt font bold, and all P and A tags should be Arial 11pt font. Doing this means vanilla HTML can be defined in content while still having it generated with desired styles
Note templates which have specific style attribute in content will not have them overwritten or changed when style configurations are applied into them. The styles attributes are applied into the relevant tags only when they are not already present
The screenshot below shows example style attributes for p tags defined in a content template style record
Given the following HTML in a content template
<p>
Vanilla Paragraph
</p>
<p style=”font-size: 8pt; font-decoration: underline” >
Underlined Paragraph
</p>
When the example style is applied the outcome would be the following
< p style=”font-family: Arial; font-size: 11pt;” >
Vanilla Paragraph
</p>
<p style=”font-family: Arial; font-size: 8pt; font-decoration: underline” >
Underlined Paragraph
</p>
Note only the more common HTML tag types have options for style attributes. This includes paragraphs, hyperlinks, lists and tables. More tag types may be added as demand requires