Using custom CSS
Content Blocks can also contain custom style definitions, contained within <style> tags. When the sg:head tag is detected, those styles are then correctly placed in the message <head> section.
Example:
<sg:head>
<style type="text/css">
.custom-css-class {
background-color: #000000;
color: #ffffff;
}
</style>
</sg:head>
When used in the Content Block, the style of the content is adapted.
<p class="custom-css-class">
This is a paragraph.
</p>
Note: Selligent specific SG-tags (eg. sg:var, sg:image, ...) are only supported in Content Blocks created in the Library and upon importing HTML messages via the email creation API. Currently, they are not supported for use when importing HTML for messages, templates and pages through the Selligentinterface.
Link attributes (eg. data-link, unsubscribe-link, ...) on the other side, are supported in Content Blocks created in the Library as well as through HTML imports.