Skip to main content

Grid Container component

The Grid Container enables you to do four things:

  1. Insert a grid of a predefined width for a section of content to live within.
  2. Group multiple components together so you can move or reference them as a single piece of content.
  3. Add a background tint or image to highlight a section of content on a page.
  4. Set a timer to automatically show or hide content.

This is an advanced component reserved for use by the UCS Web team. AEM authors may update existing Grid Containers but should not create new ones.

Component(s) you might want to use with this one:

Design options

The Grid Container component features different grid widths, margin and padding options, and background colour options. 

Settings tab

Style
Container type:
Choose from the following grid widths
  • Default grid container - 940px wide
  • Narrow grid container - 768px
  • Wide grid container - 1200px
  • X-Wide grid container - 1600px
  • Side margin only - 15px
Background

Web colour palette

  • White (default)
  • Light grey
  • Medium grey
  • Dark grey
  • Very dark grey
  • Black
  • Burgundy
  • Magenta
  • Orange
  • Mauve
  • Dark blue
  • Blue
  • Turquoise
  • Green
  • Burgundy tint
  • Magenta tint
  • Orange tint
  • Mauve tint
  • Dark blue tint
  • Blue tint
  • Turquoise tint
  • Green tint
  • Gold tint
Spacing (desktop)

Margin: This is the amount of space, in pixels, above and below the Grid Container.

Padding: This is the amount of space, in pixels, inside the Grid Container.

The pixel values below are available for both the Top and Bottom margins and the Top and Bottom paddings.

  • None (default)
  • 20px
  • 40px
  • 60px
  • 80px
  • 100px
  • 120px
  • 140px
  • 160px
Spacing (mobile)
The pixel values selected for desktop are by default inherited on mobile.
If you select large spacing values for desktop, be sure to select smaller values for mobile. 
  • Inherit (default)
  • 20px
  • 40px
  • 60px
  • 80px
  • 100px
  • 120px
  • 140px
  • 160px
Additional class
Class name DO NOT USE – reserved for the UCS Web team
Settings tab of the Grid Container component with Container type Default grid 940px wide

Background image tab

This option is rarely used. Reserved for the UCS Web team.

Background image tab of the Grid Container component with an image added

Active times tab

Hours option (rarely used)

Displays the grid's content for a specified duration on a specified day of the week:

  • Click Add Item.
  • Set a Day of the week.
  • Set the Start and End times.
  • Click the red circle to cancel the active times; this means your grid will always be visible.

Date range option (commonly used)

Displays the grid's content for a specified duration over a specified range of days:

  • Click Add Item.
  • Set the Start and End days and times.
  • Click the red circle to cancel the active times; this means your grid will always be visible.
Active times tab of the Grid Container component with date ranges added

Examples & use cases

Dos

  • Do use a timed Grid Container to feature content with an expiry date, such as a promotional campaign, deadline or cyclical reminders. 
  • Do use a timed Grid Container to hide content temporarily from the live site; sometimes this is preferable to deleting the content.

Don'ts

  • Don't use the Grid Container component on a template that is not the Full browser window template. The Full browser window template is the only template that does not come with a preset grid; this is why the Grid Container component was developed. 
  • Don't ‘nest’ a Grid Container inside a Grid Container.
  • Avoid using both Active Hours and Active Times; this could result in your content not appearing correctly at the right time.
  • Don't choose colour combinations that are not accessible (i.e., a primary background colour with black text).

Helpful tips & "gotchas"

  • A good starting point is to use 60px of top and bottom padding for desktop and 40px of top and bottom padding for mobile.
  • To hide a Grid Container, just set both the Start and End days to the day before; the time doesn't matter.
  • If the Date range of a Grid Container is in the past, AEM will display the Grid Container component with a yellow band to indicate the content will not be visible on the live page.
A Grid Container component with a yellow band indicating the content is not visible on a live page

Training

There is currently no training session for the Grid Container component because it is reserved for the UCS Web team to set up as needed. AEM authors may maintain Grid Containers once they have been added to a page.

Need support?

The Web team is here to help.

© Concordia University