# Bricks 1.12 components - connecting a background image?

**URL:** <https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791>\
**Category:** How To\
**Created:** [January 30, 2025, 3:18am UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791 "2025-01-30T03:18:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milan](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@Milan](https://forum.bricksbuilder.io/u/Milan)\
**Post date:** [January 30, 2025, 3:18am UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/1 "2025-01-30T03:18:41Z")

</div>

I had a quick question in regard to the new Bricks version and components.

I was playing with components and seems straight forward (great add on BTW) but I can’t figure out how to connect a background image? I have created a card with a background image, heading, text, and button just for experimenting and it has all been a very easy process to create the component, create the properties and connect them EXCEPT the background image. I can’t figure it out, connecting an image is easy but the background image does not give you the option to connect the property… I’m sure there is an easy answer but if someone could point me in the direction it would be great!

---

<div class="post-metadata">

**Author:** ![scarrott](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@scarrott](https://forum.bricksbuilder.io/u/scarrott)\
**Post date:** [February 18, 2025, 3:49pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/2 "2025-02-18T15:49:13Z")

</div>

I’m having the same issue. There doesn’t seem to be any way to apply the image to a background, and this would be really useful to make it easier for end users.

Is there any way of using dynamic data or anything like that to access the Component values? or even accessing the image through PHP?

---

<div class="post-metadata">

**Author:** ![Barnabas](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/barnabas/32/15763_2.png) [@Barnabas](https://forum.bricksbuilder.io/u/Barnabas)\
**Post date:** [February 18, 2025, 11:35pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/3 "2025-02-18T23:35:20Z")

</div>

Components are still limited. They cannot be connected to CSS properties at the moment. Background image is a CSS property, unless you do a background image using a proper image element which can be connected to the existing image property.

You can learn how to make an image behave like a background image in this video: [https://www.youtube.com/watch?v=PYEkeTDckQw](https://www.youtube.com/watch?v=PYEkeTDckQw)

---

<div class="post-metadata">

**Author:** ![aurelian](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/aurelian/32/27786_2.png) [@aurelian](https://forum.bricksbuilder.io/u/aurelian)\
**Post date:** [July 5, 2025, 10:53pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/4 "2025-07-05T22:53:36Z")

</div>

Any ideas? Doesn’t seem like you can connect an image to inline background image - and the Barnabas YT link is behind the paywall.

---

<div class="post-metadata">

**Author:** ![Kilwag](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/kilwag/32/26847_2.png) [@Kilwag](https://forum.bricksbuilder.io/u/Kilwag)\
**Post date:** [October 24, 2025, 7:15pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/5 "2025-10-24T19:15:04Z")

</div>

Still a missing feature in 2.1.2

---

<div class="post-metadata">

**Author:** ![aidardev](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/aidardev/32/29195_2.png) [@aidardev](https://forum.bricksbuilder.io/u/aidardev)\
**Post date:** [October 24, 2025, 8:05pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/6 "2025-10-24T20:05:15Z")

</div>

This isn’t a “missing feature” — you simply can’t connect props to CSS properties directly (background-image lives in CSS, not in HTML — unless you connect it via the `style` attribute, but then you have to write the entire CSS property in the component property field like `background-image: url({acf_bg_image})` instead of just `{acf_bg_image}`).

**Barnabas’s workaround** (using `<img>` positioned absolute as background) is actually good solution for this use case.

The real fix would be making props available as dynamic data tags (like `{props.propName}`). This would let you elegantly connect props in the Attributes panel:

- Name: `style`
- Value: `background-image: url({props.myBgImage})`

There’s a idea board request for this: [Use Component Properties as Dynamic Data Tags](https://bricksbuilder.io/ideas/#18528)

---

<div class="post-metadata">

**Author:** ![Kilwag](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/kilwag/32/26847_2.png) [@Kilwag](https://forum.bricksbuilder.io/u/Kilwag)\
**Post date:** [October 26, 2025, 10:52pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/7 "2025-10-26T22:52:52Z")

</div>

I’d argue that this is missing feature. CSS background images should be a connectable property. Background images are extremely common. Using an img with absolute positioning works but it unnecessarily adds to the DOM size. Components are sorely missing this function for say… hero image sections. The layout never changes, just the text and the background image.

I’d like to see Properties available as dynamic data, but that still wouldn’t work in this case because you can add a value for unconnected properties when you place a component.

---

<div class="post-metadata">

**Author:** ![aidardev](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/aidardev/32/29195_2.png) [@aidardev](https://forum.bricksbuilder.io/u/aidardev)\
**Post date:** [October 27, 2025, 1:12pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/8 "2025-10-27T13:12:50Z")

</div>

Thanks, @Kilwag. I agree that sometimes the `<img>` workaround is kinda clunky. (Though the `<img>` tag does have its own SEO/lazy-load benefits, but that’s a separate debate!)

The main point is I think there’s a misunderstanding of how the `{props.propName}` solution would work. You said:

> I’d like to see Properties available as dynamic data, but that still wouldn’t work in this case because you can add a value for unconnected properties when you place a component.

It **absolutely** would work, and it’s the perfect solution for this. Here’s the exact workflow:

1. **Inside the Component:** The _developer_ creates a Component Property. Let’s call it `heroBackground` (Type: Image).
2. **Inside the Component’s Attributes:** The _developer_ sets this up _once_ on the root element of the component:

- **Name:** `style`
- **Value:** `background-image: url({props.heroBackground})`

1. **On the Page (The Instance):** When the _user_ places this component instance on a page, they will see the `heroBackground` property in the control panel. They can then set its value right there—either by picking an image from the media library or, even better, connecting it to a dynamic data source like `{acf_hero_image}`.

The final rendered HTML would be `<section style="background-image: url(path/to/my/image.jpg)">...</section>`.

This is the exact behavior we both want.

- The DOM stays clean (no extra `<img>`).
- The user gets a simple image picker on the component instance.
- The developer has full control.

This is why it’s a superior _system-level_ fix. It solves this problem _and_ thousands of other potential problems, without requiring the Bricks team to add a new, specific UI control for every single CSS property we might ever need.

---

<div class="post-metadata">

**Author:** ![Kilwag](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/kilwag/32/26847_2.png) [@Kilwag](https://forum.bricksbuilder.io/u/Kilwag)\
**Post date:** [October 27, 2025, 8:12pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/9 "2025-10-27T20:12:35Z")

</div>

You make some good points. I get why you think it would be a superior system. I still think that sort of buries a common thing under an extra couple of steps. But I agree, that would eliminate the need to add every CSS property.

---

<div class="post-metadata">

**Author:** ![Kilwag](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/kilwag/32/26847_2.png) [@Kilwag](https://forum.bricksbuilder.io/u/Kilwag)\
**Post date:** [August 12, 2026, 12:03am UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/10 "2026-08-12T00:03:27Z")

</div>

Not sure why this is marked as the solution. My comment doesn’t give a solution, and argues for changing.

---

<div class="post-metadata">

**Author:** ![Kilwag](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/kilwag/32/26847_2.png) [@Kilwag](https://forum.bricksbuilder.io/u/Kilwag)\
**Post date:** [October 28, 2026, 10:19pm UTC](https://forum.bricksbuilder.io/t/bricks-1-12-components-connecting-a-background-image/29791/12 "2026-10-28T22:19:09Z")

</div>

Are we ever going to see background image as a property in a component? It’s such a basic and often used item. Absolute placed image is a clunky hack.
