<?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 Re: Removing Fixed Size on Images with HTML in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145060#M42946</link>
    <description>&lt;P&gt;show off&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2025 15:49:15 GMT</pubDate>
    <dc:creator>nickdeckerdevs1</dc:creator>
    <dc:date>2025-05-06T15:49:15Z</dc:date>
    <item>
      <title>Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145043#M42941</link>
      <description>&lt;P&gt;I'm new to HTML and so I would really appreciate it if someone could advise on how I can apply code to my existing code that will remove the fixed size aspect of my images.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a row of 5 user buttons, each with an image and link. The images appear the correct size on a desktop screen but then are oversized on a mobile view so I need to remove the fixed size which is causing this. The goal is that the icons are automatically scaled to size so they look the same size on mobile and PC screens. Please can you show me how I would apply the necessary code to the following code (i have replaced the tile images and links for privacy):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;center&amp;gt;&amp;lt;a href="TILE-LINK"&amp;gt;&amp;lt;img src="TILE-IMAGE"&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=" TILE-LINK "&amp;gt;&amp;lt; TILE-IMAGE "&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=" TILE-LINK"&amp;gt;&amp;lt;img src=" TILE-IMAGE "&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=" TILE-LINK"&amp;gt;&amp;lt;img src=" TILE-IMAGE "&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=" TILE-LINK"&amp;gt;&amp;lt;img src=" TILE-IMAGE "&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/center&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 15:21:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145043#M42941</guid>
      <dc:creator>JTPwellness</dc:creator>
      <dc:date>2025-05-06T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145048#M42943</link>
      <description>&lt;P&gt;That HTML is super ancient, using &amp;lt;center&amp;gt; -- so you could add a style of max width of 100%&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img style="max-width: 100%;" src=" TILE-IMAGE "&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;However it is likely better to set this up in a module, or using css stylesheets.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 15:36:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145048#M42943</guid>
      <dc:creator>nickdeckerdevs1</dc:creator>
      <dc:date>2025-05-06T15:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145056#M42945</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/937824"&gt;@JTPwellness&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you need to add some sort of css (in case this is your whole code).&lt;/P&gt;
&lt;P&gt;Someting like&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="css"&gt;center{
display:flex;
flex-direction:column;
gap:1rem;
}
a img{
width:100%;
max-width:100vw;
height:auto;
}

@media screen and (min-width:1024px){
center{
flex-direction:row;
}

a img{
width:200px;
max-width:200px;
}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the first part of the code is for mobile, the second one for desktop("if screen resolution is bigger than 1024px").&lt;/P&gt;
&lt;P&gt;It will display the images vertically on mobile and horizontally on desktop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can modify the values to your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're building a custom module,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;simply add a link and image function to it, group both elements and enable the "repeater" option in the right sidebar of the group and write your code like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;module.html&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="imageWrapper"&amp;gt;
{% for linked_image in module.linked_images %}
{% set href= linked_image.url.href %}
&amp;lt;a href="{{href}}" target="_blank"&amp;gt;
&amp;lt;img src="linked_image.image.src" alt="linked_image.image.alt" class="linkedImage"&amp;gt;
&amp;lt;/a&amp;gt;
{% endfor %}
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;module.css&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="css"&gt;.imageWrapper{
display:flex;
flex-direction:column;
gap:1rem;
}

.imageWrapper a{
text-decoration:none;
}

.imageWrapper img.linkedImage{
width:100%;
max-width:100vw;
height:auto;
}

@media screen and (min-width:1024px){
.imageWrapper{
flex-direction:row;
}

.imageWrapper img.likedImage{
width:200px;
max-width:200px;
}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 15:45:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145056#M42945</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2025-05-06T15:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145060#M42946</link>
      <description>&lt;P&gt;show off&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 15:49:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145060#M42946</guid>
      <dc:creator>nickdeckerdevs1</dc:creator>
      <dc:date>2025-05-06T15:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145061#M42947</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 15:51:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145061#M42947</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2025-05-06T15:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145111#M42950</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/937824"&gt;@JTPwellness&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To make the images responsive across devices (especially on mobile), you should remove any fixed width/height attributes and instead use CSS that allows the images to scale based on screen size.&lt;/P&gt;&lt;P&gt;Here’s how to improve and apply responsive design using HTML and CSS, and also clean up your current code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated Code :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="icon-row"&amp;gt;
    &amp;lt;a href="TILE-LINK"&amp;gt;&amp;lt;img src="TILE-IMAGE" alt="Icon 1"&amp;gt;&amp;lt;/a&amp;gt;
    &amp;lt;a href="TILE-LINK"&amp;gt;&amp;lt;img src="TILE-IMAGE" alt="Icon 2"&amp;gt;&amp;lt;/a&amp;gt;
    &amp;lt;a href="TILE-LINK"&amp;gt;&amp;lt;img src="TILE-IMAGE" alt="Icon 3"&amp;gt;&amp;lt;/a&amp;gt;
    &amp;lt;a href="TILE-LINK"&amp;gt;&amp;lt;img src="TILE-IMAGE" alt="Icon 4"&amp;gt;&amp;lt;/a&amp;gt;
    &amp;lt;a href="TILE-LINK"&amp;gt;&amp;lt;img src="TILE-IMAGE" alt="Icon 5"&amp;gt;&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CSS :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.icon-row img {
  max-width: 100%;
  height: auto;
  width: 60px; /* Optional: Set a base width for desktop */
}

@media (max-width: 600px) {
  .icon-row img {
    width: 40px; /* Smaller width for mobile */
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More resources to follow :&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/website-pages/use-images-in-hubspot-content" target="_blank"&gt;https://knowledge.hubspot.com/website-pages/use-images-in-hubspot-content&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kosala&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 17:27:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1145111#M42950</guid>
      <dc:creator>kosalaindrasiri</dc:creator>
      <dc:date>2025-05-06T17:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1151131#M42992</link>
      <description>&lt;P&gt;Thanks so much for your response Nick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried inserting the code exactly as you provided it, in to my code but still the icon appeared oversized on mobile. I hope I inserted it correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the exact code for one of the icons, would it be possible to show me how you'd apply the code to it just to make sure I don't have maybe one letter wrong or out of place:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;img src="&lt;A href="https://www.niteflirt.com/fm/f/1743603667-5xuy32DYgj/16mz6b" target="_blank"&gt;https://www.niteflirt.com/fm/f/1743603667-5xuy32DYgj/16mz6b&lt;/A&gt;"&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 21:44:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1151131#M42992</guid>
      <dc:creator>JTPwellness</dc:creator>
      <dc:date>2025-05-11T21:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1151132#M42993</link>
      <description>&lt;P&gt;Really appreciate your response Anton and the extensive code you've provided. Very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only problem is (and please excuse my lack of knowledge) but I literally don't know how to apply the code you've provided to the image that I have. Would you be able to show me how to insert my image into the css example you've given?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;img src="&lt;A href="https://www.niteflirt.com/fm/f/1743603667-5xuy32DYgj/16mz6b" target="_blank"&gt;https://www.niteflirt.com/fm/f/1743603667-5xuy32DYgj/16mz6b&lt;/A&gt;"&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 21:57:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1151132#M42993</guid>
      <dc:creator>JTPwellness</dc:creator>
      <dc:date>2025-05-11T21:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1151134#M42994</link>
      <description>&lt;P&gt;Thanks Kosala!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would I use the above updated with the CSS you've provided? As in I use both?&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 22:00:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1151134#M42994</guid>
      <dc:creator>JTPwellness</dc:creator>
      <dc:date>2025-05-11T22:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Fixed Size on Images with HTML</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1153351#M43047</link>
      <description>&lt;P&gt;Please give me your actual code you have and I can show you how to implement this and make this work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 13:06:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Removing-Fixed-Size-on-Images-with-HTML/m-p/1153351#M43047</guid>
      <dc:creator>nickdeckerdevs1</dc:creator>
      <dc:date>2025-05-16T13:06:57Z</dc:date>
    </item>
  </channel>
</rss>

