<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Text over image in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/215625#M9526</link>
    <description>&lt;P&gt;Hi Guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've puzzled and read so much about Hubspot and now I just really don't understand anything anymore. I've created a landingpage, just with a simple 'image' module on top (below image &amp;amp; rich text and CTA), but now I want to have text on the image, just a title of the page. no idea how i can make this happen and i've tried everything that's there to find on this community and internet but every HTML and CSS class nothing works.. so i must be doing something wrong &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple solution for this in hubspot for dummies' language? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 15:08:18 GMT</pubDate>
    <dc:creator>ElineTribes</dc:creator>
    <dc:date>2018-11-08T15:08:18Z</dc:date>
    <item>
      <title>Text over image</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/215625#M9526</link>
      <description>&lt;P&gt;Hi Guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've puzzled and read so much about Hubspot and now I just really don't understand anything anymore. I've created a landingpage, just with a simple 'image' module on top (below image &amp;amp; rich text and CTA), but now I want to have text on the image, just a title of the page. no idea how i can make this happen and i've tried everything that's there to find on this community and internet but every HTML and CSS class nothing works.. so i must be doing something wrong &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple solution for this in hubspot for dummies' language? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:08:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/215625#M9526</guid>
      <dc:creator>ElineTribes</dc:creator>
      <dc:date>2018-11-08T15:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text over image</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/215653#M9534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/75242"&gt;@ElineTribes&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;there are some different ways that will get this to work.&lt;/P&gt;&lt;P&gt;In my opinion the easiest(and cleanest) one would be to "write" a custom module.&amp;nbsp;It's easier than it sounds &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply create a new module and give it to widgets/modules&lt;/P&gt;&lt;P&gt;- an image one&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;- a (rich)text one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the image snippet looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if module.image_field.src %}
	&amp;lt;img src="{{ module.image_field.src }}" alt="{{ module.image_field.alt }}" width="{{ module.image_field.width }}" height="{{ module.image_field.height }}"&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the text one something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% inline_text field="text_field" value="{{ module.text_field }}" %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to get the image "behind" the text you should add the image snippet to an inline background-image style. Since a background-image doesn't need an alt-tag or sizes your code should look like this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="row" id="my-pretty-background-image-wrapper" style="{% if module.image_field.src %}background-image:url({ module.image_field.src }});{% endif %}"&amp;gt;
&amp;lt;div class="container"&amp;gt; 
&amp;lt;div class="span12"&amp;gt;
&amp;lt;div class="my-pretty-headline"&amp;gt;
&amp;lt;p&amp;gt;{{ module.text_field }}&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt; 
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also should consider to style the image via CSS and give it a cover-size&lt;/P&gt;&lt;PRE&gt;#my-pretty-background-image-wrapper{
background-size:cover;
background-position:center center;
}&lt;/PRE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/98485/2000px-Ok_sign_font_awesome.png" border="0" width="30" height="30" /&gt;&lt;/TD&gt;&lt;TD&gt;Did my post help answer your query? Help the Community by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;marking it as a solution&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:49:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/215653#M9534</guid>
      <dc:creator>AntonB</dc:creator>
      <dc:date>2018-11-08T16:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Text over image</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/215692#M9539</link>
      <description>&lt;P&gt;Thanks AntonB!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's a great help!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 18:50:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/215692#M9539</guid>
      <dc:creator>ElineTribes</dc:creator>
      <dc:date>2018-11-08T18:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Text over image</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/686860#M30210</link>
      <description>&lt;P&gt;I know it's a long shot because it's been a couple years but I'm having the same problem; I don't understand this part:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;"to get the image "behind" the text you should add the image snippet to an inline background-image style. Since a background-image doesn't need an alt-tag or sizes your code should look like this:"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Where do you put that code? I think I've made the module with text and image snippets but I don't understand what to do next. Do I make another background image module and add the code snippet for the module to the sytle field in the module editor?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:52:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Text-over-image/m-p/686860#M30210</guid>
      <dc:creator>Kew99</dc:creator>
      <dc:date>2022-08-30T13:52:51Z</dc:date>
    </item>
  </channel>
</rss>

