Webflow sync, pageviews & more.
NEW

How can I create a full width div as a symbol in Webflow to easily use on multiple pages with different background images? Thank you!

TL;DR
  • Create a full-width div with inner content, convert it into a Symbol or Component.
  • Use combo classes, CMS bindings, or Component Properties to customize the background image per page.

To create a full-width reusable symbol in Webflow that allows for different background images per page, you'll need to combine Symbols with dynamic styling via customizations or overrides.

1. Build the Full-Width Div

  • Drag a Div Block onto your canvas.
  • Set its Width to 100% and optionally set Max Width or Padding on inner content to control layout.
  • Give it a class like full-width-bg-section.
  • In the Style panel, set Position to Relative if you'll be layering content.
  • Set a default background image, color, or gradient for initial styling.

2. Add Inner Content Container

  • Add another Div Block inside the main full-width div.
  • Set this inner div to a max width (e.g., 1200px) and center it with margin: auto.
  • This layout ensures consistent inner content widths across different screen sizes.

3. Turn the Section Into a Symbol

  • Select the outer full-width div.
  • Click Create Symbol in the top bar (or right-click → Create Symbol).
  • Name the Symbol something like Reusable BG Section.

4. Make the Background Image Customizable

Because Symbols reuse identical content, background images must be customizable by:

  • Using a Combo Class: On each instance, remove the Symbol from the page, change its name (i.e., unlink it), and add a Combo Class like full-width-bg-section bg-about where bg-about has its own background image style.

    OR

  • Using an HTML Embed for Inline Styling: Add an HTML Embed element inside the Symbol and use it to inject a style tag with a unique background image—however, this is manual and not ideal.

    OR

  • Using Webflow CMS (Best for dynamic pages):

  • Add the Symbol inside a CMS Template Page.

  • Bind the background image to a CMS Image field using inline style bindings in a Wrapper Div inside the Symbol.

  • Use background-image: url() with dynamic CMS binding to render different images per item.

5. Alternative with Symbol Overrides

Webflow’s new Component Properties (released in mid-2023) allows limited overrides:

  • Create a Component, not just a classic Symbol.
  • Add a custom property to allow background image overrides.
  • Use a div with a background image style, then expose that property as Editable Image or Editable Background via the Component settings.

Visual editing of background images is limited, but using exposed elements like an image element (instead of background image) may offer more flexibility.

Summary

Create a full-width div as a Symbol, then use combo classes, CMS bindings, or Component Properties to assign different background images on each page. This method balances reuse with customization, ideal for consistent layouts with flexible visuals.

Rate this answer

Other Webflow Questions