Content components content-components

When you design content for emails, landing pages, templates, and visual fragments, use the Content components to add visual design elements. You can add as many content components as you need inside one or more structure components, which define the layout.

Contents library

The Contents section at the bottom of the Components library displays the available content components:

Icon
Component
Description
Container icon
Container
Add this component to your design to include a rectangular container that you can use to group components or apply background or border styling to an area.
Button icon
Button
Add this component to your design to include a clickable button element.
Text icon
Text
Add this component to your design to include a body of text.
Divider icon
Divider
Add this component to your design to include a horizontal line to separate areas of your content.
HTML icon
HTML
Add this component to your design to copy-paste the different parts of your existing HTML. Use this component to create a free modular HTML block to reuse some external content.
Image icon
Image
Add this component to your design to insert an image file.
Social icon
Social
Add this component to your design to insert links to social media pages.
Form icon
Form
Available for landing pages only. Add this component to your design to insert a created form.

Content component toolbars

Each content component type displays a toolbar when you select it in the canvas. The available tools, which vary by the component type, provide an easy way to work with the component directly in the rendered content. It includes formatting and functional capabilities that are applicable for the component type.

Content component toolbar {width="450"}

Formatting tools

Change text style
table 0-row-3 1-row-3 html-authored
Tool Usage Components
Change text style tool {width="120px"} Apply bold, italic, underline, or strike-through, superscript, or subscript to the selected text string.
  • Button

  • Text

Horizontal alignment
table 0-row-3 1-row-3 html-authored
Tool Usage Components
Horizontal alignment tool {width="120px"} Apply a horizontal alignment type to the component content. Choose left, centered, right or justified.
  • Button

  • Text

Create list
table 0-row-3 1-row-3 html-authored
Tool Usage Components
Create list tool {width="120px"} Apply ordered or unordered list formatting to the component text.
  • Text
Set heading
table 0-row-3 1-row-3 html-authored
Tool Usage Components
Set heading tool {width="60px"} Apply heading level formatting to the paragraph for the cursor location.
  • Button

  • Text

Font size
table 0-row-3 1-row-3 html-authored
Tool Usage Components
Font size tool {width="60px"} Apply font size to a selected text. Click the tool and choose the size or enter the px value.
  • Button

  • Text

Font color
table 0-row-3 1-row-3 html-authored
Tool Usage Components
Font color tool {width="160px"} Apply font color to the selected text. Choose a color from the picker and use the color slider and the color field to select the color. Or, you can enter a known RGB, HSL, HSB, or hexadecimal value.
  • Button

  • Text

Insert link
table 0-row-3 1-row-3 html-authored
Tool Usage Components
Insert link tool {width="120px"} Create a clickable link (external URL or landing page) for the selected text or element.
  • Button

  • Text

  • Image

Remove link
table 0-row-3 1-row-3 html-authored
Tool Usage Components
Remove link tool {width="80px"} Remove the clickable link (external URL or landing page) for the selected text or element.
  • Button

  • Text

  • Image

Functional tools

Tool
Name
Usage
Add personalization {width="40"}
Add personalization
Use the personalization editor to insert personalization tokens in the component content. Learn more
Show the source code {width="40"}
Show the source code
Display the HTML source code for the component in a read-only popup.
Show HTML code {width="200"}
Enable conditional content {width="40"}
Enable conditional content
(Emails and fragments) Enable conditional variants for the component. Learn more
Duplicate {width="40"}
Duplicate
Create a copy of the component and add it directly below.
Delete {width="40"}
Delete
Remove the component.

Add a content component to your design

  1. In the visual design space, use an existing template or add the needed structure components into an empty canvas to define the layout.

  2. In the Components library, grab the Drag handle Drag handle for the content component of your choice, then drag and drop it onto the structure components.

    You can add several components into a single structure component and into each column of a structure component.

    Drag the content component into the structure component {width="600" modal="regular"}

  3. Adjust the component display using the Settings and Style tabs on the right, or the context toolbar displayed in the canvas.

    For example, you can change the text style, padding, or margin of the component.

    Define the settings and styles for the content component {width="600" modal="regular"}

As you are working with your design, you can also remove or duplicate a component.

Content component settings and styles

After you add a component, it is selected in the visual design space and its properties are displayed in the right panel. You can also select a component at any time to change the settings and styles. Many settings and styles are specific to the component, but there are some standard settings and styles that you can apply to any selected content components.

Display options

If you want to exclude the component from desktop or mobile device display, change the Display Options setting. The default, Show on all devices, enables display across all devices. Choose another setting to make the component exclusive by device type:

  • Show only on desktop devices - Choose this setting when you want to display the component on desktop devices and exclude it for mobile devices.
  • Show only on mobile devices - Choose this setting when you want to display the component on mobile devices, such as phones and tablets, and exclude it for desktop devices.

Display options for content component {width="400" modal="regular"}

Container

Use a container to apply specific styling to a group of content components. Add a Container component and then add other content components inside it. This component is similar to how you might use a div element in HTML. You can apply a distinct style to the container that differs from the style applied to the content components that it contains.

For example, add a Container component and then add a Button component inside that container. You can use a specific area styling for the container, and style the button and its background as you need.

Container content component styles {width="600" modal="regular"}

Background

With the Styles tab selected in the right panel, use the Background section to define the background color for the component.

Select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

Background color picker {width="300"}

Border
  1. On the right panel with the Styles tab selected, expand the Border section and set the options to display a border for the component:

  2. Move the toggle to the right to enable the border display options and set them according to your design criteria:

    • To set the Border color, select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

    Border color picker {width="300"}

    • To set the Border size (line width), click the up and down arrow icons to increase or decrease the number of pixels.

    • To set the Border style, choose a value from the list of standard CSS border-style values.

    • To determine where the border is displayed, select each Border position checkbox.

    Border styles {width="250"}

  3. For the Border radius, set the numerical value according to the curve you want for the corners.

    A value of 0 (default) produces a squared corner.

Size

On the right panel with the Styles tab selected, expand the Size section and set the options for the component height and width:

  • Height - Click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the height of the element according to its contents.

  • Width - Use the toggle to set the width by pixels or percentage.

    • For a percentage width, use the slider to set the percentage value. The percentage determines the element size based on the content box of the containing block, which excludes padding and borders. For example, a value of 50 sets the element width to 50% of its containing block content width.

      Width style using percentage {width="250"}

    • For a pixel-based width, click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the width of the element according to its contents.

      Width style using pixels {width="250"}

Margin

On the right panel with the Styles tab selected, expand the Margin section and set the options for margin spacing within the structural component. This style replicates the CSS margin parameter, which controls to the space outside a component border, separating it from other components. It creates a gap around the component to influence its positioning and the layout of surrounding content.

Set the margin values in pixels according to your design needs. You can set the margin for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different margin for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set margin for all sides {width="250"}

  • Top-bottom - To set the top and bottom margins to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right margins to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock margins for top-bottom and left-right margin {width="250"}

  • Independent - To set each margin to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent margins {width="250"}

Padding

On the right panel with the Styles tab selected, expand the Padding section and set the options for padding within the structural component. This style replicates the CSS padding parameter, which is the space between the content of a component and its border. The padding provides internal spacing that you can use to control the distance between the content and the border of the component.

Set the padding values in pixels according to your design needs. You can set the padding for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different padding for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set padding for all sides {width="250"}

  • Top-bottom - To set the top and bottom padding to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right padding to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock padding for top-bottom and left-right margin {width="250"}

  • Independent - To set padding for each side to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent padding {width="250"}

Button

Use the Button component to insert one or multiple clickable buttons into your content. Use buttons to redirect page viewers or email recipients to supporting content (published landing page or an external link).

Add the button text

When the button component is displayed in the canvas, the toolbar includes options for text formatting, as well as personalization and conditional variants. For more information about the editor toolbar options, see #.

When you enter the button label text and set the formatting, the button resizes to accommodate the content.

Button component displayed with toolbar {width="500" modal="regular"}

On the Settings tab, use the Link options to define the button text, link destination, and the browser behavior for loading the target page.

  1. Set the Type for the link:

    • External link - Choose this type to use a standard URL as the link destination.

      In Url, enter the URL for the link destination. Click the Personalize icon ( Personalize icon ) to use a personalization token as a parameter in the URL.

      Define an external link for a button component {width="200"}

    • Landing page - Choose this type to select a published landing page in the connected Marketo Engage instance.

      For the Landing Page option, select the published landing page. Click the Select page icon ( Show links icon ) and select the published landing page.

      Define a link to a landing page for a button component {width="200"}

  2. For Label, enter the text that you want to display inside the button.

    The button sizing adjusts according to the text and the styling that set.

  3. For Target, choose how the linked destination is redirected from the email or page:

    • None - Opens the link using the default browser or client behavior (default).
    • Blank - Opens the link in a new window or tab.
    • Self - Opens the link in the same frame.
    • Parent - Opens the link in the parent frame.
    • Top - Opens the link in the full body of the window.

Set styles

Customize the button styling in the Styles tab.

Background

With the Styles tab selected in the right panel, use the Background section to define the background color for the component.

Select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

Background color picker {width="300"}

Text

On the right panel with the Styles tab selected, expand the Text section and set the options for the component text styles:

  • Font family - Click the down arrow icon to select a font family for text within the component.

  • Font size - Click the up and down arrow icons to increase or decrease the font size, or enter a value. For entered values, you can use decimals.

  • Line height - Click the up and down arrow icons to increase or decrease the line height, or enter a value. For entered values, you can use decimals.

    Text styles {width="250"}

  • Text styles - Select the icon for the text style: Bold, Italic, Underlined, or Strikethrough.

  • Text alignment - Select the icon for the horizontal text alignment: Left, Centered, Right, or Justified.

  • Font color - Click the color square to choose a font color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

    Font color picker {width="300"}

Border
  1. On the right panel with the Styles tab selected, expand the Border section and set the options to display a border for the component:

  2. Move the toggle to the right to enable the border display options and set them according to your design criteria:

    • To set the Border color, select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

    Border color picker {width="300"}

    • To set the Border size (line width), click the up and down arrow icons to increase or decrease the number of pixels.

    • To set the Border style, choose a value from the list of standard CSS border-style values.

    • To determine where the border is displayed, select each Border position checkbox.

    Border styles {width="250"}

  3. For the Border radius, set the numerical value according to the curve you want for the corners.

    A value of 0 (default) produces a squared corner.

Size

On the right panel with the Styles tab selected, expand the Size section and set the options for the component height and width:

  • Height - Click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the height of the element according to its contents.

  • Width - Use the toggle to set the width by pixels or percentage.

    • For a percentage width, use the slider to set the percentage value. The percentage determines the element size based on the content box of the containing block, which excludes padding and borders. For example, a value of 50 sets the element width to 50% of its containing block content width.

      Width style using percentage {width="250"}

    • For a pixel-based width, click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the width of the element according to its contents.

      Width style using pixels {width="250"}

+++Alignment

+++

+++Button margin

+++

Container margin

On the right panel with the Styles tab selected, expand the Margin section and set the options for margin spacing within the structural component. This style replicates the CSS margin parameter, which controls to the space outside a component border, separating it from other components. It creates a gap around the component to influence its positioning and the layout of surrounding content.

Set the margin values in pixels according to your design needs. You can set the margin for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different margin for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set margin for all sides {width="250"}

  • Top-bottom - To set the top and bottom margins to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right margins to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock margins for top-bottom and left-right margin {width="250"}

  • Independent - To set each margin to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent margins {width="250"}

Padding

On the right panel with the Styles tab selected, expand the Padding section and set the options for padding within the structural component. This style replicates the CSS padding parameter, which is the space between the content of a component and its border. The padding provides internal spacing that you can use to control the distance between the content and the border of the component.

Set the padding values in pixels according to your design needs. You can set the padding for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different padding for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set padding for all sides {width="250"}

  • Top-bottom - To set the top and bottom padding to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right padding to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock padding for top-bottom and left-right margin {width="250"}

  • Independent - To set padding for each side to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent padding {width="250"}

Advanced

To apply additional CSS-compliant attributes with values, use the Advanced style settings. You can change the values of the existing attributes, or add new ones. The styling is applied to the component using the CSS inheritance model for parent-child components (elements).

The displayed attributes reflect the styles that are currently defined for the component. You can change the values according to CSS definitions. Click the Add (+) icon to add a new style attribute for the component.

Advanced styles {width="250"}

Text

Use the Text component to insert a text block into your content. When the text component is selected in the canvas, enter the text and use the toolbar options to add inline formatting and options, including personalization tokens and conditional variants. For detailed information about crafting text, including inline styling and options, in the design space, see Text authoring.

Customize the text component styling in the Styles tab.

Background

With the Styles tab selected in the right panel, use the Background section to define the background color for the component.

Select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

Background color picker {width="300"}

Text

These styles are applied to the whole text block. You can apply inline styling to a selected text string.

On the right panel with the Styles tab selected, expand the Text section and set the options for the component text styles:

  • Font family - Click the down arrow icon to select a font family for text within the component.

  • Font size - Click the up and down arrow icons to increase or decrease the font size, or enter a value. For entered values, you can use decimals.

  • Line height - Click the up and down arrow icons to increase or decrease the line height, or enter a value. For entered values, you can use decimals.

    Text styles {width="250"}

  • Text styles - Select the icon for the text style: Bold, Italic, Underlined, or Strikethrough.

  • Text alignment - Select the icon for the horizontal text alignment: Left, Centered, Right, or Justified.

  • Font color - Click the color square to choose a font color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

    Font color picker {width="300"}

Border
  1. On the right panel with the Styles tab selected, expand the Border section and set the options to display a border for the component:

  2. Move the toggle to the right to enable the border display options and set them according to your design criteria:

    • To set the Border color, select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

    Border color picker {width="300"}

    • To set the Border size (line width), click the up and down arrow icons to increase or decrease the number of pixels.

    • To set the Border style, choose a value from the list of standard CSS border-style values.

    • To determine where the border is displayed, select each Border position checkbox.

    Border styles {width="250"}

  3. For the Border radius, set the numerical value according to the curve you want for the corners.

    A value of 0 (default) produces a squared corner.

Size

On the right panel with the Styles tab selected, expand the Size section and set the options for the component height and width:

  • Height - Click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the height of the element according to its contents.

  • Width - Use the toggle to set the width by pixels or percentage.

    • For a percentage width, use the slider to set the percentage value. The percentage determines the element size based on the content box of the containing block, which excludes padding and borders. For example, a value of 50 sets the element width to 50% of its containing block content width.

      Width style using percentage {width="250"}

    • For a pixel-based width, click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the width of the element according to its contents.

      Width style using pixels {width="250"}

Margin

On the right panel with the Styles tab selected, expand the Margin section and set the options for margin spacing within the structural component. This style replicates the CSS margin parameter, which controls to the space outside a component border, separating it from other components. It creates a gap around the component to influence its positioning and the layout of surrounding content.

Set the margin values in pixels according to your design needs. You can set the margin for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different margin for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set margin for all sides {width="250"}

  • Top-bottom - To set the top and bottom margins to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right margins to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock margins for top-bottom and left-right margin {width="250"}

  • Independent - To set each margin to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent margins {width="250"}

Padding

On the right panel with the Styles tab selected, expand the Padding section and set the options for padding within the structural component. This style replicates the CSS padding parameter, which is the space between the content of a component and its border. The padding provides internal spacing that you can use to control the distance between the content and the border of the component.

Set the padding values in pixels according to your design needs. You can set the padding for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different padding for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set padding for all sides {width="250"}

  • Top-bottom - To set the top and bottom padding to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right padding to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock padding for top-bottom and left-right margin {width="250"}

  • Independent - To set padding for each side to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent padding {width="250"}

Advanced

To apply additional CSS-compliant attributes with values, use the Advanced style settings. You can change the values of the existing attributes, or add new ones. The styling is applied to the component using the CSS inheritance model for parent-child components (elements).

The displayed attributes reflect the styles that are currently defined for the component. You can change the values according to CSS definitions. Click the Add (+) icon to add a new style attribute for the component.

Advanced styles {width="250"}

Divider

Add a Divider component to incorporate a linear division between sections of your content.

Background

With the Styles tab selected in the right panel, use the Background section to define the background color for the component.

Select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

Background color picker {width="300"}

+++Line

+++

Size

On the right panel with the Styles tab selected, expand the Size section and set the options for the component height and width:

  • Height - Click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the height of the element according to its contents.

  • Width - Use the toggle to set the width by pixels or percentage.

    • For a percentage width, use the slider to set the percentage value. The percentage determines the element size based on the content box of the containing block, which excludes padding and borders. For example, a value of 50 sets the element width to 50% of its containing block content width.

      Width style using percentage {width="250"}

    • For a pixel-based width, click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the width of the element according to its contents.

      Width style using pixels {width="250"}

Alignment

Expand the Alignment section and choose the horizontal alignment that you want to use: left, center, or right. This style translates to a standard text-align CSS style and affects how the component is positioned within the containing component.

Horizontal alignment styles {width="250"}

Margin

On the right panel with the Styles tab selected, expand the Margin section and set the options for margin spacing within the structural component. This style replicates the CSS margin parameter, which controls to the space outside a component border, separating it from other components. It creates a gap around the component to influence its positioning and the layout of surrounding content.

Set the margin values in pixels according to your design needs. You can set the margin for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different margin for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set margin for all sides {width="250"}

  • Top-bottom - To set the top and bottom margins to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right margins to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock margins for top-bottom and left-right margin {width="250"}

  • Independent - To set each margin to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent margins {width="250"}

Padding

On the right panel with the Styles tab selected, expand the Padding section and set the options for padding within the structural component. This style replicates the CSS padding parameter, which is the space between the content of a component and its border. The padding provides internal spacing that you can use to control the distance between the content and the border of the component.

Set the padding values in pixels according to your design needs. You can set the padding for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different padding for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set padding for all sides {width="250"}

  • Top-bottom - To set the top and bottom padding to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right padding to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock padding for top-bottom and left-right margin {width="250"}

  • Independent - To set padding for each side to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent padding {width="250"}

Advanced

To apply additional CSS-compliant attributes with values, use the Advanced style settings. You can change the values of the existing attributes, or add new ones. The styling is applied to the component using the CSS inheritance model for parent-child components (elements).

The displayed attributes reflect the styles that are currently defined for the component. You can change the values according to CSS definitions. Click the Add (+) icon to add a new style attribute for the component.

Advanced styles {width="250"}

HTML

Use the HTML component to add parts of your existing HTML. This component provides an easy way to create modular HTML elements that reuse your external content.

  1. Select the component on the canvas and click the Show the source code icon in the toolbar.

    Open the code editor to add the HTML

  2. Paste the HTML in the text box and click Save.

    Edit HTML dialog

    If the HTML is valid, it renders the element on the canvas. If it is an element that maps to one of the other content components, you can change the settings and styles in the right panel according to the component type. If it does not, it remains as an HTML component.

For an HTML component, you can set the following styles for the whole HTML component in the right panel:

Background

With the Styles tab selected in the right panel, use the Background section to define the background color for the component.

Select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

Background color picker {width="300"}

Border
  1. On the right panel with the Styles tab selected, expand the Border section and set the options to display a border for the component:

  2. Move the toggle to the right to enable the border display options and set them according to your design criteria:

    • To set the Border color, select the checkbox and click the color square to choose a color from the picker. You can choose a color by entering a known RGB, HSL, HSB, or hexadecimal value. Or, you can use the color slider and the color field to select the color.

    Border color picker {width="300"}

    • To set the Border size (line width), click the up and down arrow icons to increase or decrease the number of pixels.

    • To set the Border style, choose a value from the list of standard CSS border-style values.

    • To determine where the border is displayed, select each Border position checkbox.

    Border styles {width="250"}

  3. For the Border radius, set the numerical value according to the curve you want for the corners.

    A value of 0 (default) produces a squared corner.

Size

On the right panel with the Styles tab selected, expand the Size section and set the options for the component height and width:

  • Height - Click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the height of the element according to its contents.

  • Width - Use the toggle to set the width by pixels or percentage.

    • For a percentage width, use the slider to set the percentage value. The percentage determines the element size based on the content box of the containing block, which excludes padding and borders. For example, a value of 50 sets the element width to 50% of its containing block content width.

      Width style using percentage {width="250"}

    • For a pixel-based width, click the up and down arrow icons to increase or decrease the number of pixels. An empty value (Auto) is the default and sizes the width of the element according to its contents.

      Width style using pixels {width="250"}

Alignment

Expand the Alignment section and choose the horizontal and vertical alignment that you want to use. The alignment styles affect how the HTML component is positioned within the containing component (structural or container).

The horizontal alignment translates to a standard text-align CSS style and you can choose from left, center, or right. The vertical alignment translates to the standard vertical-align CSS style and you can choose from top, middle, or bottom.

Alignment styles for an HTML component {width="300"}

Margin

On the right panel with the Styles tab selected, expand the Margin section and set the options for margin spacing within the structural component. This style replicates the CSS margin parameter, which controls to the space outside a component border, separating it from other components. It creates a gap around the component to influence its positioning and the layout of surrounding content.

Set the margin values in pixels according to your design needs. You can set the margin for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different margin for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set margin for all sides {width="250"}

  • Top-bottom - To set the top and bottom margins to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right margins to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock margins for top-bottom and left-right margin {width="250"}

  • Independent - To set each margin to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent margins {width="250"}

Padding

On the right panel with the Styles tab selected, expand the Padding section and set the options for padding within the structural component. This style replicates the CSS padding parameter, which is the space between the content of a component and its border. The padding provides internal spacing that you can use to control the distance between the content and the border of the component.

Set the padding values in pixels according to your design needs. You can set the padding for all sides, the top-botton, the left-right, or each side of the component independently:

  • All sides - To set one value to apply to all sides, clear the Different padding for each side checkbox. Click the up and down arrow icons to increase or decrease the number of pixels.

    Set padding for all sides {width="250"}

  • Top-bottom - To set the top and bottom padding to the same value, set the Locked icon between the top and bottom settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

  • Left-right - To set the left and right padding to the same value, set the Locked icon between the left and right settings. Click the up and down arrow icons for either to increase or decrease the number of pixels.

    Lock padding for top-bottom and left-right margin {width="250"}

  • Independent - To set padding for each side to an independent value, set the Unlocked icon between the top and bottom settings and between the left and right. For each setting, click the up and down arrow icons for either to increase or decrease the number of pixels.

    Set independent padding {width="250"}

Advanced

To apply additional CSS-compliant attributes with values, use the Advanced style settings. You can change the values of the existing attributes, or add new ones. The styling is applied to the component using the CSS inheritance model for parent-child components (elements).

The displayed attributes reflect the styles that are currently defined for the component. You can change the values according to CSS definitions. Click the Add (+) icon to add a new style attribute for the component.

Advanced styles {width="250"}

Image

Use the Image component to insert an image asset into your content. When the Image component is selected in the canvas, you can add or change the displayed image asset file.

Image component displayed with toolbar {width="400" modal="regular"}

Add the image asset

Choose the asset source type and select an image file:

6ef00091-a233-4243-8773-0da8461f7ef0