CMS Development

NSommerfeld
Member

Text on top of image

SOLVE

How do I put text over my images in a landing page? https://campaigns.mobilads.co/work

 

Is there a specific HTML code I can use for a new module?

0 Upvotes
1 Accepted solution
Oezcan
Solution
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Text on top of image

SOLVE

Hello @NSommerfeld ,

 

I think you mean the text as an overlay. To do this, you have to insert the image as a background image via CSS. Here's an example.

 

HTML Code:

<div class="bg-image">
  <p>Your Text</p>
</div>

 

CSS Code: 

.bg-image {
  background-image: image.jpg
}

 

But if you think that the text should only be above the picture, it's just that:

 

<p>Your Text</p>
<div>Your Image</p>

 

I hope I could help you.

 

Best regards
Özcan

Oezcan Eser Signature

View solution in original post

3 Replies 3
Oezcan
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Text on top of image

SOLVE

Hey @NSommerfeld ,


all good.
In HubSpot you can be completely flexible. You can do it in a new module, new section or just classic.

 

In the module, for example, it looks like this.

Oezcan_1-1655194479855.png

 

I hope I could help you.

 

Best regards
Özcan

Oezcan Eser Signature
Oezcan
Solution
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Text on top of image

SOLVE

Hello @NSommerfeld ,

 

I think you mean the text as an overlay. To do this, you have to insert the image as a background image via CSS. Here's an example.

 

HTML Code:

<div class="bg-image">
  <p>Your Text</p>
</div>

 

CSS Code: 

.bg-image {
  background-image: image.jpg
}

 

But if you think that the text should only be above the picture, it's just that:

 

<p>Your Text</p>
<div>Your Image</p>

 

I hope I could help you.

 

Best regards
Özcan

Oezcan Eser Signature
NSommerfeld
Member

Text on top of image

SOLVE
Hi Ozcan - am I entering this code when creating a new module? Or where
exactly am I including into an existing module?

I am fairly new to this.
0 Upvotes