Components

Banner

Image banners

Text box banner

Try it yourself on the playground

Playground

Text overlay banner

Try it yourself on the playground

Playground

Plain background banner

Try it yourself on the playground

Playground

Other variants

Note: Variants below can be applied to all kind of banners.
Check usage guidelines for more information.

Centered content

Adding class .ecl-banner--center will center the text on banner.

Banner width

Banners placed inside a grid container (.ecl-container) will expand to this container width.

To have a full width banner, the recommanded way is to place it outside of the grid container.

However, if there is a need to have a full width banner inside the grid container, the css class .ecl-banner--fullwidth can be used (just put it at the same level as .ecl-page-banner).

Caution: if you plan to use full width banner using this fullwidth css class, we recommend to include the optional ecl-reset.css, as some global rules here would improve the display (overflow-x: hidden).