<templates:section>
AJAX
ajax:delayedload ajax:event ajax:navigation ajax:region
Data
data:calendar data:column data:eventrepeater data:postrepeater data:productbrandrepeater data:productcategoryrepeater data:productrepeater data:repeater data:table data:template data:tree
Forms
forms:address forms:captcha forms:checkbox forms:checkboxgroup forms:codeeditor forms:combobox forms:datepicker forms:dialogbox forms:editbox forms:fileupload forms:form forms:hidden forms:money forms:officeuseregion forms:option forms:password forms:paymentmethod forms:radiobutton forms:radiobuttongroup forms:row forms:searchbox forms:signature forms:slider forms:spinbox forms:submitbutton forms:submitimage forms:submitlink forms:successcontent forms:textarea forms:timepicker
Layout
layout:divider layout:gallery layout:productgallery layout:rotator layout:stepper layout:stepperpanel layout:tablist layout:tablistitem
Logic
logic:dependency logic:else logic:if logic:include logic:parse logic:variable
Navigation
navigation:breadcrumbs navigation:item navigation:primary navigation:secondary
Personalisation
personalisation:firstname personalisation:fullname personalisation:lastname personalisation:other
Standard
standard:embed standard:icon standard:image standard:link standard:script standard:tooltip standard:video
Templates
templates:button templates:card templates:column templates:fancybox templates:faq templates:flexlayout templates:header templates:row templates:section
ATTRIBUTES
EXAMPLES
templates:styles templates:teammember templates:testimonial
Regions
regions:content regions:contentadditional regions:security regions:togglable
Third Party
thirdparty:googlemap thirdparty:googlemapmarker

`<templates:section>` </...>

A layout control for visually grouping and aligning content within a responsive container.
Supports backgrounds (images, gradients, colors), parallax scrolling, padding control, and full-height layouts.

Key features:
  • Responsive container sizing</li>
  • Background images with parallax, blur, and wash effects</li>
  • Full-height sections with vertical centering</li>
  • Flexible padding control on all sides</li>
  • Email-compatible rendering with table-based layout</li>
  • Nesting support for complex layouts</li>

Container sizes and full-height behavior can be customized via <templates:styles> in the theme's <head>.

Content

any
The content to render inside the Section.

Attributes

- `bgColor`
string
Background Color

Sets the section's background color.
Accepts any valid CSS color format (hex, rgb, rgba, named colors, CSS variables).

The background color is rendered in a separate layer beneath the background image, allowing blur effects to blend naturally instead of showing white.

Default: null (transparent/inherited)
- `bgImage`
string
Background Image

Sets the section's background image using a URL or media path.
Supports both external URLs (including Unsplash) and internal media uploads.

Behavior:
  • Unsplash images are automatically optimized (max 1900px width, quality 80)
  • Internal media is resized to 1900px width (1400px if blur is applied)
  • Works with BgPosition, BgSize, BgParallax, and BgImageBlur
  • Can be layered with BgColor and BgWashColor
Note: Mutually exclusive with BgGradient - only one can be used as both apply background-image.
If both are set, BgImage will override BgGradient.

Default: Empty (no background image)
- `bgImageBlur`
string
Background Image Blur

Applies a blur filter to the background image, specified in pixels.
Creates a frosted glass or depth-of-field effect.

Behavior:
  • Value is applied as --section-background-blur CSS variable
  • When blur > 0, background image is resized to max 1400px (vs 1900px) for performance
  • Blur blends with BgColor layer instead of white background
  • Common values: 0 (none), 5-10 (subtle), 20+ (heavy)

Default: 0 (no blur)
- `bgParallax`
boolean
Background Parallax

Enables parallax scrolling effect for the background image.
When enabled, the background moves at a different speed than the content during scroll, creating a depth effect.

Behavior:
  • Parallax speed is controlled by BgParallaxSpeed
  • Only applies to background images, not gradients or colors
  • Not supported in email rendering

Default: false (no parallax effect)
- `bgParallaxSpeed`
int
Background Parallax Speed

Controls the speed of the parallax scrolling effect as a percentage.
Only applies when BgParallax is enabled.

Value interpretation:
  • Lower values (e.g. 10-20) - Subtle parallax effect
  • Medium values (e.g. 30-50) - Moderate parallax effect
  • Higher values (e.g. 60-100) - Dramatic parallax effect

Default: 30
- `bgPosition`
string
Background Position

Controls where the background image is positioned within the section.
Accepts any valid CSS background-position value.

Common values:
  • center - Centered horizontally and vertically
  • top, bottom, left, right - Edge alignment
  • top left, bottom right, etc. - Corner alignment
  • Percentage values like 50% 75%
  • Pixel values like 10px 20px

Default: center
- `bgSize`
string
Background Size

Controls how the background image is sized within the section.
Accepts any valid CSS background-size value.

Common values:
  • cover - Image covers entire section (may crop)
  • contain - Image fits within section (may show gaps)
  • auto - Image displays at original size
  • Specific dimensions like 100px 200px or 50% auto

Default: cover
- `bgWashColor`
string
Background Wash Color

Applies a semi-transparent color overlay on top of the background image.
Accepts any valid CSS color format (hex, rgb, rgba, named colors, CSS variables).

Used to darken or tint background images for improved text readability.
The opacity is controlled separately via BgWashOpacity.

Common use cases:
  • Dark wash (#000000) to improve light text contrast
  • Light wash (#ffffff) to improve dark text contrast
  • Brand color tint to unify image with design theme

Default: Empty (no wash overlay)
Note: Not supported in email rendering
- `bgWashOpacity`
string
Background Wash Opacity

Controls the opacity of the BgWashColor overlay as a percentage (0-100).
Only applies when BgWashColor is set.

Value interpretation:
  • 0 - Fully transparent (no wash visible)
  • 25-50 - Subtle tint, image still prominent
  • 50-75 - Moderate overlay, balanced effect
  • 75-100 - Heavy overlay, image mostly obscured

The value is converted to CSS opacity (divided by 100).

Default: 0 (no opacity)
- `contentSize`
string
Content Size

Controls the maximum width of the content container within the section.

Available sizes:
  • sm - Small container (narrow content, ideal for text-heavy layouts)
  • md - Medium container (balanced width for most content)
  • lg - Large container (wide content, ideal for grids and media)

Default: md
- `fullHeight`
bool
Full Height

Makes the section span at minimum the full viewport height.
Content within the section is automatically centered vertically.

Behavior:
  • Adds .s8-templates-section-fullheight class to the section
  • Section will be at least 100vh tall, but can grow if content exceeds viewport height
  • Ideal for hero sections, landing pages, or splash screens
  • Works in combination with all background and padding attributes

The full-height behavior can be customized via <templates:styles>.

Default: false (height determined by content)
- `height`
string
Height

Sets the height of the element. The default units are pixels. include the percentage symbol % to user percentage values.
- `id`
string
(Required) Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).
- `paddingBottom`
string
Padding Bottom

Sets the bottom padding of the content container.
Accepts any valid CSS length value (px, rem, em, %, etc.).

In email rendering, rem values are automatically converted to px (1rem = 16px) for Outlook compatibility.

Default: 4rem
- `paddingLeft`
string
Padding Left

Sets the left padding of the content container.
Accepts any valid CSS length value (px, rem, em, %, etc.).

Behavior:
  • Values > 15px add .s8-templates-section-content-paddingleft class
  • Values > 150px add .s8-templates-section-content-paddingleft-lg class
  • In email rendering, rem values are converted to px for Outlook

Default: 1rem
- `paddingRight`
string
Padding Right

Sets the right padding of the content container.
Accepts any valid CSS length value (px, rem, em, %, etc.).

Behavior:
  • Values > 15px add .s8-templates-section-content-paddingright class
  • Values > 150px add .s8-templates-section-content-paddingright-lg class
  • In email rendering, rem values are converted to px for Outlook

Default: 1rem
- `paddingTop`
string
Padding Top

Sets the top padding of the content container.
Accepts any valid CSS length value (px, rem, em, %, etc.).

In email rendering, rem values are automatically converted to px (1rem = 16px) for Outlook compatibility.

Default: 4rem
- `width`
string
Width

Sets the width of the element. The default units are pixels. include the percentage symbol % to user percentage values.
- `bggradient`
string
Background Gradient

Applies a CSS gradient as the section's background.
Accepts any valid CSS gradient syntax (linear-gradient, radial-gradient, etc.).

The gradient is applied via background-image and will layer over BgColor if both are set.

Note: Mutually exclusive with BgImage - only one can be used as both apply background-image.
If both are set, BgImage will override BgGradient.

Default: Empty (no gradient)

Examples

Nested Sections

Multiple template section inside parent section container

HTML:

<templates:section bgcolor="#edd2d5" paddingTop="3rem" paddingBottom="3rem" paddingLeft="2rem" paddingRight="2rem"> <templates:row verticalAlignColumns="flex-start"> <templates:column width="6"> <standard:image width="100%" height="344" maintainaspect="crop" src="https://images.unsplash.com/photo-1475472279917-f29941cd9bc1?ixid=Mnw2ODg1fDB8MXxzZWFyY2h8Mnx8Zmxvd2V8ZW58MHx8fHwxNjc5MzcwMzA1&" style="line-height: 0"/> </templates:column> <templates:column width="6"> <templates:section paddingLeft="2rem" paddingRight="2rem" paddingBottom="3rem" paddingTop="3rem" bgcolor="#fbf8f8"> <h2>Your Heading Here</h2> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.<br /><br /></p> <templates:button variant="Classic" color="#fff" borderRadius="35" bgcolor="#d88e97">Read More</templates:button> </templates:section> </templates:column> </templates:row> </templates:section>

Override Section Sizing

Section container sizes (sm md lg) and 'full-height' sizing may be overriden through use of the <templates:styles> control, which is placed within the <head> of the website design theme.

HTML:

<templates:section bgcolor="#edd2d5" paddingTop="3rem" paddingBottom="3rem" paddingLeft="2rem" paddingRight="2rem"> <h2>Your Heading Here</h2> <p>Enter your content here.</p> </templates:section> <!-- The below should reside within the <head> of the Website Design --> <templates:styles section-fullheight="90vh" sectionsize-sm="540px" sectionsize-md="720px" sectionsize-lg="1200px" />