Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

Overlay text on HTML smart Image component

Avatar

Level 9

Hi All,

I need to create a component which has HTML smart Image with an overlay text on it.

Could not find any reference articles on the same. 

Any pointers/reference on this will be helpful.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 9

You can create a copy of the text image component in your project

change the property names and title as per requirement

In your component jsp, keep the image in background and keep the text in foreground.

e.g. <span style="background:url({properties.image})">Hello</span>

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten

Avatar

Level 10

1. Create a new component

2. Have 2 fields in dialog, one is take image and second being text input

3. Use HTML structure shown here https://css-tricks.com/text-blocks-over-image/

Thanks

Praveen

Avatar

Korrekte Antwort von
Level 9

You can create a copy of the text image component in your project

change the property names and title as per requirement

In your component jsp, keep the image in background and keep the text in foreground.

e.g. <span style="background:url({properties.image})">Hello</span>

Avatar

Level 9

Hi Praveen/Hemant,

Sorry for the delayed response. Will try on this and post back my results.