How to align text over an image without a container?

Hi community,

i would like to implement something like the picture below where the image is aligned to the right and the text overlaps the image (with no container). Any ideas?

may I know the Shopify store link?

https://571d01.myshopify.com/
pwd:siahaw

on what specific page is this?

home page to start with but If I understand how to do it, I will also place somewhere else

yes this is possible but you must have a specific id or class for the image

then use the pseudo-element ::before then modify the text by adding more properties

.picture-element::before {

content: 'Text here';
color: black;
font-size: 10px;
}

Thanks a lot.

where should I place the class for the image? base.css?

yes

Hi @Regie_1 ,

thanks for your input. Unfortunately I still didn’t manage to get it work. Do you mind giving an extra tip?

Thanks