Skip to main content
TRUST Documentation

Columns

Columns Trust Icon

Module Styles Tab Walkthrough

Spacing: Use these inputs to configure the top and bottom spacing of your section. This can be useful to increase or decrease the height of a section, reduce spacing between sections which share the same background color, or scale this spacing based on screen size when using certain types of backgrounds.

  • Top Padding (Desktop): None, Extra, Small, Small, Medium, Large, Extra Large, Custom
  • Top Padding (Laptop): Same as Desktop, None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Top Padding (Tablet): None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Top Padding (Mobile): Same as Tablet, None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Bottom Padding (Desktop): None, Extra, Small, Small, Medium, Large, Extra Large, Custom
  • Bottom Padding (Laptop): Same as Desktop, None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Bottom Padding (Tablet): None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Bottom Padding (Mobile): Same as Tablet, None, Extra Small, Small, Medium, Large, Extra Large, Custom

Text Color Override: These inputs override the color of any text which appears directly on your background. Use these to make all text use a light color when using a darker background to ensure the text is legible. NOTE: Elements other than text may be affected as well and some text may not necessarily be white.

  • White Text on All Screens: Boolean (check to enable)
  • White Text on Desktop: Boolean (check to enable)
  • White Text on Laptop: Boolean (check to enable)
  • White Text on Tablet: Boolean (check to enable)
  • White Text on Mobile: Boolean (check to enable)

Layout Controls: This group contains inputs which are unique to this section for controlling the overall layout or style. Depending on the section, some inputs outside of this section may change based on the configuration here.

  • Header: Content Alignment: Single Choice: Left-Aligned, Center-Aligned
  • Header: Content Alignment (Mobile): Single Choice: Left-Aligned, Center-Aligned
  • Columns: Content Alignment: Single Choice: Left-Aligned, Center-Aligned
  • Columns: Content Alignment (Mobile): Single Choice: Left-Aligned, Center-Aligned
  • Columns: Container Width: Single Choice: Width of Grid, Width of Window
  • Columns: Number of Columns (Desktop): Single Choice: 1, 2, 3, 4, 5, 6
  • Columns: Number of Columns (Laptop): Single Choice: 1, 2, 3, 4
  • Columns: Number of Columns (Tablet): Single Choice: 1, 2, 3, 4
  • Columns: Number of Columns (Mobile): Single Choice: 1, 2, 3, 4
  • Columns: Horizontally Align Buttons: Boolean (check to enable)
  • Columns: Image Type: Single Choice: Photos (Column-Width and Forced Aspect Ratio Image, Icons (Native Width and Aspect Ratio), Lottie Animations, None
  • Based on your selection for Image Type, the following inputs will show.
    1. Option: Photos (Column-Width and Forced Aspect Ratio Image)
      • Columns: Image Aspect Ratio: Single Choice: 1:1 (square), 2:1, 3:1, 3:2, 4:3, 16:9
    2. Option: Icons (Native Width and Aspect Ratio)
      • Columns: Native Image/Icon Placement: Single Choice: Icon [Top] + Content [Bottom], Icon [Left] + Content [Right]
      • Columns: Native Image/Icon Max Height (px): Number Input
    3. Option: Lottie Animations
    4. Option: None
  • Columns: Show Border Divider Between Columns: Boolean (check to enable)
  • When Columns: Show Border Divider Between Columns is enabled then the following will appear as an option.
    • Columns: Divider Color: Numerical Hex Code Input, Opacity Percentage, and Color Picker

Module Settings Walkthrough

Preheader: Text Input

Header: Text Input

Content: Text Area

Columns: REPEATABLE GROUP

Add any number of columns here. 

  • Based on your selection for Columns: Image Type, the following inputs will show.  
    • Option: Icons (Native Width and Aspect Ratio)
      • Image: Image
    • Option: Photos (Column-Width and Forced Aspect Ratio)
      • Image: Image
    • Option: Lottie Animations
      • Lottie Embed: Type: Single Choice: URL of Lottie JSON File, Lottie JSON Code
      • Lottie Embed: Loop Animation: Boolean (check to enable) - Toggle this "On" to have the animation loop indefinitely.
      • Lottie URL/Embed Code: Text Input - Use this field to paste the URL only of your externally hosted Lottie JSON file (like the ones provided on lottiefiles.com) or the JSON code of your custom Lottie animation. DO NOT PASTE THE FULL EMBED CODE PROVIDED ON LOTTIEFILES.COM
      • Lottie: Container Width: Number - Use this field to control the width of the container for your animation. If left blank, the animation will go full width and centered.
      • Lottie: Container Height: Number - Use this field to control the height of the container for your animation (the width will automatically adjust based on this value). This is designed to keep the height of the animations consistent across cards in the same row. Leave this blank to allow the animation to go full width regardless of height.
  • Header/Label: Text Input
  • Description: Text Area
  • CTA: Group
    • CTA: Type: Single Choice: No CTA, HubSpot Call-To-Action, Custom Link, Scroll to Section
    • Based on your selection for CTA: Type, the following inputs will show.
      1. Option: No CTA
      2. Option: HubSpot Call-To-Action
        • CTA: Button Color: Single Choice: Primary, Secondary, White
        • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
        • CTA: Select HubSpot CTA from the CTA Section of your portal
      3. Option: Custom Link
        • CTA: Button Color: Single Choice: Primary, Secondary, White
        • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
        • CTA: Button Text: Text Input
        • CTA: Hyperlink
          • Link to: External, Content, File, Email Address, Blog
          • URL: Input URL or Select Page
        • CTA: Open in a New Tab?: Boolean (check to enable)
        • CTA: Title Attribute - CTA title attribute gives additional information about the page being linked to. Leave this blank to use your button text.
      4. Option: Scroll to Section
        • CTA: Button Color: Single Choice: Primary, Secondary, White
        • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
        • CTA: Button Text: Text Input
        • CTA: Section Anchor ID: Text Input - Add the anchor ID of a section on this page to link to it. To link to a section on a different page, use the Custom Link option and add the section ID to the end of the URL preceded by a hashtag.
        • CTA: Title Attribute: Text Input - CTA title attribute gives additional information about the page being linked to. Leave this blank to use your button text.
       
 
CTA(s): Repeatable Group

CTA: Type: Single Choice: No CTA, HubSpot Call-To-Action, Custom Link, Scroll to Section

Based on your selection for CTA: Type, the following inputs will show.

  1. Option: No CTA
  2. Option: HubSpot Call-To-Action
    • CTA: Button Color: Single Choice: Primary, Secondary, White
    • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
    • CTA: Select HubSpot CTA from the CTA Section of your portal
  3. Option: Custom Link
    • CTA: Button Color: Single Choice: Primary, Secondary, White
    • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
    • CTA: Button Text: Text Input
    • CTA: Hyperlink
      • Link to: External, Content, File, Email Address, Blog
      • URL: Input URL or Select Page
    • CTA: Open in a New Tab?: Boolean (check to enable)
    • CTA: Title Attribute - CTA title attribute gives additional information about the page being linked to. Leave this blank to use your button text.
  4. Option: Scroll to Section
    • CTA: Button Color: Single Choice: Primary, Secondary, White
    • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
    • CTA: Button Text: Text Input
    • CTA: Section Anchor ID: Text Input - Add the anchor ID of a section on this page to link to it. To link to a section on a different page, use the Custom Link option and add the section ID to the end of the URL preceded by a hashtag.
    • CTA: Title Attribute: Text Input - CTA title attribute gives additional information about the page being linked to. Leave this blank to use your button text.

FAQs

How many columns can add?

Help! My icons are filling up the entire card.

Help! My content isn't showing.

Development Notes

Reserved block class:

.section--columns

Resources:

modules/Columns/Columns.css

module js inside main module